How to configure Nagios Core, CGI web interface?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Schmatte
Posts: 5
Joined: Fri Jul 31, 2015 6:34 am

How to configure Nagios Core, CGI web interface?

Post by Schmatte »

Hi,

I'm looking for an option to enable/disable some commands in the service-details-view of the shown "Service Commands".

In the cgi.cfg exist an option "authorized_for_all_service_commands=XXXX", to enable or disable commands (all or nothing) for an authenticated user, but I would like to disable only a couple of the commands in the CGI.

For instance the command "Re-schedule the next check of this service" should be still enabled, so that an user could call this command,
but the command "Disable Active Checks Of This Service" should be disabled (or removed from view) so that an CGI-user should never be able to call this command in the CGI.

Does there exist an option for the CGI of Nagios Core 4.0.8 to fulfill this requirement?

Regards
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to configure Nagios Core, CGI web interface?

Post by tmcdonald »

On a case-by-case basis, no. You would need to modify the source code to block out those links, then recompile. However that just removes the commands from appearing in the interface - they would still be available to those that know the URL structure.
Former Nagios employee
Locked