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
This is interesting. I'd be surprised if Nagios doesn't barf on this. I'm assuming this is a template you wish to include in your *real* host objects (luke and leia below - cute names, btw), but making them "use" themselves is just asking for an infinite loop bug to bite you. > check_command check-host-alive > max_check_attempts 15 > notification_interval 30 > notification_period 24x7 > contact_groups admins > notification_options d,r > register 1 > } As has already been pointed out, "register" should be set to 0 for template objects. This is quite clearly documented, and "register" is there for the sole reason of coping with templates that aren't complete objects. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- 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@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