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; In my sub-agent program, I have snmp_enable_calllog() and several snmp_log()calls but nothing is being logged in /var/log/...


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
Steve S. Law
 
Posts: n/a
Default Re: question on AgentX sub-agent logging

In my sub-agent program, I have snmp_enable_calllog()
and
several snmp_log()calls but nothing is being logged in
/var/log/snmpd.log file (default?). I thought
snmpd.log is only for AgentX master agent and not for
sub-agent? Or even sub-agent will be logged to the
same file also? Clearly, I don't want my sub-agent and
master agent logging to the same file. I want to have
a log file for sub-agent separately. How do I do it?

I still have no luck in logging.

Please help.

Steve


--- Robert Story <rstory@freesnmp.com> wrote:

> 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
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 01:09 PM.


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