Re: question on AgentX sub-agent logging

This is a discussion on Re: question on AgentX sub-agent logging within the SNMP Users forums, part of the Networking and Network Related category; On Fri, 29 Jul 2005 15:07:11 -0700 (PDT) Steve wrote: SSL> So far I have been using ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-04-2005
Robert Story
 
Posts: n/a
Default Re: question on AgentX sub-agent logging

On Fri, 29 Jul 2005 15:07:11 -0700 (PDT) Steve wrote:
SSL> So far I have been using printf statements in my
SSL> sub-agent. I want to log them into a file instead, so
SSL> in the sub-agent main program, I set 'syslog' to 1
SSL> which invokes snmp_enable_callog(). However, when I
SSL> run it, I don't see any thing on the screean but I
SSL> don't know where and if anything is being logged at
SSL> all in any file.

The default log file is /var/log/snmpd.log.

SSL> Can you tell me what I should do? Do I need to write
SSL> more code? what is DEBUGMSG for? I should use DEBUGMSG
SSL> instead of printf in my code?

If you always want to log, then snmp_log() is probably what you want. If it is
really debug, and you only want to see it when the right debug flag is
enabled, then use the DEBUG* macros.

--
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.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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 Search this Thread
Search this Thread:

Advanced Search
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

BB 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:44 AM.


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