Adding a new command to Nagios? (problem solved)
Steven D. Morrey
smorrey at ldschurch.org
Thu Oct 1 20:20:19 CEST 2009
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 for 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 all copies of the original message.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
More information about the Developers
mailing list