Just to
clarify the fix here.. I needed to add single quotes around the interface name
with the “$” as well.
For example in the services configuration:
check_snmp_int!public!'FastEthernet0/2$'
Thanks!
Mike
From: Mike Koponick
[mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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