send_nsca
Rusch, Daniel
Daniel.Rusch at GlobalCrossing.com
Thu Aug 22 15:50:37 CEST 2002
Thanks billions, I had tried that but I didn't use the -e on the echo
command (I wasn't aware that echo doesn't interpret backslashed escape
characters)
That did the trick
Thanks,
Dan
-----Original Message-----
From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de]
Sent: Thursday, August 22, 2002 6:34 AM
To: nagios-users at lists.sourceforge.net
Cc: Rusch, Daniel
Subject: RE: [Nagios-users] send_nsca
Hi Dan,
send_nsca is reading the message from stdin. You have to execute something
like:
echo -e "hal9000\tremote_report\t0\tkewl" | ./send_nsca 10.24.7.176 -to 60
-c send_nsca.cfg
Or you write a short shell script like:
#!/bin/sh
#
HOST=$1; shift
SERVICE=$1; shift
STATUS=$1; shift
#
# abschicken
/bin/echo -e "${HOST}\t${SERVICE}\t${STATUS}\t$*" | /path-to/send_nsca
10.24.7.176 -to 60 -c /path-to/send_nsca.cfg
This script you can call with:
send_nsca.sh hal9000 remote_report 0 kwel
Hope this helps.
-vol
> -----Original Message-----
> From: Rusch, Daniel [mailto:Daniel.Rusch at GlobalCrossing.com]
> Sent: Wednesday, August 21, 2002 10:51 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] send_nsca
>
>
> all,
>
> When I run send_nsca from the command line I get:
>
> Error: Service description is NULL!
>
> Any ideas as to what that means?
>
>
> I run send_nsca like:
>
> ./send_nsca 10.24.7.176 -to 60 -c send_nsca.cfg
>
> when it returns, I type:
>
> hal9000 remote_report 0 kewl
>
>
>
> Thanks,
>
> Dan
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
More information about the Users
mailing list