NSCA Confusing host check results as service checks

Brian A. Seklecki lavalamp at spiritual-machines.org
Wed Nov 28 17:25:40 CET 2007


On Wed, 28 Nov 2007, Sloane, Robert Raymond wrote:

> It looks like the problem is caused by using "," as the delimiter.
> There is a "," in the status string "PING OK..." which would provide

Well, yea, but the question is how to address it.

It really seems like /usr/local/libexec/nagios/send_{host,service}_check 
is superfluous.

Its a lot of extra forking and pipeing on an already deadly inefficient 
system.

Of course, one cheap hack deserves another and for the time being it seems 
that:

/bin/echo "$1//$2//$3" | /usr/local/sbin/send_nsca -H master \
         -c /usr/local/etc/nagios/send_nsca.cfg -d "//"

Using "//" as a delimeter is not likely to show up in any macro of plugin 
output (Except for maybe Samba? fuck screw that)

~BAS

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list