Manage Users

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
drakeu
Posts: 41
Joined: Thu Mar 04, 2010 5:02 pm

Manage Users

Post by drakeu »

Hello,

Have a questions about user control. We would like our users to have the ability to acknowledge an alert, however NOT be able to completely disable the alert. Is this currently possible, and if not, can we request it as a feature in future releases? We at some point, may want our users also to be able to schedule downtime but not have access to other advanced features. Thanks!

Mike
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Manage Users

Post by mmestnik »

Yes, though it would not be done through the current interface. One example that we are working on in house(No ETA on this ATM) is using SMS replies to acknowledge alerts or set down-times.

Since you would like to implement limited access the easy solution is to use the command submission API. This can easily be done with a vary small php or perl CGI that the user would access to submit a handful of commands. In the development release(1.2, currently available) the user-base is shadowed as an htpasswd file so authentication is easy and straight forward.

You can link to this script using Extended Service/Host Information to add an action URL. Here are the URLs to accomplish this:
http://nagios.sourceforge.net/docs/3_0/extcommands.html
http://nagios.sourceforge.net/docs/3_0/ ... iceextinfo

The script would look something like this, using pseudo code:

Code: Select all

Read is service/host and read name and perhaps action;
echo "[$(date +%s)] "'ACKNOWLEDGE_SVC_PROBLEM;(host_name);(service_description);(sticky);(notify);(persistent);(author);(comment)' >
/usr/local/nagios/var/rw/nagios.cmd;
# You can also use:
#ACKNOWLEDGE_HOST_PROBLEM;<host_name>;<sticky>;<notify>;<persistent>;<author>;<comment>
Locked