Thank you Dave. This was very helpful. Using this suggestion I now have snmpwalk ouput of:
[EMAIL PROTECTED] snmp# snmpwalk -v 2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendObjects NET-SNMP-EXTEND-MIB::nsExtendNumEntries.0 = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendCommand."swap_percent" = STRING: /etc/snmp/bin/check_swap_pct.bash NET-SNMP-EXTEND-MIB::nsExtendArgs."swap_percent" = STRING: NET-SNMP-EXTEND-MIB::nsExtendInput."swap_percent" = STRING: NET-SNMP-EXTEND-MIB::nsExtendCacheTime."swap_percent" = INTEGER: 5 NET-SNMP-EXTEND-MIB::nsExtendExecType."swap_percent" = INTEGER: exec(1) NET-SNMP-EXTEND-MIB::nsExtendRunType."swap_percent" = INTEGER: run-on-read(1) NET-SNMP-EXTEND-MIB::nsExtendStorage."swap_percent" = INTEGER: permanent(4) NET-SNMP-EXTEND-MIB::nsExtendStatus."swap_percent" = INTEGER: active(1) NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."swap_percent" = STRING: 0 NET-SNMP-EXTEND-MIB::nsExtendOutputFull."swap_percent" = STRING: 0 NET-SNMP-EXTEND-MIB::nsExtendOutNumLines."swap_percent" = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendResult."swap_percent" = INTEGER: 0 NET-SNMP-EXTEND-MIB::nsExtendOutLine."swap_percent".1 = STRING: 0 >From a quick read of the NET-SNMP-EXTEND-MIB file am I correct in assuming that the NET-SNMP-EXTEND-MIB::nsExtendResult."swap_percent" line is the integer result of the command I want to use as the argument in my "monitor" statement? Something like: monitor -r 10 -u citadelInternal NET-SNMP-EXTEND-MIB::nsExtendResult."swap_percent" = 0 Thanks again. -Eric -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Wednesday, April 25, 2007 2:05 PM To: Lambert, Eric Cc: net-snmp-users@lists.sourceforge.net Subject: Re: More questions on exec/extend On 25/04/07, Lambert, Eric <[EMAIL PROTECTED]> wrote: > I have the following lines in my snmpd.conf file: > extend .1.3.6.1.4.1.7594.400 swap_percent > /etc/snmp/bin/check_swap_pct.bash > When I run an snmpwalk I get the following data, which I am having trouble > understanding... [snip] Can I suggest that you try with an snmpd.conf line of extend swap_percent /etc/snmp/bin/check_swap_pct.bash (i.e. the same line, but without specifying an OID). Then run snmpwalk ..... NET-SNMP-EXTEND-MIB::nsExtendObjects That should give you the same basic output, but display it using named MIB objects (rather than purely numeric OIDs). Once you've got a feel for the structure of this information, you can revert to the version based under enterprises.7594.400, with a better understanding of what the individual objects mean. You might even wish to take a copy of the NET-SNMP-EXTEND-MIB, renaming the MIB, and rooting it at enterprises.7594.400 instead of nsExtendObjects. That would allow your "relocated" output to be displayed by name as well. But the simplest thing to start with would be to temporarily drop the explicit OID altogether. Dave ------------------------------------------------------------------------------------------------- ------------------------- CONFIDENTIALITY AND SECURITY NOTICE The contents of this message and any attachments may be privileged, confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users