Re: question on AgentX sub-agent logging

Robert Story <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Net-SNMP
Message-ID <20050804063139.1b14bebc@aud>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.