replace cmd.cgi

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
V3xX
Posts: 26
Joined: Wed Aug 29, 2012 6:48 am
Location: Switzerland

replace cmd.cgi

Post 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
Last edited by V3xX on Wed Jul 02, 2014 4:02 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: replace cmd.cgi

Post 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
Locked