how to use logged-in (Apache) user in plugins?
Páll Guðjón Sigurðsson
palli at ok.is
Tue Nov 20 11:15:03 CET 2012
Pepe,
Nagios design does not allow for this. Plugins are executed without any user being logged in the web interface so a plugin has no idea which user is going to look at the results later on.
What you can do instead is define multiple service checks, with "secretary" only having access to some of them. while the other "more advanced" ones are viewable to nagios admins.
Maybe what you are really looking for is http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details
Which allows you to take a lot of service checks and group them together in higher level view. i.e.
* "Webservices are up"
* "Databases are down"
Kind Regards,
Pall Sigurdsson
----- Original Message -----
From: kaskada at email.cz
To: "Nagios Users List" <nagios-users at lists.sourceforge.net>
Sent: Tuesday, November 20, 2012 9:47:31 AM
Subject: Re: [Nagios-users] how to use logged-in (Apache) user in plugins?
Hi,
anyone knows a solution or any help? Please...
Pepe
---------- Původní zpráva ----------
Od: kaskada at email.cz
Datum: 18. 11. 2012
Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins?
Hello,
no, I really want to have different output from one plugin depending on user logged in. So I need to show some advanced output to some most advanced admins. (secretary and naiosadmin was just an example)
Pep.
---------- Původní zpráva ----------
Od: Giles Coochey <giles at coochey.net>
Datum: 17. 11. 2012
Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins?
On 16/11/2012 23:37, kaskada at email.cz wrote:
> 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?
>
You probably just want a different web front-end altogether for
"secretary"... search around for different Nagios Front-Ends.
--
Regards,
Giles Coochey, CCNA, CCNAS
NetSecSpec Ltd
+44 (0) 7983 877438
http://www.coochey.net
http://www.netsecspec.co.uk
giles at coochey.net =
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list