[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     [snips-users] HOSTMON match glitch

Hi,

	Having an issue, think we tracked it down....In hostmon, we 
were getting a problem where it seemed to confuse 2 systems. We have
"outgard.ttsg.com" and "utgard.ttsg.com", both Suns with /opt volumes.
It seems like its taking utgards information and using it for outgard.
I think I've narrowed it down to :

    foreach $i  (split(/:/, $thresindex{$dvname}))
    {
        local ($junk, $host_regex, $t1,$t2,$t3, $regex) =
            split (/\t/, $thress[$i]);
        ($debug > 1) && print STDERR "(dbg) check vs. thress[$i] = $thress[$i]\n
";

        # Change the special char to a '|' to allow filename slashes
        if (($host =~ m|$host_regex|i) &&
             ($regex eq '' || $dcomment =~ m|$regex|i) )
        {
            ($debug > 1) && print STDERR "(dbg) Matched- thress[$i], $thress[$i]
\n";
            ($isok, $varthres, $maxsev)= &calc_status ($dvalue, $t1, $t2, $t3);
            ++$matched ;
            last ;      # dont search thru anymore patterns of foreach()
        }
    }   # end foreach()



	I wondered if I changed :

	        if (($host =~ m|$host_regex|i) &&


	to

	        if (($host =~ m|^$host_regex$|i) &&

	will I break anything.... Suggestions?

		Tuc/TTSG Internet Services, Inc.


Zyrion Traverse Network Monitoring & Network Management Software