Re: Extend and integers
Joe Warren-Meeks <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
And yet again to reply to myself, I've started using the PASS mechanism and writing my own MIB, which all works fine, except I've broken snmpwalking somehow. I'm getting the following: joe-warren-meeks-computer:/usr/share/snmp/mibs joe$ snmpwalk -mALL - v2c -c agoodcommunitystring 127.0.0.1 enterprises.hole-in-the- net.mysqlJbpm.rowCount HOLE-IN-THE-NET-MIB::rowCount = INTEGER: 50917 Error: OID not increasing: HOLE-IN-THE-NET-MIB::rowCount >= HOLE-IN-THE-NET-MIB::rowCount I'm currently using pass to run the following script: #!/bin/sh THING=`/usr/bin/mysql --batch --password=notmyrealpassword -u root coreJbpm --execute='select count(*) from JBPM_LOG;'|grep -v count` echo ".1.3.6.1.4.1.4914.1.1" echo "integer" echo $THING and using pass as follows from snmpd.conf pass .1.3.6.1.4.1.4914.1.1 /etc/snmp/mysql-jbpm-test.sh Any pointers as to what I'm doing wrong? -- joe. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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