NagiosQL Host not update in Nagios Core
Posted: Tue Apr 12, 2016 2:40 am
Nagios version 4.1.1
NagiosQL version 3.2.0
CentOS 7
pnp4nagios version 0.6.25
----------------------------------------------------------------------------
vi /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
# Definitions for monitoring the local (Linux) host
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
# Definitions for monitoring a Windows machine
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
# Definitions for monitoring a router/switch
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg
# Definitions for monitoring a network printer
#cfg_file=/usr/local/nagios/etc/objects/printer.cfg
# You can also tell Nagios to process all config files (with a .cfg
# extension) in a particular directory by using the cfg_dir
# directive as shown below:
cfg_dir=/etc/nagiosql
----------------------------------------------------------------------------
it verify OK
command : /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
and restart nagios
command : systemctl restart nagios.service
In First time, The hosts (and services) that I config in Nagiosql shown in Nagios core.
when I modify host or service in Nagiosql (and restart nagios service), The host file (of nagiosql) was changed but the host in Nagios core not change (not sync).
How can I track this problem ?
Thank You
NagiosQL version 3.2.0
CentOS 7
pnp4nagios version 0.6.25
----------------------------------------------------------------------------
vi /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
# Definitions for monitoring the local (Linux) host
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
# Definitions for monitoring a Windows machine
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
# Definitions for monitoring a router/switch
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg
# Definitions for monitoring a network printer
#cfg_file=/usr/local/nagios/etc/objects/printer.cfg
# You can also tell Nagios to process all config files (with a .cfg
# extension) in a particular directory by using the cfg_dir
# directive as shown below:
cfg_dir=/etc/nagiosql
----------------------------------------------------------------------------
it verify OK
command : /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
and restart nagios
command : systemctl restart nagios.service
In First time, The hosts (and services) that I config in Nagiosql shown in Nagios core.
when I modify host or service in Nagiosql (and restart nagios service), The host file (of nagiosql) was changed but the host in Nagios core not change (not sync).
How can I track this problem ?
Thank You