Hi All,
Someone on my team disabled notifications for a service and forgot to re-enable them after they resolved the issue. This caused of course another issue which we didn't catch. My manager is asking if there is a way to send a notification out when a service is disabled. Is this something that can be done in the configuration?
Thanks
Email notification when Disabling notification on service
Re: Email notification when Disabling notification on servic
Hello,
Thanks for reaching out, and hope things are going well.
There are several service checks plugins available that you could use to check if the service is running and/or stopped, the option to change the check within the plugin for other options to check for as well. Here are several examples:
Perry
Thanks for reaching out, and hope things are going well.
There are several service checks plugins available that you could use to check if the service is running and/or stopped, the option to change the check within the plugin for other options to check for as well. Here are several examples:
- check_init_service
- check_services
- check_systemd_service
Perry
Re: Email notification when Disabling notification on servic
Hi Perry and thanks for the response. I don't think this is what I need. What I am looking for is if someone goes into the web console and for example disables check_disk check that we get notified that it was disabled.
Is there alternative way to have each unique login logged in the nagios.log when a service is disabled or anything done with the service?
Is there alternative way to have each unique login logged in the nagios.log when a service is disabled or anything done with the service?
Re: Email notification when Disabling notification on servic
Think you're going to need to write a script for this. There's nothing native to Nagios that would do this to my knowledge.
log_external_commands can be set within your Nagios config file, but this only captures when commands (like "disable service notifications") are submit to the external commands file, not who submit them.npolite wrote:Is there alternative way to have each unique login logged in the nagios.log when a service is disabled or anything done with the service?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Email notification when Disabling notification on servic
Thanks mcapra. I had a feeling but wanted to confirm.
Re: Email notification when Disabling notification on servic
Sorry to interrupt, but...
Where is the info on disabled notifications stored or logged? I was looking in the logs in /usr/local/nagios/var but see much. Maybe in the objects or status files?
Where is the info on disabled notifications stored or logged? I was looking in the logs in /usr/local/nagios/var but see much. Maybe in the objects or status files?