Bug: NSCA 2.4 on OS X 10.3
Ethan Galstad
nagios at nagios.org
Wed Jan 28 06:10:31 CET 2004
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
More information about the Developers
mailing list