Blank check_command in host stanza causes error

prosolutions at gmx.net prosolutions at gmx.net
Wed Oct 19 02:06:05 CEST 2005


> On Tue, Oct 18, 2005 at 04:21:30PM -0700, prosolutions at gmx.net wrote:
> > I have an IP address that I want to just ping monitor.  It seems 
> > redundant to have it defined as both a "host" and a "service".  According to
> > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html under
> > "check_command" in the hosts section "If you leave this argument blank,
> > the host will not be checked - Nagios will always assume the host is
> > up."  However, when I do leave it blank, I get an error "Error: Could
> > not add object property in file"
> What if you leave the line out entirely? That or define a dummy
> checkcommand that always returns true.
> 


What I was doing was using a template for other devices that had a
check_command in it, and leaving a blank check_command in the stanza for
the host in question.  However this was causing the problem.  When I
stopped using the template and specified everything for the host in its
own stanza, then leaving check_command blank did not cause a problem.
However, one thing I notice now is that in the "Status Information"
section on the Host Detail page for this host, the status is reporting
the last error received from the device.  Even though it is no longer
red because the Service check is OK, it is saving that status info.  It
would be nice to clear it out.




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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