where is hosts.cfg and service.cfg
Posted: Fri Jul 10, 2015 2:01 am
Hello all,
I juste installing Nagios 4.0.4.
Now i would like to configure a new hosts and service.
Issue :
I don't fing this 2 files hosts.cfg and services.cfg normaly localy into /usr/local/nagios/etc/objects.
So i created this two files and add the two lignes into /usr/local/nagios/etc/nagios.cfg
# You can specify individual object config files as shown below:
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/hosts.cfg
cfg_file=/usr/local/nagios/etc/objects/services.cfg
I restarted nagis but nagios can't with the error message.
Anyone knows where is two files ????
Thanks
I juste installing Nagios 4.0.4.
Now i would like to configure a new hosts and service.
Issue :
I don't fing this 2 files hosts.cfg and services.cfg normaly localy into /usr/local/nagios/etc/objects.
So i created this two files and add the two lignes into /usr/local/nagios/etc/nagios.cfg
# You can specify individual object config files as shown below:
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/hosts.cfg
cfg_file=/usr/local/nagios/etc/objects/services.cfg
I restarted nagis but nagios can't with the error message.
Anyone knows where is two files ????
Thanks