send_nsca to monitor a remote log via passive checks.
mariog at absi.be
mariog at absi.be
Mon Feb 16 18:15:59 CET 2009
Hello
I have a problem
I am using a program logsurfer which scan logfiles and realtime
it is running on a remote host, i have created a passive check in nagios
and I want to use send_nsca to send the errors in the logs to the
monitoring server. whenever i launch send_nsca manually in the command
line it works but when I set it in the config file of logsurfer it does
not sends any passive checks to the nagios server.
here is the command i try to use in order to send it to the nagios server.
"/usr/bin/echo "host\tlogfile\t2\t\"$0\"" | /etc/nagios/send_nsca -H
123.123.123.123 -c /etc/nagios/send_nsca.cfg"
it is there an error in syntax, does anyone of you know logsurfer and it's
maybe the logsurfer problem if the syntax of send_nsca is correct.
$0 is supposed to be the entire line that will be sent to the monitoring
server.
thank you for your help; it will be priceless.
Mario Garcia Ortiz/ABSI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090216/135196dc/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
-------------- next part --------------
_______________________________________________
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