Hi!

I'm trying to execute a custom script located on my master OPSView in '/usr/local/nagios/sbin' but it seems the webserver serve only their cgi. In detail these are my tests:

1. Added a custom CGI script to /usr/local/nagios/sbin directory: opening via WEB (http://host/cgi-bin/myscript.cgi?) it will NOT executed or shown, instead redirect to /status/hostgroup.

2. Opened http://host/cgi-bin/status.cgi? . It works.

3. copied status.cgi to status2.cgi and tried to open "http://host/cgi-bin/status2.cgi?": NOT executed or shown, instead redirect to /status/hostgroup.

4. Temporary deleted status.cgi and tried to open: The OPSVIEW layout page returned me an error: "An Error Occurred - 500 Internal Server Error"

5. Tried to open a 'non existing' file: redirect to /status/hostgroup.

Looking on the result of test4 it really seems that there is a conf in OPSView that serves ONLY some cgi. This could be a reason why on point 4 I obtain an error 500 from within the OPSView page instead to obtain a result like point 1 or point 3 and why test5 has the same result as test1 and test3.

I've still posted this issue on the forum: 
http://www.opsview.com/forum/opsview-community-edition/how-do-i/execute-cgi-web
Maybe on the mailinglist can help me too.

Thank's a lot!

Simon
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to