<html><body>Thank you for your answer. I understand now, so my bad luck :)<br>I have to do it maybe your way.<br>Best regards, Pepe<br><br><p><br>---------- Původní zpráva ----------<br>Od: Páll Guðjón Sigurðsson <palli@ok.is><br>Datum: 20. 11. 2012<br>Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins?</p><blockquote>Pepe,<br><br>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.<br><br>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.<br><br>Maybe what you are really looking for is <a href="http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details">http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details</a><br><br>Which allows you to take a lot of service checks and group them together in higher level view. i.e.<br>* "Webservices are up"<br>* "Databases are down"<br><br><br>Kind Regards,<br>Pall Sigurdsson<br><br>----- Original Message -----<br>From: kaskada@email.cz<br>To: "Nagios Users List" <nagios-users@lists.sourceforge.net><br>Sent: Tuesday, November 20, 2012 9:47:31 AM<br>Subject: Re: [Nagios-users]  how to use logged-in (Apache) user in plugins?<br><br><br>Hi, <br><br>anyone knows a solution or any help? Please... <br><br>Pepe <br><br><br><br>---------- Původní zpráva ---------- <br>Od: kaskada@email.cz <br>Datum: 18. 11. 2012 <br>Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? <br><br><br>Hello, <br><br>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) <br><br>Pep. <br><br><br><br><br>---------- Původní zpráva ---------- <br>Od: Giles Coochey <giles@coochey.net> <br>Datum: 17. 11. 2012 <br>Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? <br><br>On 16/11/2012 23:37, kaskada@email.cz wrote: <br>> Hello, <br>> <br>> I`m trying, googling but with no success. <br>> <br>> What I need is to adjust the output of a Nagios plugin depending on a <br>> user who is logged in the Nagios web interface. Like for example when <br>> "nagiosadmin" is logged in, the plugin will show more output/debug <br>> information than when just user "secretary" is logged in Nagios web. <br>> <br>> Is that somehow possible? <br>> <br>You probably just want a different web front-end altogether for <br>"secretary"... search around for different Nagios Front-Ends. <br><br>-- <br>Regards, <br><br>Giles Coochey, CCNA, CCNAS <br>NetSecSpec Ltd <br>+44 (0) 7983 877438 <br><a href="http://www.coochey.net">http://www.coochey.net</a> <br><a href="http://www.netsecspec.co.uk">http://www.netsecspec.co.uk</a> <br>giles@coochey.net = <br>------------------------------------------------------------------------------<br>Monitor your physical, virtual and cloud infrastructure from a single<br>web console. Get in-depth insight into apps, servers, databases, vmware,<br>SAP, cloud infrastructure, etc. Download 30-day Free Trial.<br>Pricing starts from $795 for 25 servers or applications!<br><a href="http://p.sf.net/sfu/zoho_dev2dev_nov">http://p.sf.net/sfu/zoho_dev2dev_nov</a><br>_______________________________________________<br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null<br><br>------------------------------------------------------------------------------<br>Monitor your physical, virtual and cloud infrastructure from a single<br>web console. Get in-depth insight into apps, servers, databases, vmware,<br>SAP, cloud infrastructure, etc. Download 30-day Free Trial.<br>Pricing starts from $795 for 25 servers or applications!<br><a href="http://p.sf.net/sfu/zoho_dev2dev_nov">http://p.sf.net/sfu/zoho_dev2dev_nov</a><br>_______________________________________________<br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</blockquote></body></html>