On Wed, 23 Mar 2005 08:12:17 GMT GDB wrote:
G> I've run into what appears to be a basic problem, and yet I can't seem to
G> find any information on it.  Essentially, I'm trying to call the exec
G> directive from my snmpd.conf as such:
G> 
G> exec .1.3.6.1.4.1.2021.50 message /usr/local/bin/qmailmrtg7 m /var/log/qmail
G> 
G> If I call /usr/local/bin/qmailmrtg7 m /var/log/qmail from the command line,
G> the output at this particular time is:
G> 
G> 36
G> 36
G> 

Is that 2, 3 or 4 lines?

G> If I do an snmpwalk like this:
G> 
G> snmpwalk -v 2c -c mycommunity localhost .1.3.6.1.4.1.2021.50
G> 
G> my output looks like:
G> 
G> UCD-SNMP-MIB::ucdavis.50.103.1 = ""

I believe that exec will only return the first line. If that line is blank, it
would explain your results.

Try the new 'extend' token if you need multiple lines.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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

Reply via email to