how to use logged-in (Apache) user in plugins?

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
PepeOnAchair
Posts: 2
Joined: Fri Nov 16, 2012 6:25 pm

how to use logged-in (Apache) user in plugins?

Post by PepeOnAchair »

Hello,

I`m trying, googling but with no success.

What I need is to adjust the output of a Nagios plugin depending on a user who is logged in the Nagios web interface. Like for example when "nagiosadmin" is logged in, the plugin will show more output/debug information than when just user "secretary" is logged in Nagios web.

Is that somehow possible?

Thank you.
Pepe
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: how to use logged-in (Apache) user in plugins?

Post by slansing »

Hmm this is an interesting idea, I will do some digging and talk to others in the office on Monday.
Locked