Using check_snmp_int.pl to query Windows networkinterface
Patrick Proy
nagios-user at proy.org
Sun Dec 10 22:25:23 CET 2006
Hi,
Replace line 562 in the script with :
$descr[$i] =~ s/'\/\(\)/_/g;
It should work better (the check_snmp_int.pl script will be updated in later
release with this).
Note : I don't think there is any way to change windows interface
description in SNMP.
Regards,
Patrick
http://www.manubulon.com/nagios/
________________________________
De : nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Peter
Edmonds
Envoyé : dimanche 10 décembre 2006 11:14
À : Nagios Userlist
Objet : [Nagios-users] Using check_snmp_int.pl to query Windows
networkinterface
All,
I am using check_snmp_int.pl from
http://www.manubulon.com/nagios/snmp_int.html to query network interfaces on
Windows machines. I run this
bash-3.00$ ./check_snmp_int.pl -H 172.xx.xx.xx -C public -n "Intel\(R\)
PRO\/1000 CT Network Connection" -B -f -w 0,0 -c 0,0
and get this result
Intel(R) PRO/1000 CT Network Connection:UP:1 UP: OK | 'Intel(R) PRO/1000 CT
Network Connection_in_octet'=3870538451c 'Intel(R) PRO/1000 CT Network
Connection_out_octet'=1949658650c
My problem is that the performance data contains the name of the interface
and I think the ( ) and / characters are killing the perl script that
processes the performance data.
Is there a way to change the SNMP network interface description on the
Windows machine to remove the brackets and forward slash ? Or alternatively
has anyone modified check_snmp_int.pl to query Windows without requiring the
network interface description ?
Thanks
Peter Edmonds
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list