send_nsca send_check_result script question

Brady Maxwell brady.maxwell at gmail.com
Sat Feb 4 18:54:08 CET 2006


Marc

Thanks for the info thats exactly the stuff i needed.

Marc Powell wrote:
>   
>> -----Original Message-----
>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>> admin at lists.sourceforge.net] On Behalf Of Brady Maxwell
>> Sent: Friday, February 03, 2006 6:17 PM
>> To: Nagios users
>> Subject: [Nagios-users] send_nsca send_check_result script question
>>
>> in the send_nsca config file there does not appear to be away to set
>>     
> the
>   
>> port that send_nsca should use but in the nsca config  file there is a
>> place to set the port.
>>
>> does the port go in the send_check_result script?
>>
>> If so can someone share with me the syntax please.
>>
>> i think it would look something like this
>>
>> /bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" |
>> /usr/local/nagios/bin/send_nsca /central_server/ port_id -c
>> /usr/local/nagios/etc/send_nsca.cfg
>>     
>
> It's a command-line parameter --
>
> ~nagios/bin/send_nsca --help
>
> NSCA Client 2.1
> Copyright (c) 2000-2002 Ethan Galstad (nagios at nagios.org)
> Last Modified: 06-10-2002
> License: GPL
> Encryption Routines: NOT AVAILABLE
>
> Usage: /usr/local/nagios/bin/send_nsca <host_address> [-p port] [-to
> to_sec] [-d delim] [-c config_file]
>
> Options:
>  <host_address> = The IP address of the host running the NSCA daemon
>  [port]         = The port on which the daemon is running - default is
> 5667
>  [to_sec]       = Number of seconds before connection attempt times out.
>                   (default timeout is 10 seconds)
>  [delim]        = Delimiter to use when parsing input (defaults to a
> tab)
>  [config_file]  = Name of config file to use
>
> Note:
> This utility is used to send passive service check results to the NSCA
> daemon.
> Servce check data that is to be sent to the NSCA daemon is read from
> standard
> input. Service check information is in the following format
> (tab-delimited
> unless overriden with -d command line argument, one entry per line):
>
> <host_name>[tab]<svc_description>[tab]<return_code>[tab]<plugin_output>[
> newline]   
>
> --
> Marc
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
> _______________________________________________
> 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
>
>   


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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