Re: problem with exec returning all data

This is a discussion on Re: problem with exec returning all data within the SNMP Users forums, part of the Networking and Network Related category; On Wed, 23 Mar 2005 08:12:17 GMT GDB wrote: G> I've run into what appears to ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-02-2005
Robert Story
 
Posts: n/a
Default Re: problem with exec returning all data

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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0