[Xymon] Defining CLIENTOS on RPM and Debian distributions

FARRIOR, Andy Andy.Farrior at victoriacollege.edu
Thu Jan 9 22:07:53 CET 2020


Greetings,

I'm looking through the Debian and RPM Xymon-client distributions and I can't seem to find the best place to define CONFIGCLASS to match up with "[class=<expression>]" in client-local.cfg on the Xymon server.    Or is it preferred to define CLASS:Classname in the hosts.cfg file?


Both distributions set:
  CONFIGCLASS="$SERVEROSTYPE"     # Default configuration class for logfiles

However with both distributions, clients show up as "fubar.linux linux" in clientlog on Xymon.


I'm trying to figure out the best way to manage the client-local.cfg file for those distributions since the default log files are different:

Debian/Ubuntu:
$ egrep -v "^#|^$" /etc/rsyslog.d/50-default.conf
auth,authpriv.*                 /var/log/auth.log
*.*;auth,authpriv.none          -/var/log/syslog
kern.*                          -/var/log/kern.log
mail.*                          -/var/log/mail.log
mail.err                        /var/log/mail.err
*.emerg                         :omusrmsg:*


RPM/RedHat:
$ egrep -v "^#|^$" /etc/rsyslog.conf
*.info;mail.none;authpriv.none;cron.none                /var/log/messages
authpriv.*                                              /var/log/secure
mail.*                                                  -/var/log/maillog
cron.*                                                  /var/log/cron
*.emerg                                                 :omusrmsg:*
uucp,news.crit                                          /var/log/spooler
local7.*                                                /var/log/boot.log
local0,local1.*                         /var/log/localmessages
local2,local3.*                         /var/log/localmessages
local4,local5.*                         /var/log/localmessages
local6,local7.*                         /var/log/localmessages


I'm guessing it should go in:
Debian: /etc/sysconfig/xymon-client
RPM:/etc/sysconfig/xymon-client




Here's where I've looked:

Debian/Ubuntu:
/etc/init.d/xymon-client:# Include xymon-client defaults if available
/etc/init.d/xymon-client:if [ -f /etc/default/xymon-client ] ; then
/etc/init.d/xymon-client:        . /etc/default/xymon-client
/etc/init.d/xymon-client:export XYMONSERVERS XYMONCLIENTHOME CLIENTHOSTNAME MACHINE MACHINEDOTS CLIENTOS

#####  /etc/sysconfig/xymon-client does not have a reference to $SERVEROSTYPE. Only XYMONSERVERS,CLIENTHOSTNAME,CLIENTOS  #####

/etc/xymon/xymonclient.cfg:include /etc/default/xymon-client
/etc/xymon/xymonclient.cfg:include /var/run/xymon/bbdisp-runtime.cfg
/etc/xymon/xymonclient.cfg:CONFIGCLASS="$SERVEROSTYPE"     # Default configuration class for logfiles

/usr/lib/xymon/client/bin/xymonclient.sh:echo "client $MACHINE.$SERVEROSTYPE $CONFIGCLASS"  >>  $MSGTMPFILE



RPM/RedHat:
/usr/lib/systemd/system/xymonlaunch.service:EnvironmentFile=-/etc/default/xymonlaunch
/usr/lib/systemd/system/xymonlaunch.service:EnvironmentFile=-/etc/sysconfig/xymonlaunch
/usr/lib/systemd/system/xymonlaunch.service:ExecStart=/usr/bin/xymoncmd /usr/sbin/xymonlaunch --no-daemon $XYMONLAUNCHOPTS

#####  /etc/sysconfig/xymon-client does not have a reference to $SERVEROSTYPE. Only XYMONSERVERS,CLIENTHOSTNAME,CLIENTOS  #####

/etc/xymon-client/xymonclient.cfg:include /etc/sysconfig/xymon-client
/etc/xymon-client/xymonclient.cfg:CONFIGCLASS="$SERVEROSTYPE"     # Default configuration class for logfiles


Thx,
Andy


Andy Farrior
Director of Technology Services
Victoria College
2200 E Red River St
Victoria, TX 77901-4494
e-mail: andy.farrior at victoriacollege.edu
o) 361-582-2547

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200109/fe382552/attachment.htm>


More information about the Xymon mailing list