Notification on Service Check Status Information Change
Posted: Mon Jan 09, 2017 2:40 pm
I am running a Nagios XI system with 100% passive checks. One of my service level checks is a simple public IP address check. Each one of my hosts (Ubuntu based server in remote locations) will run a service check that will see what the public IP address is and simply report it back. There are no alerts built into this check (i.e. warning, critical, etc..) its informational only.
My question is can I get Nagios to send an email notification that the IP address (i.e. service check information) changed?
My reasoning is that if site A has an IP address change for some reason (they changed ISP, something stopped working and their network failed over to another ISP, whatever) I would like to be alerted to that fact. Otherwise we would need to manually compare the IP address we had yesterday to the one that the host sent us today which is a pain.
I am aware that I could modify my service check to keep the last IP address in a file and compare that address to the new one and if they are different to set an alert status but I was hoping to avoid rewriting my check.
Thanks in advance for the help.
My question is can I get Nagios to send an email notification that the IP address (i.e. service check information) changed?
My reasoning is that if site A has an IP address change for some reason (they changed ISP, something stopped working and their network failed over to another ISP, whatever) I would like to be alerted to that fact. Otherwise we would need to manually compare the IP address we had yesterday to the one that the host sent us today which is a pain.
I am aware that I could modify my service check to keep the last IP address in a file and compare that address to the new one and if they are different to set an alert status but I was hoping to avoid rewriting my check.
Thanks in advance for the help.