Check_snmp_int.pl
Dennis Hopp
dhopp at GOCSC.com
Thu Feb 16 18:39:26 CET 2006
That's not really perl, that's just regular expressions.
If you need help with regular expressions check out "The Regex Coach".
It's a free program that will help you figure out the regular expression
you need to match a given phrase.
--Dennis
________________________________
From: Mike Koponick [mailto:mkoponick at redhawk.info]
Sent: Thursday, February 16, 2006 11:38 AM
To: Dennis Hopp; Nagios Users
Subject: RE: [Nagios-users] Check_snmp_int.pl
Dennis,
Thanks for the tip. That worked!
I suppose it's time to dive into Perl ;-)
Thanks!
Mike
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dennis
Hopp
Sent: Thursday, February 16, 2006 9:33 AM
To: Mike Koponick; Nagios Users
Subject: RE: [Nagios-users] Check_snmp_int.pl
Try:
./check_snmp_int -H 10.xx.xx.xx -C <community> -n
GigabitEthernet0/1$
--Dennis
________________________________
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mike
Koponick
Sent: Thursday, February 16, 2006 11:18 AM
To: Nagios Users
Subject: [Nagios-users] Check_snmp_int.pl
I'm using check_snmp_int.pl to check on interfaces on
switches/routers, but can't seem to have it look at a single interface.
I think this is a "/" issue, but am not sure.
When use the command:
./check_snmp_int -H 10.xx.xx.xx -C <community> -n
GigabitEthernet0/1
I receive the following:
GigabitEthernet0/1:UP, GigabitEthernet0/12:DOWN,
GigabitEthernet0/10:UP, GigabitEthernet0/11:DOWN: 2 int NOK : CRITICA
I only wish to see one interface, rather than all of
them as some are not in use and *should* be down.
Thoughts? Maybe it's time for more coffee?
Thanks!
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060216/15c828df/attachment.html>
More information about the Users
mailing list