Error: Host name, alias, or address is NULL
Dan Tulovsky
Dan.Tulovsky at sbiandcompany.com
Mon Jun 30 23:13:22 CEST 2003
Hey...
define host{
host_name host_name
...
}
You want host_name, not just name...
Dan
-----Original Message-----
From: Robert Mena [mailto:rt_mena at yahoo.com]
Sent: Monday, June 30, 2003 4:06 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Error: Host name, alias, or address is NULL
Hi,
I am migrating my config from netsaint to nagios but
got stuck in one error.
I have erased the hosts.cfg and defined just one host.
define host{
name lan
retain_status_information 1 ;
Retain status information across program restarts
retain_nonstatus_information 1 ;
Retain non-status information across program restarts
notification_interval 120
notification_period 24x7
notification_options d,u,r
check_command
check-host-alive
register 0
}
define host{
name router
retain_status_information 1 ;
Retain status information across program restarts
retain_nonstatus_information 1 ;
Retain non-status information across program restarts
notification_interval 120
notification_period 24x7
notification_options d,u,r
check_command
check-router-alive
register 0
}
define host{
name wireless
retain_status_information 1 ;
Retain status information across program restarts
retain_nonstatus_information 1 ;
Retain non-status information across program restarts
notification_interval 120
notification_period 24x7
notification_options d,u,r
parents wl
check_command
check-host-alive
register 0
}
define host{
use lan
name zeus
alias Email/Radius
address AA.BB.CC.DD
}
That's it.
When I start nagios it prompts
Jun 30 15:46:52 host nagios: Error: Host name, alias,
or address is NULL
Jun 30 15:46:52 host nagios: Error: Could not register
host (config file '/usr/local/nagios/etc/hosts.cfg',
line 57)
Jun 30 15:46:52 host nagios: Nagios 1.1 starting...
(PID=25825)
Jun 30 15:46:52 host nagios: Bailing out due to one or
more errors encountered in the configuration files.
Run Nagios from the command line with the -v option to
verify your config before restarting. (PID=25825)
Any ideias ?
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
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