Hi, i have wrote 5 CGI-Scripts for administrate Hobbit. But i need Helf because there are many unsolved Problems
- A Script which can delete/rename Services or Hosts
- A Script where you can edit your Config in Browser
- A Script to test your hobbit-alert.cfg in two way. 1. By using bbcm 2. To change any Test in any Color you want
- A Script to watch your Hobbit Server Logs in Browser
- A Script you can view Graphs with an exact Time.
You can download it here: http://www.fh-augsburg.de/~henk/hobbit/ and copie it in ./cgi-secure
header and footer must copied in ./server/web/ and your Menu should changed: (./server/www/menu_items.js) in something like that: ... ['Administration', null, null, ['Find host', 'http://hobbit/hobbit-cgi/bb-findhost.sh'], ['Acknowledge alert', 'http://hobbit/hobbit-seccgi/bb-ack.sh'], ['Enable/disable', 'http://hobbit/hobbit-seccgi/hobbit-enadis.sh'], ['Edit critical systems', 'http://hobbit/hobbit-seccgi/hobbit-nkedit.sh'], ['Rename/Delete', 'http://hobbit/hobbit-seccgi/chhostservice.sh'], ['Edit Configs', 'http://hobbit/hobbit-seccgi/edit_files.sh'], ['Test alerts', 'http://hobbit/hobbit-seccgi/testalarm.sh'], ['View Hobbit-Server Logs', 'http://hobbit/hobbit-seccgi/viewlogs.sh'], ['View Graph', 'http://hobbit/hobbit-seccgi/view_graph.sh'], ], ...
NOW TO MY PROBLEMS:
How can i found out which server have which service? and that only by using the Filesystem because i don't use C (i use normal bashscripts)
How can i found which Server has which graph? (with the same Condition)
Bugs, Problems,....
thx a lot Stefan
P.S. sorry for my bad English its christmas soon ;-)
Stefan,
Don't know what the issue is but I get a 500 error on every script of yours. Maybe they were transferred from the web server in the wrong format (ascii vs. binary)? Not sure.
Server error!
The server encountered an internal error and was unable to complete your request.
Error message: Premature end of script headers: viewlogs.sh
If you think this is a server error, please contact the webmaster<%5bno%20address%20given%5d>.
Error 500 bigbrother <https://mail.google.com/> Wed Dec 20 15:27:27 2006 Apache/2.0.54 (Linux/SUSE)
On 12/20/06, stefan.freisler at aspect-online.de < stefan.freisler at aspect-online.de> wrote:
Hi, i have wrote 5 CGI-Scripts for administrate Hobbit. But i need Helf because there are many unsolved Problems
- A Script which can delete/rename Services or Hosts
- A Script where you can edit your Config in Browser
- A Script to test your hobbit-alert.cfg in two way. 1. By using bbcm 2. To change any Test in any Color you want
- A Script to watch your Hobbit Server Logs in Browser
- A Script you can view Graphs with an exact Time.
You can download it here: http://www.fh-augsburg.de/~henk/hobbit/ and copie it in ./cgi-secure
header and footer must copied in ./server/web/ and your Menu should changed: (./server/www/menu_items.js) in something like that: ... ['Administration', null, null, ['Find host', 'http://hobbit/hobbit-cgi/bb-findhost.sh'], ['Acknowledge alert', ' http://hobbit/hobbit-seccgi/bb-ack.sh'], ['Enable/disable', ' http://hobbit/hobbit-seccgi/hobbit-enadis.sh'], ['Edit critical systems', ' http://hobbit/hobbit-seccgi/hobbit-nkedit.sh'], ['Rename/Delete', ' http://hobbit/hobbit-seccgi/chhostservice.sh'], ['Edit Configs', ' http://hobbit/hobbit-seccgi/edit_files.sh'], ['Test alerts', 'http://hobbit/hobbit-seccgi/testalarm.sh' ], ['View Hobbit-Server Logs', ' http://hobbit/hobbit-seccgi/viewlogs.sh'], ['View Graph', 'http://hobbit/hobbit-seccgi/view_graph.sh' ], ], ...
NOW TO MY PROBLEMS:
How can i found out which server have which service? and that only by using the Filesystem because i don't use C (i use normal bashscripts)
How can i found which Server has which graph? (with the same Condition)
Bugs, Problems,....
thx a lot Stefan
P.S. sorry for my bad English its christmas <http://dict.leo.org/ende?lp=ende&p=/gQPU.&search=Christmas>soon ;-)
-- 'If my answers frighten you then you should cease asking scary questions.' --Sam Jackson from Pulp Fiction
Me too ...
Apache/2.0.52 (Red Hat) Server Scientific Linux SL release 4.3 (Beryllium) hobbit-4.2.0
sorry, Martin
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
On Wed, 20 Dec 2006, Geoff Hallford wrote:
Stefan,
Don't know what the issue is but I get a 500 error on every script of yours. Maybe they were transferred from the web server in the wrong format (ascii vs. binary)? Not sure.
Server error!
The server encountered an internal error and was unable to complete your request.
Error message: Premature end of script headers: viewlogs.sh
If you think this is a server error, please contact the webmaster<%5bno%20address%20given%5d>.
Error 500 bigbrother <https://mail.google.com/> Wed Dec 20 15:27:27 2006 Apache/2.0.54 (Linux/SUSE)
On 12/20/06, stefan.freisler at aspect-online.de < stefan.freisler at aspect-online.de> wrote:
Hi, i have wrote 5 CGI-Scripts for administrate Hobbit. But i need Helf because there are many unsolved Problems
- A Script which can delete/rename Services or Hosts
- A Script where you can edit your Config in Browser
- A Script to test your hobbit-alert.cfg in two way. 1. By using bbcm 2. To change any Test in any Color you want
- A Script to watch your Hobbit Server Logs in Browser
- A Script you can view Graphs with an exact Time.
You can download it here: http://www.fh-augsburg.de/~henk/hobbit/ and copie it in ./cgi-secure
header and footer must copied in ./server/web/ and your Menu should changed: (./server/www/menu_items.js) in something like that: ... ['Administration', null, null, ['Find host', 'http://hobbit/hobbit-cgi/bb-findhost.sh'], ['Acknowledge alert', ' http://hobbit/hobbit-seccgi/bb-ack.sh'], ['Enable/disable', ' http://hobbit/hobbit-seccgi/hobbit-enadis.sh'], ['Edit critical systems', ' http://hobbit/hobbit-seccgi/hobbit-nkedit.sh'], ['Rename/Delete', ' http://hobbit/hobbit-seccgi/chhostservice.sh'], ['Edit Configs', ' http://hobbit/hobbit-seccgi/edit_files.sh'], ['Test alerts', 'http://hobbit/hobbit-seccgi/testalarm.sh' ], ['View Hobbit-Server Logs', ' http://hobbit/hobbit-seccgi/viewlogs.sh'], ['View Graph', 'http://hobbit/hobbit-seccgi/view_graph.sh' ], ], ...
NOW TO MY PROBLEMS:
How can i found out which server have which service? and that only by using the Filesystem because i don't use C (i use normal bashscripts)
How can i found which Server has which graph? (with the same Condition)
Bugs, Problems,....
thx a lot Stefan
P.S. sorry for my bad English its christmas <http://dict.leo.org/ende?lp=ende&p=/gQPU.&search=Christmas>soon ;-)
-- 'If my answers frighten you then you should cease asking scary questions.' --Sam Jackson from Pulp Fiction
Hi, for my tests i know 2 Situatins, which was cause of this errors.
- your rights was net set to 755 (rwx,rx,rx). You must know that this script will started by the Webserver (and his users) and not directly by hobbit!
- Somewhere in the Script is an output before i send the Header of the file.
I have updated my Scripts, and set the header near the beginning of the script.
thx for testing.
mfg Stefan
P.S. Auf Deutsch gehts doch einfacher ;-). Ansonsten gefällt dir die Idee? Was würdest du sonst noch brauchen?
Hi, for my tests i know 2 Situatins, which was cause of this errors.
- your rights was net set to 755 (rwx,rx,rx). You must know that this script will started by the Webserver (and his users) and not directly by hobbit!
- Somewhere in the Script is an output before i send the Header of the file.
I have updated my Scripts, and set the header near the beginning of the script.
thx for testing.
mfg Stefan
participants (3)
-
flemming@mail.desy.de
-
geoff.hallford@gmail.com
-
stefan.freisler@aspect-online.de