[Xymon] Xymon client configuration for Ubuntu

FARRIOR, Andy Andy.Farrior at victoriacollege.edu
Wed Oct 31 15:16:00 CET 2018


How are Ubuntu users configuring Xymon to monitor any log files?  I just installed 18.04.1 LTS.

Are you modifying Xymon's client-local.cfg file to match whatever OS Ubuntu is sending to Xymon or are you modifying the rsyslog config files to generate a /var/log/messages file?

Aside - Wish this was configured ahead of time as a part of the Ubuntu Xymon packages.




After installing the Ubuntu Xymon packages, Xymon is matching an OS configured to monitor /var/log/messages in the client-local.cfg file.

However, the stock Ubuntu distribution does not generate a /var/log/messages file.


According to the /etc/rsyslog.d/50-default.conf file, Ubuntu by default generates these log files:

#  Default rules for rsyslog.
#
#                       For more information see rsyslog.conf(5) and /etc/rsyslog.conf

#
# First some standard log files.  Log by facility.
#
auth,authpriv.*                 /var/log/auth.log
*.*;auth,authpriv.none          -/var/log/syslog
#cron.*                         /var/log/cron.log
#daemon.*                       -/var/log/daemon.log
kern.*                          -/var/log/kern.log
#lpr.*                          -/var/log/lpr.log
mail.*                          -/var/log/mail.log
#user.*                         -/var/log/user.log

#
# Logging for the mail system.  Split it up so that
# it is easy to write scripts to parse these files.
#
#mail.info                      -/var/log/mail.info
#mail.warn                      -/var/log/mail.warn
mail.err                        /var/log/mail.err

#
# Some "catch-all" log files.
#
#*.=debug;\
#       auth,authpriv.none;\
#       news.none;mail.none     -/var/log/debug
#*.=info;*.=notice;*.=warn;\
#       auth,authpriv.none;\
#       cron,daemon.none;\
#       mail,news.none          -/var/log/messages

#
# Emergencies are sent to everybody logged in.
#
*.emerg                         :omusrmsg:*

#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
#       news.=crit;news.=err;news.=notice;\
#       *.=debug;*.=info;\
#       *.=notice;*.=warn       /dev/tty8



Another option would be to create a file like /etc/rsyslog.d/xymon.conf
#
# consolidate logs into single file for Xymon to monitor

*.=info;*.=notice;*.=warn;\
       auth,authpriv.none;\
       cron,daemon.none;\
       mail,news.none          -/var/log/messages

If that would be agreeable, it could conceivably be included in the Ubuntu Xymon packages.

Thx,
Andy


Andy Farrior
Director of Technology Services
Victoria College
2200 E Red River
Victoria, TX 77901
Andy.Farrior at VictoriaCollege.edu
Office: 361.582.2547
Fax: 361.572.6492

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181031/ca033fb3/attachment.html>


More information about the Xymon mailing list