Menu

#2 LOGS Module Not Using My Offset File

open
nobody
5
2013-02-17
2012-11-14
Toddcobbmd
No

I'm configuring OpenSMART agent on my Solaris server running Solaris 10, with perl 5.14.2.

My $HOME/etc/osagent.conf.xml file has:

<LOGS>
<LOGFILE>
<LOGFILENAME>/var/adm/messages</LOGFILENAME>
<AGE>
<MAXAGE>86400</MAXAGE>
<ERRORLEVEL>ERROR</ERRORLEVEL>
</AGE>
<LOGFILTER><REGEX>syslogd.*restart</REGEX><ERRORLEVEL>NORMAL</ERRORLEVEL
></LOGFILTER>
<OFFSETFILE>/app/OpenSMART/var/messages.offset</OFFSETFILE>
<!-- If you don't define ERRORLEVEL: Default is NORMAL -->
<!-- If you don't define PRIORITY: Default is 100 -->
<LOGFILTER><REGEX>-- MARK --</REGEX></LOGFILTER>
<LOGFILTER>
<REGEX>.*</REGEX>
<!-- That is AFTER all default priorities! -->
<PRIORITY>1000</PRIORITY>
<ERRORLEVEL>ERROR</ERRORLEVEL>
</LOGFILTER>

...
...

But each time I manually execute bin/osagent, osagent reports the same errors at the top of the /var/adm/messages file.
My related var files are:

avbosmart@MARS $ ll var/mess*
-rw-r--r-- 1 avbosmart sysadmin 56930 Nov 14 13:38 var/messages.error
-rw-r--r-- 1 avbosmart sysadmin 5 Nov 14 13:38 var/messages.offset

My messages.offset seems to be correct:
avbosmart@MARS $ od -c var/messages.offset
0000000 5 6 9 3 0
0000005
avbosmart@MARS $ wc -c /var/adm/messages
56930 /var/adm/messages

I tried to configure Log4Perl for additional info, but I couldn't get it to give any detail about the LOGS module.

I'd appreciate your help.
Thanks!

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.