Network Dependencies
Posted: Mon Dec 05, 2016 12:04 am
Hi Team,
We are using Nagios Core for monitoring Tool. Recently we have faced an issue between two data centers which causes to getting the alerts from second data center as its different network.
so , i tried to give the configuration set up as given below and found that error while restarting the nagios service.
Could you please help me out asap
define hostdependency{
host_name Host A
dependent_host_name 10.175.23.1
notification_failure_criteria d
}
define hostdependency{
host_name Host B
dependent_host_name 10.175.23.1
notification_failure_criteria d,u
}
Note : Error which we are recieving like as given blow.
[root@azmrns01 hosts]# service nagios restart
Restarting nagios (via systemctl): Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[FAILED]
[root@azmrns01 hosts]# tail -f /var/log/messages
Dec 5 04:31:42 azmrns01 nagios: Check your configuration file(s) to ensure that they contain valid
Dec 5 04:31:42 azmrns01 nagios: directives and data defintions. If you are upgrading from a previous
Dec 5 04:31:42 azmrns01 nagios: version of Nagios, you should be aware that some variables/definitions
Dec 5 04:31:42 azmrns01 nagios: may have been removed or modified in this version. Make sure to read
Dec 5 04:31:42 azmrns01 nagios: the HTML documentation regarding the config files, as well as the
Dec 5 04:31:42 azmrns01 nagios: 'Whats New' section to find out what has changed.
Dec 5 04:31:42 azmrns01 systemd: nagios.service: control process exited, code=exited status=8
Dec 5 04:31:42 azmrns01 systemd: Failed to start LSB: Starts and stops the Nagios monitoring server.
Dec 5 04:31:42 azmrns01 systemd: Unit nagios.service entered failed state.
Dec 5 04:31:42 azmrns01 systemd: nagios.service failed.
We are using Nagios Core for monitoring Tool. Recently we have faced an issue between two data centers which causes to getting the alerts from second data center as its different network.
so , i tried to give the configuration set up as given below and found that error while restarting the nagios service.
Could you please help me out asap
define hostdependency{
host_name Host A
dependent_host_name 10.175.23.1
notification_failure_criteria d
}
define hostdependency{
host_name Host B
dependent_host_name 10.175.23.1
notification_failure_criteria d,u
}
Note : Error which we are recieving like as given blow.
[root@azmrns01 hosts]# service nagios restart
Restarting nagios (via systemctl): Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[FAILED]
[root@azmrns01 hosts]# tail -f /var/log/messages
Dec 5 04:31:42 azmrns01 nagios: Check your configuration file(s) to ensure that they contain valid
Dec 5 04:31:42 azmrns01 nagios: directives and data defintions. If you are upgrading from a previous
Dec 5 04:31:42 azmrns01 nagios: version of Nagios, you should be aware that some variables/definitions
Dec 5 04:31:42 azmrns01 nagios: may have been removed or modified in this version. Make sure to read
Dec 5 04:31:42 azmrns01 nagios: the HTML documentation regarding the config files, as well as the
Dec 5 04:31:42 azmrns01 nagios: 'Whats New' section to find out what has changed.
Dec 5 04:31:42 azmrns01 systemd: nagios.service: control process exited, code=exited status=8
Dec 5 04:31:42 azmrns01 systemd: Failed to start LSB: Starts and stops the Nagios monitoring server.
Dec 5 04:31:42 azmrns01 systemd: Unit nagios.service entered failed state.
Dec 5 04:31:42 azmrns01 systemd: nagios.service failed.