Hi,
Is it possible?
Hide the "Disable Notifications" link for hosts and services
Re: Hide the "Disable Notifications" link for hosts and serv
Can you show us the link you're referring to with a screenshot? I'd like to see what page you're talking about exactly.
Former Nagios Employee
Re: Hide the "Disable Notifications" link for hosts and serv
Sure. These are screenshots of older and newer nagios.
These links are part of commands.cgi file, which is compiled code (c I guess?). So the only possibility is to change the source and build nagios from sources? This should be done easier
From the cgi.conf I can disable access to all the commands for specified user, but this is not what we would like to have. The disable notification button / link is pretty crazy for some installations (we use nagios as reporting engine for our service desk and it sends notifications there over custom command (basically via http post) and sends mails to admins. But our support sometimes disables the notifications even before the hard state arrived, as nagios starts yelling on state change. Can't disable the sound also, because it just forces people to react. They've worked a lot with disable notification button/link and now it is just a bad habit, which we can't rid of. So we see multiple variations here:
1. hide the disable notification button/link for all or specified users in cgi.conf
2. enable sound notifications in nagios only when hard state arrived
3. if we've reached the 2, then notifications should be automatically enabled after the host has changed its state to OK again, or at least admins should have a possibility to allow such behavior.
4. add new button/link - disable sound notifications for host/service
These links are part of commands.cgi file, which is compiled code (c I guess?). So the only possibility is to change the source and build nagios from sources? This should be done easier
1. hide the disable notification button/link for all or specified users in cgi.conf
2. enable sound notifications in nagios only when hard state arrived
3. if we've reached the 2, then notifications should be automatically enabled after the host has changed its state to OK again, or at least admins should have a possibility to allow such behavior.
4. add new button/link - disable sound notifications for host/service
Re: Hide the "Disable Notifications" link for hosts and serv
The only way to remove those links is going to be by modifying the CGI files. If you'd like to suggest it be changed differently, feel free to raise an issue on the Core development GitHub.
https://github.com/NagiosEnterprises/nagioscore/issues
You might be able to do an apache rewrite rule, to lock people out of that page, but you'd have to look into writing it up.
https://github.com/NagiosEnterprises/nagioscore/issues
You might be able to do an apache rewrite rule, to lock people out of that page, but you'd have to look into writing it up.
Former Nagios Employee