[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:

Error: unknown input data line syntax- IObw 0.3 %util sd0
Error: unknown input data line syntax- IObw 0.0 %util sd1
Error: unknown input data line syntax- IObw 0.0 %util sd30
Error: unknown input data line syntax- IObw 0.0 %util nfs1

Obviously it's something that hostmon-collector is putting into the /tmp/hostmon_data/host.hostmon file, that hostmon then cannot read. It's running on a Solaris 8 box.

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

Zyrion Traverse Network Monitoring & Network Management Software