Re: Adding hosts/clients to Nagios Core 3.5(Red Hat 6.4)
Posted: Wed Sep 11, 2013 3:41 am
Hi ricardowesley,
You posted the below result;
I may be mistaken, bit it looks like you are missing the hosts.cfg and hostgroups.cfg defined in nagios.cfg?
The names of you files may not be hosts.cfg and hostgroups.cfg, but just replace them with what you have.
For future, you also look to be missing services.cfg (where you define the services for the hosts in hosts.cfg).
Kind Regards,
Gary Shergill
You posted the below result;
Code: Select all
root@plxnagios ~]# cat /usr/local/nagios/etc/nagios.cfg | grep cfg_file=
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
cfg_file=/usr/local/nagios/etc/objects/switch.cfg
#cfg_file=/usr/local/nagios/etc/objects/printer.cfgCode: Select all
cfg_file=/usr/local/nagios/etc/objects/hosts.cfg
cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfgFor future, you also look to be missing services.cfg (where you define the services for the hosts in hosts.cfg).
Kind Regards,
Gary Shergill