Passive Service Checks in Nagios 2.0
Marc Powell
marc at ena.com
Tue Aug 16 23:42:51 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Brian C. Huffman
> Sent: Tuesday, August 16, 2005 12:46 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Passive Service Checks in Nagios 2.0
>
> All,
>
> I'm trying to setup a passive service check - specifically, I have
> syslog-ng / sec combination to monitor system log files and then to
> write into the nagios cmd file. In Nagios 1.2, I didn't need to
specify
> a check_command (since there isn't one), and even looking at the 2.0
Service check_commands have always been required. Host check_commands
are optional.
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service
bash-2.05a$ bin/nagios -v etc/nagios.cfg
Nagios 1.1
Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
Last Modified: 06-02-2003
License: GPL
Reading configuration data...
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file
'/usr/local/nagios-db/etc/ena_config/davidson.cfg', line 438)
> documentation, it doesn't mention a check command:
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service
check_command is red, meaning it's required.
>
> The description and host name do exist, so I can only assume that it
> wants a check command... This doesn't seem to make sense to me for a
> passive service. What's the work around?
There are several features of nagios that require the check_command to
be present (freshness checking, scheduling immediate checks, etc). You
may not use those but the command is still required. Use check_dummy as
filler.
--
Marc
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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