ing of subagent to different file
2008/6/14 <[EMAIL PROTECTED]>:
> The problem is that if i don't add following lines in code the logs for
> DEBUGMSG("Started")
> and DEBUGMSGTL("snmpV3Agent","Started") do not come but my logfile is created
>
2008/6/14 <[EMAIL PROTECTED]>:
> The problem is that if i don't add following lines in code the logs for
> DEBUGMSG("Started")
> and DEBUGMSGTL("snmpV3Agent","Started") do not come but my logfile is created
>
>debug_register_tokens("snmpV3Agent,currentAlarmTable");
>snmp_set_do_debugging(
m: Dave Shield <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [email protected]
Sent: Fri, 13 Jun 2008 18:46:56 +0530 (IST)
Subject: Re: Logging of subagent to different file
2008/6/13 <[EMAIL PROTECTED]>:
> i tried using this as
>
> netsnmp_log_handler *logh;
2008/6/13 <[EMAIL PROTECTED]>:
> i tried using this as
>
> netsnmp_log_handler *logh;
> logh = netsnmp_register_loghandler(NETSNMP_LOGHANDLER_FILE, priority);
"priority" ?
What value does this have?
> but when i used API log file was created but logs for DEBUGMSG("Started")
> were found in the
: [email protected], [EMAIL PROTECTED]
Sent: Wed, 11 Jun 2008 14:15:34 +0530 (IST)
Subject: Re: Logging of subagent to different file
2008/6/10 <[EMAIL PROTECTED]>:
> Could it be possible for creating a different log file for subagent
> and manage the log level and type
rge.net
Sent: Fri, 13 Jun 2008 11:44:56 +0530 (IST)
Subject: Re: Logging of subagent to different file
On Tue, 2008-06-10 at 23:28 +0530, [EMAIL PROTECTED] wrote:
> Hello,
>
> Could it be possible for creating a different log file for subagent
> and manage the log level and type of log m
On Tue, 2008-06-10 at 23:28 +0530, [EMAIL PROTECTED] wrote:
> Hello,
>
> Could it be possible for creating a different log file for subagent
> and manage the log level and type of log messages to be logged.
Eh, it already is?
> What i understood was that all the logs are written
> to /var/log/sn
2008/6/10 <[EMAIL PROTECTED]>:
> Could it be possible for creating a different log file for subagent
> and manage the log level and type of log messages to be logged.
If your subagent understands the standard command-line arguments,
then you can use the -Lf option to specify the appropriate log f