[Date Prev] [Date Next] | [Thread Prev] [Thread Next] | [Date Index] [Thread Index] |
[snips-users] Re: hostmon debug errors
|
yesterday, I wrote:Turning on debugging for hostmon reveals a few dozen lines of each cycle that look like this: I snooped through the code. The problem is that "hostmon" is looking through the file using this: elsif ( /^\s*(\S+)\s+(\d+)\s+(\S+)(\s+(\S.*)?)?\s*$/ ) { ($curvar, $curvalue, $curunit, $comment) = ($1, $2, $3, $5); $comment = "" if (!defined ($comment)); and the first (\d+) is not built to handle numbers with decimal points (or negative values for that matter.) The header for "hostmon" is: # $Header: /cvsroot/snips/perl-monitors/hostmon,v 1.1 2001/09/24 15:32:22 vikas As I said, I inherited this system; did the previous admin miss an upgrade somewhere? Any tips welcome. Thanks. -dan -- Daniel MacKay Halifax, Nova Scotia, Canada +1 902.499.0488 |