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


     RE: [snips-users] snmpmon and web

Actually that was a cut and paste from a very old post. I am running RedHat
8.0 now. The change I made was in the parsing for the ping command. My ping
would output:
4 packets transmitted, 4 received, 0% loss, time 2997ms
whereas the script was looking for:
4 packets transmitted, 3 packets received, 25% packet loss

I changed the parsing line in snmpmon-collector from:
	if ( /\s+(\d+)%\s+packet\s+loss/) {
	if ( /\s+(\d+)%\s+loss/) {

and all was well.
Oh and the output from uname:
[root at rh1 bin]# uname -s -r -m
Linux 2.4.20-18.7 i686

That's it. Hope it helps anyone out there with similar issues.

Brian Andrus

-----Original Message-----
From: Russell Van Tassell [mailto:russell at loosenut com] 
Sent: Tuesday, July 22, 2003 11:34 PM
To: Brian Andrus
Cc: 'Tim Peiffer'; 'Snips Users list'
Subject: Re: [snips-users] snmpmon and web

On Tue, Jul 22, 2003 at 12:32:43PM -0700, Brian Andrus wrote:
> > On Tue, Jul 22, 2003 at 12:32:43PM -0700, Brian Andrus wrote:
> > > Ok I am trying to get some sort of data out of the snmpmon monitor.
> > >
> > > So far I took the sample config and merely put in one system, the host
> > > snips is running on (Linux 7.2).
> It turned out it was the snmpmon-collector script itself.
> It was not properly parsing the results from the ping command so it
> the systems were unavailable and would not even run snmpwalk.

Do you have a diff of the snmpmon-collector script, by chance?  And a
"uname -a" from your system?  It might help others with the same issue
and, with any luck, we can patch it for all to benefit...  ;-)

I'm assuming by "Linux 7.2" you mean RedHat?

Russell M. Van Tassell
russell at loosenut com

 Q: Why do ducks have flat feet?     Q: Why do elephants have flat feet?
 A: To stamp out forest fires.       A: To stamp out flaming ducks.

Zyrion Traverse Network Monitoring & Network Management Software