NagiosXI Action Settings, runs as user Apache
Posted: Wed Oct 15, 2014 2:06 pm
Is there a way for nagiosxi to run the action settings scripts as nagios instead of apache?
I am running a script that ssh's to the remote machine, kills a process, and returns the output to nagios. It runs fine from the command line as both user nagios and root.
The problem is that the action (when performed by nagiosxi) is being run as user apache, not nagios like the rest of the service checks. I have keys already setup on the remote machines, and other service checks work fine.
Is there a fix, or setting I can set, so that nagiosxi performs the action as the user nagios instead of apache?
I hate to give Apache elevated access on the remote machine, feels like I'm just asking for trouble.
-TR
I am running a script that ssh's to the remote machine, kills a process, and returns the output to nagios. It runs fine from the command line as both user nagios and root.
The problem is that the action (when performed by nagiosxi) is being run as user apache, not nagios like the rest of the service checks. I have keys already setup on the remote machines, and other service checks work fine.
Is there a fix, or setting I can set, so that nagiosxi performs the action as the user nagios instead of apache?
I hate to give Apache elevated access on the remote machine, feels like I'm just asking for trouble.
-TR