diff options
author | James Meyer <james.meyer@operamail.com> | 2012-09-29 22:02:46 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-09-29 22:02:46 (GMT) |
commit | b5fdcfcdab6b3619f5397d4f03f90ba7fd8665f3 (patch) | |
tree | b71fcb687c18a793e48d52b874c92576610326ff /abs/core/xymon/hbnotes.py | |
parent | 822ebc824685b558d6baa1fe81d2ce58e2235808 (diff) | |
download | linhes_pkgbuild-b5fdcfcdab6b3619f5397d4f03f90ba7fd8665f3.zip linhes_pkgbuild-b5fdcfcdab6b3619f5397d4f03f90ba7fd8665f3.tar.gz linhes_pkgbuild-b5fdcfcdab6b3619f5397d4f03f90ba7fd8665f3.tar.bz2 |
xymon: hbnotes, more javascirpt alerts/popups for shutdown,reboot & apply updates
Diffstat (limited to 'abs/core/xymon/hbnotes.py')
-rw-r--r-- | abs/core/xymon/hbnotes.py | 61 |
1 files changed, 49 insertions, 12 deletions
diff --git a/abs/core/xymon/hbnotes.py b/abs/core/xymon/hbnotes.py index 78145f2..b4c39bf 100644 --- a/abs/core/xymon/hbnotes.py +++ b/abs/core/xymon/hbnotes.py @@ -298,24 +298,61 @@ function Do_it () } - if (chosen == "Restore") - { - if (confirm('Continue with database restore?')) + if (chosen == "Restore") + { + if (confirm('Continue with database restore?')) { - do_submission(); - } + do_submission(); + } else { - alert(" database was not restored"); + alert(" database was not restored"); } + } + else if (chosen == "Shutdown") + { + if (confirm('Continue with server shutdown?')) + { + do_submission(); + alert("system is powering off"); + } + } - } - else - { - //alert("not restore") - do_submission(); - } + else if (chosen == "Reboot") + { + if (confirm('Continue with server restart?')) + { + do_submission(); + alert("system is restarting"); + } + } + + else if (chosen == "ShutdownAll") + { + if (confirm('Continue with powering off all servers except master backend?')) + { + do_submission(); + alert("systems are powering off"); + } + + } + + else if (chosen == "Update") + { + if (confirm('Continue with applying updates?')) + { + do_submission(); + alert("system is updating"); + } + + } + + else + { + //alert("not restore") + do_submission(); + } } </SCRIPT> |