send_nsca

Volker.Aust at premiere.de Volker.Aust at premiere.de
Thu Aug 22 13:34:01 CEST 2002


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