diff options
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> |