Looking-Glass Beta-testers: critical bug

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Thu Nov 9 22:57:49 CET 2006


Hi,

To anyone who's testing Nagios Looking Glass 0.2.41, there is a bug in 
the code that denies all IPs access to the poller when $AllowedIPs is 
not set.
It should be that when $AllowedIPs = Array(), any host is allowed a 
connection.

To fix:
In poller_s2.php, replace lines 22-26 (inclusive) with the following 9 
lines:

// First check the allowed list of IPs
// BUG FIX FS#52 - only check the IPs if the array contains *some* IPs
if (count($AllowedIPs) > 0)
{
    if (!in_array($_SERVER['REMOTE_ADDR'], $AllowedIPs))
    {
        $NLGPoller->CreateErrorToken("Host " . $_SERVER['REMOTE_ADDR'] . 
" is not allowed to connect to the poller");
    }
}

It has also been discovered that NLG may not be compatible with Nagios 
1.x - I'm investigating.

Thanks,

Andy.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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