Extends agent with pass
news gonzo news gonzo <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I tried to extends my Net-SNMP agent (5.1.1), but I didn't succeed. It seems that when I request the OID loop to the infinit, or it don't send any value. The OID which I try to enrich is : .iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad My snmpd.conf is : #exec .1.3.6.1.2.1.25.3.3.1.2 cpu /bin/sh /usr/local/share/snmp/exec_hrProcessorLoad.sh #extend .1.3.6.1.2.1.25.3.3.1.2 cpu /bin/sh /usr/local/share/snmp/exec_hrProcessorLoad.sh pass .1.3.6.1.2.1.25.3.3.1.2.768 /bin/sh /usr/local/share/snmp/pass_hrProcessorLoad.sh And my pass_hrProcessorLoad.sh is : #!/bin/sh echo ".1.3.6.1.2.1.25.3.3.1.2.768" echo "integer" vmstat |tail -1|cut -d" " -f29 Thanks for your help ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com ------------------------------------------------------------------------- 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 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users