Newbie: I can't register hosts?
Patrick Morris
patrick.morris at hp.com
Thu Dec 14 21:43:57 CET 2006
You also probably want "register 0" in your templates, rather then
"register 1", unless "routers" and "frontends" are the name of actual
hosts you intend to check.
On Thu, 14 Dec 2006, Andy Shellam (Mailing Lists) wrote:
> The hostname is "host_name", not "name"
>
> Andy.
>
> nic gna wrote:
> > This is my host.cfg and I can't register the hosts.
> > I get this error:
> >
> > Error: Host name, alias, or address is NULL
> > Error: Could not register host (config file '/etc/nagios/hosts.cfg',
> > starting on line 1)
> > --------
> > define host{
> > name routers
> > use routers
> > check_command check-host-alive
> > max_check_attempts 15
> > notification_interval 30
> > notification_period 24x7
> > contact_groups admins
> > notification_options d,r
> > register 1
> > }
> > define host{
> > name frontends
> > use frontends
> > check_command check-host-alive
> > max_check_attempts 15
> > notification_interval 30
> > notification_period 24x7
> > contact_groups admins
> > notification_options d,r
> > register 1
> > }
> > define host{
> > use frontends
> > host_name luke
> > alias luke
> > address 129.11.4.169
> > }
> > define host{
> > use computes
> > host_name leia
> > alias leia
> > address 129.11.4.170
> > }
> >
> > ------------------------------------------------------------------------
> > Have a burning question? Go to Yahoo! Answers
> > <http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx>
> > and get answers from real people who know.
> > !DSPAM:37,4581863130864101612354!
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > !DSPAM:37,4581863130864101612354!
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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
> >
> > !DSPAM:37,4581863130864101612354!
> >
>
>
> --
> Andy Shellam
> NetServe Support Team
>
> the Mail Network
> "an alternative in a standardised world"
>
> p: +44 (0) 121 288 0832/0839
> m: +44 (0) 7818 000834
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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