diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-25 22:42:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-25 22:42:09 (GMT) |
commit | 72fad9e7b6b5a4c090bc2af18ab50d4c28479ae0 (patch) | |
tree | 14ce0bffae3fe87316f34974f7e2c5b4767e12bb /abs/core/xymon/hbnotes.py | |
parent | 11eaeebe7d98daa45e5e61703c2c10e15db9ad48 (diff) | |
download | linhes_pkgbuild-72fad9e7b6b5a4c090bc2af18ab50d4c28479ae0.zip linhes_pkgbuild-72fad9e7b6b5a4c090bc2af18ab50d4c28479ae0.tar.gz linhes_pkgbuild-72fad9e7b6b5a4c090bc2af18ab50d4c28479ae0.tar.bz2 |
xymon: change database backup location to /myth/system_backup.
Also fix the generation of hbnotes for standalone. The webpage was missing the backup option
Diffstat (limited to 'abs/core/xymon/hbnotes.py')
-rw-r--r-- | abs/core/xymon/hbnotes.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/abs/core/xymon/hbnotes.py b/abs/core/xymon/hbnotes.py index 13dbd86..2a1b221 100644 --- a/abs/core/xymon/hbnotes.py +++ b/abs/core/xymon/hbnotes.py @@ -19,8 +19,8 @@ except: -def createdropdown(): - dir = "/data/database_backup" +def createdropdown(currenthostype): + dir = "/myth/system_backup" dropdown=" " #dropdown=''' #<input name="param2" type="radio" value="Restore" />Restore database </> @@ -33,7 +33,8 @@ def createdropdown(): #dropdown+='<option value="' + file + '">' + file + '</option> ' dropdown+='</select> <br><input name="param2" type="radio" value="Backup" checked="checked" />Backup database<br /> ' dropdown+='<input name="param2" type="radio" value="Optimize" />Optimize database<br /> ' - dropdown+='<input name="param2" type="radio" value="ShutdownAll" />Shutdown All Systems (expect MBE)<br /> ' + if currenthostype == "Master_backend": + dropdown+='<input name="param2" type="radio" value="ShutdownAll" />Shutdown All Systems (expect MBE)<br /> ' #dropdown+='''<input name="param2" type="radio" value="UpdateAll" />Update All Systems </> <select name="param5"> #<option value="Myth_only">Myth only</option> #<option value="All"> Full System</option> @@ -339,8 +340,8 @@ def main(argv): </div> ''' - if currenthostype == "Master_backend": - mbeoptions=createdropdown() + if currenthostype == "Master_backend" or currenthostype == "Standalone": + mbeoptions=createdropdown(currenthostype) else: mbeoptions='' returnurl="/xymon/notes/" |