[Pkg-nagios-devel] Bug#630727: nagios3: Host 'null' has no services associated with it!

Phirum Peang pkp at cs.brown.edu
Thu Jun 16 16:03:37 UTC 2011


Package: nagios3
Version: 3.0.6-4~lenny2
Severity: normal

Nagios doesn't like the host_name of null for service definition in the hosts.cfg file.  Here is an example:
define host{
        use                             host_notification_template
        host_name                       null
        address                         128.148.38.190
}

define service{
        use                             ping_template
        host_name                       null

}

The above entry causes the following warning:
Checking hosts...
Warning: Host 'null' has no services associated with it!

Nagios will start up but the null hostname is not list in the Service Detail. If the hostname is changed to Null or anything else, it will show up in the Service Detail.



-- System Information:
Debian Release: 5.0.8
  APT prefers oldstable
  APT policy: (750, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-nagios-devel mailing list