[Nagios-devel] Adding a new command to Nagios? (problem solved)

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
Guest

[Nagios-devel] Adding a new command to Nagios? (problem solved)

Post by Guest »

So it turns out that the reason I couldn't get my statement to work was two=
fold, first off apparently it needed a time stamp, and secondly it really =
needed a carriage return on the end.
So the command really looks like...
/usr/bin/printf "[%lu] DISABLE_PROFILER;ALL\n" $now > $commandfile

I was able to find this out by looking through the old.nagios site, sorry f=
or confusion.

For the record I can now toggle the profilers on and off :)

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