Net-SNMP 5.4.1 snmpd -H doesn't know the exec directive
Bočinec Juraj <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Greetings, we'd like to use Net-SNMP 5.4.1 for monitoring AIX machines. I've prepared a package compiled on testing machine with AIX 5.3 that we'll distribute to other machines. 1. on both testing machines it works correctly (old p640 7026-B80) but on the development/production machines (p570) it won't show CPU usage and load correctly: # /usr/local/bin/snmpwalk -v1 -c public 10.42.1.57 .1.3.6.1.4.1.2021.11 UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1 UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 0 UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 0 UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 0 UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 0 UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 0 UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 0 UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 0 UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 0 2. so we thought about a workaround by using exec in snmpd.conf that would pass the values into extTable branch exec .1.3.6.1.4.1.2021.8 cpu_usage_user /usr/local/bin/cpu_usage_user However this solution doesn't work as well # /usr/local/bin/snmpwalk -v1 -c public 10.42.1.57 .1.3.6.1.4.1.2021.8 # echo $? 0 when i try to run snmpd -H to show me directives that are known to him, there is no exec, sh nor extend directive listed. I have installed net-snmp from ports on my home x86 machine running FreeBSD-6.1 and the exec solution works correctly. Is there some option passed to the configure script or make that tells "compile on AIX with exec directive support"? As it seems to be on by default. The configure line looks like this: ./configure --disable-embedded-perl --without-kmem-usage --with-default-snmp-version="1" --with-sys-contact="[email protected]" --with-sys-location="CDC Brno" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-ldflags="-L/opt/freeware/lib" I can provide more information if needed. Thanks in advance for any help. S pozdravem / Best regards / Mit freundlichen Gruessen / Yoroshiku onegaishimasu Juraj Bočinec UNIX Systems Administrator RWE-Systems Czech s.r.o. Plynárenská 499/1, Brno 657 02 Brno M +420 724 587 320 mailto:[email protected] ------------------------------------------------------------------------- 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