I've run into what appears to be a basic problem, and yet I can't seem to find any information on it. Essentially, I'm trying to call the exec directive from my snmpd.conf as such:
exec .1.3.6.1.4.1.2021.50 message /usr/local/bin/qmailmrtg7 m /var/log/qmail If I call /usr/local/bin/qmailmrtg7 m /var/log/qmail from the command line, the output at this particular time is: 36 36 If I do an snmpwalk like this: snmpwalk -v 2c -c mycommunity localhost .1.3.6.1.4.1.2021.50 my output looks like: UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "messages" UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/usr/local/bin/qmailmrtg7 m /var/log/qmail" UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0 UCD-SNMP-MIB::ucdavis.50.103.1 = "" I think the crux of my problem is that for whatever reason, I can't get .1.3.6.1.4.1.2021.50.101.1 and .1.3.6.1.4.1.2021.50.101.2 to return data, even though I believe those elements would have the data that I'm looking for. Any thoughts as to what I may be missing would be greatly appreciated... Thanks, Gary ---------------------------------------------------------------------------- Email in a Flash! http://www.goowy.com ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_idh82&alloc_id148&op=click _______________________________________________ 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
