Page 1 of 1

[Nagios-devel] Adding a new command to Nagios?

Posted: Thu Oct 01, 2009 2:29 pm
by Guest
Hi Everyone,

I've added a feature to the event profiler so it can be turned on and off a=
t will.
I then added a command to do this to commands.c

The question I am having trouble finding the answer to is how do I test thi=
s?
I've tried writing the command directly /usr/local/nagios/var/rw/nagios.cmd=
and watching the results in gdb but I get nothing.
Maybe I'm doing this wrong but shouldn't this do the trick for debugging pu=
rposes?
echo "DISABLE_PROFILER;ALL" > /usr/local/nagios/var/rw/nagios.cmd

Obviously I'll go ahead and add the command to cmd.cgi when I'm sure it's w=
orking properly, I just want to narrow my debugging focus for now and write=
the command directly to nagios.
Thoughts?

Sincerely,
Steve


NOTICE: This email message is for the sole use of the intended recipient(s=
) and may contain confidential and privileged information. Any unauthorized=
review, use, disclosure or distribution is prohibited. If you are not the =
intended recipient, please contact the sender by reply email and destroy al=
l copies of the original message.







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]