27
Apr/070
Apr/070
Linux Downtime Script 0.3a (Perl)
Today i got a patch from jwj at German Nagios Forum for the Linux Downtime Script 0.3. There was a bug with the authentication in version 0.3. Aplying the following patch to 0.3 script, the error will be solved:
--- nagios_downtime.pl.orig 2007-04-27 14:45:48.000000000 +0200 +++ nagios_downtime.pl 2007-04-27 14:46:17.000000000 +0200 @@ -166,7 +166,7 @@ } # Only try to auth if auth informations given - if($nagiosAuthName eq "" && $nagiosUserPw eq "") { + if($nagiosAuthName ne "" && $nagiosUserPw ne "") { # submit auth informations $oBrowser->credentials($nagiosWebServer.':'.$nagiosWebPort, $nagiosAuthName, $nagiosUser => $nagiosUserPw); }
I updated the code in the 0.3 post with this patch.






