Hostcontacts don't want to see every Service

Joerg Linge pitchfork at ederdrom.de
Fri Apr 25 13:18:11 CEST 2008


Am Freitag, 25. April 2008 10:51 schrieb Christoph Kluenter:
> Hi,
> 
> I would like to activate a service check that checks for debian-packages that 
> have to be updated.  But my problem ist, that when debian releases a security 
> update, there will be an alarm for every host.
> This will make the Webinterface very cluttered.
> So I would like to have a group which ist the contactgroup for all hosts, but
> does not see the debian-package-service. Is this possible ?
> Usually the contactgroup for a host can see every service on that host. 
> At the moment I have  created a dedicated new host with all the package-checks 
> on the different hosts as services. It works, but is not very nice. Are there 
> better ways ?

Hi Christoph,

have a look on cgi/cgiauth.c Line 270

<snip>
    270         /* if this user is authorized for this host, they are for all services on it as well... */
    271         /* if(is_authorized_for_host(temp_host,authinfo)==TRUE)
    272                 return TRUE;
    273         */

Change Line 271...272 and recompile your cgis

Jörg

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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