RHEL5 and xymon client monitoring log files
Tim McCloskey
tm at freedom.com
Tue Jul 27 18:19:52 CEST 2010
Cathy,
Looks like you are running in client local mode. See the difference in the etc/clientlaunch.cfg: CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local
Try adding a $HOBBITCLIENTHOME/tmp/logfetch.`hostname`.cfg file, chown to the hobbit user and restart the client. Also, what does the server client-local.cfg look like for this host/OS/class?
(eg. [redhat]
log:/var/log/messages:10240
log:/var/log/kern:10240
ignore MARK
file:/bin/su:md5)
-----
Server Mode.
# The main client task
[client]
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh
LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log
INTERVAL 5m
Client mode
# The main client task
[client]
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local
LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log
INTERVAL 5m
-------
#LOG %/var/log/(kern|messages) "%(ext3_journal_start_sb|Detected aborted journal)" COLOR=yellow
Regards,
Tim
________________________________________
From: Smith, Cathy [cathy.smith at pnl.gov]
Sent: Tuesday, July 27, 2010 7:45 AM
To: xymon at xymon.com
Subject: [xymon] RHEL5 and xymon client monitoring log files
Folks
With your help, the RHEL5 server is now showing up in the hobbit display correctly. This is the xymon client reporting to a hobbit server. Now I have a question about monitoring log files. I have included below, my localclient.cfg file. I want to check /var/log/messages for anything with the word ERROR. Hobbit displays a white smiley face in the msgs column with the message:
The client did not report any logfile data
I'm running all processes as root, so there shouldn't be any permissions issues.
Can you tell me what I've done wrong in the config file?
Thanks.
Cathy
---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
Phone: 509.375.2687
Fax: 509.375.2330
Email: cathy.smith at pnl.gov
-----Original Message-----
From: root [mailto:root at pnlelm1.pnl.gov]
Sent: Tuesday, July 27, 2010 7:35 AM
To: Smith, Cathy
Subject: localclient.cfg
# localclient.cfg - configuration file for a LOCAL Hobbit client.
#
# By default, Hobbit clients send raw data to the Hobbit server,
# which in turn converts the data into status messages.
# In that case, THIS FILE IS NOT USED and you should IGNORE it.
#
# The special DEFAULT section can modify the built-in defaults - this must
# be placed at the end of the file.
HOST=foo.pnl.gov
MEMSWAP 70 90
PROC crond
PROC http
PROC sendmail
PROC sshd
PROC syslogd
LOG /var/log/messages ERROR COLOR=red
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 16.0 30.0
DISK * 95 99
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
To unsubscribe from the xymon list, send an e-mail to
xymon-unsubscribe at xymon.com
More information about the Xymon
mailing list