is there a way to pass contact username thru url to status.cgi for authentication?

Steve Kemp steve at dedicatedserversaustralia.com.au
Thu Oct 7 07:48:22 CEST 2010


Im looking for a way to allow remote access to Nagios based on specific
clients (contacts) in Nagios without using http authentication

 

The remote access is being displayed in another site using <object> tags

 

I don't however want them to have access to any data not relating to their
specific servers.

 

So for example:

 

http://www.domain.com/nagios/cgi-bin/status.cgi?host=server1.clientsdomain.c
om.au
<http://www.domain.com/nagios/cgi-bin/status.cgi?host=server1.clientsdomain.
com.au&style=detail> &style=detail is what I would like to load but the cgis
can only show the data relating to the contacts servers.

 

In Firefox and Chrome I can pass authentication thru the browser via
http://user:pass@ but this isn't allowed in IE, and isn't ideal or secure
anyway.

 

Is there a way to pass the contact variable thru to the browser ie
http://www.domain.com/nagios/cgi-bin/status.cgi?host=server1.clientsdomain.c
om.au
<http://www.domain.com/nagios/cgi-bin/status.cgi?host=server1.clientsdomain.
com.au&style=detail&contact=xyz> &style=detail&contact=xyz so that while the
user isn't given a popup login box they are still restricted to only seeing
data relating to their server or servers

 

I have hunted high and low for a way around this and have had no luck so
far..

 

Regards

 

Steve Kemp

Dedicated Servers Australia


Description: ded-aus-logo

www.dedicatedserversaustralia.com.au

Tel: +61 7 30187567  Fax: +61 7 38476684

Support: https://accounts.dedicatedserversaustralia.com.au 

Sales Email: dedaus.sales at dedicatedserversaustralia.com.au

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101007/f1a49296/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 7714 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101007/f1a49296/attachment.gif>
-------------- next part --------------
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
-------------- next part --------------
_______________________________________________
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