|
From: Didier C. <did...@fe...> - 2001-03-01 11:34:06
|
Dave Shield a écrit : > > Is the file snmpd.log is cyclic or does it grow all the time ? > > It's a simple append log, I think. > It's left to the system administrator to rotate it as appropriate. I think that I will use the crone script send by Gavin. On Sun syslog don't seem to propose any configuration on log file size ! > > > Why don't you write the date of the log when a programm call snmp_log function > > ? > > We do - there's an snmp.conf directive 'logTimestamp' to turn this on and off. I've activate logTimestamp in snmp.conf but the date is only added for function snmp_log call in the agent core. When I call snmp_log in my mib.c the date is not added !! Have you got any idea ? .e.g in mib.c : snmp_log(LOG_INFO, "Unable to attach to ESR PCI library \n"); display : Unable to attach to ESR PCI library while in snmpd.c function snmp_log(LOG_INFO, "UCD-SNMP version %s\n", VersionInfo); display : 2001-03-01 12:25:25 UCD-SNMP version 4.2 > > It's only applied to file or stderr logging, though - syslog handles this > itself, and it's not really applicable to callback 'logging' > > Dave > > _______________________________________________ > Net-snmp-users mailing list > Net...@li... > http://lists.sourceforge.net/lists/listinfo/net-snmp-users |