Page 1 of 1

replace cmd.cgi

Posted: Fri Nov 23, 2012 4:35 am
by V3xX
Hello community,

I tried to replace the cmd.cgi, because I don't want on the acknowledge interface the sticky_ack checked.
So i modified the cmd.c and compiled it (done on a nagios-test server, not the productive one).
now when I press the Acknowledge link an Internal Server Error appears.

then I just tried to replace the cmd.cgi with the original cmd.cgi, that also ends in an Internal Server Error.

why is it not possible to replace the cmd.cgi file?

or has someone found out an other way to change the pre-checked boxes in Acknowledge interface?


Thanks and kind regards
V3xX

Re: replace cmd.cgi

Posted: Mon Nov 26, 2012 1:56 pm
by slansing
The only way to do this successfully if you think you broke the file, you must recompile Core. The permissions may have changed, I would try switching them back before you try to recompile as it may not be necessary, to do this change them to 776:

Code: Select all

chmod 776 /usr/local/nagios/sbin/cmd.cgi