Bug: NSCA 2.4 on OS X 10.3

Noah Leaman noah at mac.com
Wed Jan 28 07:59:38 CET 2004


Yes. Look at that. It appears /bin/echo on OSX doesn't support -e ...

http://developer.apple.com/documentation/Darwin/Reference/ManPages/ 
html/echo.1.html

So I took the -e out... but still the same problem.  BUT... now knowing  
that the \t characters were probably getting interrupted. I changed the  
default delimiter to ";" and BINGO:

MyTiBook:~/nsca nleaman$ /bin/echo "host.domain.com;Ping;0;PING OK -  
Packet loss = 0%, RTA = 443.71 ms\n" | /Users/nleaman/nsca/send_nsca -H  
127.0.0.1 -d ";" -c /Users/nleaman/nsca/send_nsca.cfg
1 data packet(s) sent to host successfully.

That works as expected!

Thanks to everyone for your help...

-- 
noah

On Jan 27, 2004, at 9:10 PM, Ethan Galstad wrote:

> Looks like the culprit is /bin/echo !  It looks like /bin/echo isn't
> interpreting the -e command line option.  Check the man page to see
> if you should be using -c or something else.  send_nsca is reading
> from STDIN and its getting the "-e" as part of the data to be sent to
> the daemon.
>
> Relevant snippets from the dump file are listed below:
>
>
>    972 send_nsca GIO   fd 0 read 75 bytes
>        "-e host.domain.com\\tPing\\t0\\tPING OK - Packet loss = 0%,  
> RTA = 443.71 ms\\n
>        "
>    972 send_nsca RET   read 75/0x4b
>    972 send_nsca CALL  read(0,0x801200,0x2000)
>    972 send_nsca GIO   fd 0 read 0 bytes
>        ""
>    972 send_nsca RET   read 0
>    972 send_nsca CALL  close(0x3)
>    972 send_nsca RET   close 0
>    972 send_nsca CALL  fstat(0x1,0xbfffea30)
>    972 send_nsca RET   fstat 0
>    972 send_nsca CALL  ioctl(0x1,FIODTYPE,0xbfffea80)
>    972 send_nsca RET   ioctl 0
>    972 send_nsca CALL  write(0x1,0xd000,0x2c)
>    972 send_nsca GIO   fd 1 wrote 44 bytes
>        "0 data packet(s) sent to host successfully.
>        "
>
>
>
>
> On 27 Jan 2004 at 14:19, Noah Leaman wrote:
>
>>
>> On Jan 27, 2004, at 10:27 AM, Mark Ferlatte wrote:
>>>
>>> Try turning off encryption entirely for now; until there's data
>>> flowing, there's no point in making it harder to figure out what's
>>> going on.
>>
>> OK. set encryption_method=0
>>
>>> No, that should say 1 data packet(s).
>>
>> So maybe the problem IS with the send_nsca...
>>
>> MyTiBook:~ noah$ /bin/echo -e "host.domain.com\tPing\t0\tPING OK -
>> Packet loss = 0%, RTA = 443.71 ms\n" | /Users/noah/nsca/send_nsca -H
>> 127.0.0.1 -c /Users/noah/nsca/send_nsca.cfg 0 data packet(s) sent to
>> host successfully.
>>
>>> Can you turn off encryption, and ktrace both nsca and send_nsca at
>>> the same time?
>>
>> I will run the ktrace on nsca when I get into work in a few... not
>> sure I am going to run it on send_nsca though since the PID  is what I
>> used to to a ktrace on and the PID for send_nsca is only around for
>> sec... do you or anyone know how I can maybe pipe the PID into ktrace
>> on the command line when running it?
>>
>> -- 
>> Noah
>>
>
>
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn




More information about the Users mailing list