pb with extend
KP Kirchdoerfer <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | none |
| Message-ID | <[email protected]> |
Hi; I've used to monitor the mailqueue's with an exec statement. The new snmp package in Debian Lenny does not support exec any longer and I to accomplish the task with an extend statement. The statement is: extend .1.3.6.1.4.1.2021.53 mailqueue /usr/local/bin/check_mail_queue.sh Running the shellscript shows 4 messages in the deferred queue. /usr/local/bin/check_mail_queue.sh incoming: 0 active: 0 maildrop: 0 deferred: 4 But wth snmpwalk I see zero mails in the queue: snmpwalk -t 1 -r 5 -m ALL -v 1 -c public 192.168.22.101 .1.3.6.1.4.1.2021.53 UCD-SNMP-MIB::ucdavis.53.1.0 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.53.2.1.2.9.109.97.105.108.113.117.101.117.101 = STRING: "/usr/local/bin/check_mail_queue.sh" UCD-SNMP-MIB::ucdavis.53.2.1.3.9.109.97.105.108.113.117.101.117.101 = "" UCD-SNMP-MIB::ucdavis.53.2.1.4.9.109.97.105.108.113.117.101.117.101 = "" UCD-SNMP-MIB::ucdavis.53.2.1.5.9.109.97.105.108.113.117.101.117.101 = INTEGER: 5 UCD-SNMP-MIB::ucdavis.53.2.1.6.9.109.97.105.108.113.117.101.117.101 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.53.2.1.7.9.109.97.105.108.113.117.101.117.101 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.53.2.1.20.9.109.97.105.108.113.117.101.117.101 = INTEGER: 4 UCD-SNMP-MIB::ucdavis.53.2.1.21.9.109.97.105.108.113.117.101.117.101 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.53.3.1.1.9.109.97.105.108.113.117.101.117.101 = STRING: "incoming:" UCD-SNMP-MIB::ucdavis.53.3.1.2.9.109.97.105.108.113.117.101.117.101 = STRING: "incoming: 0 active: 0 maildrop: 0 deferred: 0" UCD-SNMP-MIB::ucdavis.53.3.1.3.9.109.97.105.108.113.117.101.117.101 = INTEGER: 8 UCD-SNMP-MIB::ucdavis.53.3.1.4.9.109.97.105.108.113.117.101.117.101 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.1 = STRING: "incoming:" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.2 = STRING: "0" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.3 = STRING: "active:" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.4 = STRING: "0" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.5 = STRING: "maildrop:" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.6 = STRING: "0" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.7 = STRING: "deferred:" UCD-SNMP-MIB::ucdavis.53.4.1.2.9.109.97.105.108.113.117.101.117.101.8 = STRING: "0" Why did it work with exec and what am I doing wrong with extend? Any ideas how I can fix it? TIA kp ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ 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