I have added a line into /etc/snmp/snmpd.conf to enable my custom script:
extend-sh quentus /bin/echo "client1 0 1 2"; /bin/echo "client2 3 4 5"; exit 0
Then to test that it works(after restarting snmpd):
root@thedraft:/etc/snmp# snmpwalk -v 1 -c ****** localhost NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"quentus\"
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."quentus" = STRING: client1 0 1 2
client2 3 4 5
root@thedraft:/etc/snmp#
The script will output an unknown number of lines, with the 'name of the client' as the first entry on each line, followed by 3 integer statistics separated by spaces. My issue now is that all attempts to create a data query template to parse each line returned has failed. Any assistance and direction would be appreciated.
Custom data query template for custom snmpd extend script.
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Sat Mar 12, 2011 7:24 pm
Who is online
Users browsing this forum: No registered users and 0 guests