[Xymon] help/suggestion required since upgrade to 4.3.30

Dave Who fairwayshateme at gmail.com
Tue Sep 21 17:40:36 CEST 2021


Hi Rajesh,

Here are my notes on my install.  I continued without using HTTPS. Good
luck!


XYMON Server Install:


It is strongly encouraged that the server be installed only on one or two
machines. The client data will reside on these machines. This method will
prevent the wasting of disk space.



1.       Create the xymon userid



groupadd xymon

useradd –g xymon –m xymon



2.       Yum updates needed



yum install gcc make

yum install pcre-devel openssl-devel openldap-devel rrdtool-devel rrdtool

yum install yum install libtirpc-devel libtirpc



*Note:  RRDTOOL-DEVEL is only available in the RHEL Server Optional (v. 6
IBM System z) channel*



*RHEL7 - subscription-manager repos
--enable=rhel-7-for-system-z-optional-rpms*

*RHEL8 -  subscription-manager repos --enable
codeready-builder-for-rhel-8-s390x-rpms or  downloadable from Redhat:*

https://access.redhat.com/downloads/content/rrdtool/1.7.0-16.el8/s390x/fd431d51/package



https://access.redhat.com/downloads/content/rrdtool-devel/1.7.0-16.el8/s390x/fd431d51/package





*        Note: Error: /usr/bin/ld: cannot find -ltirpc,  collect2: error:
ld returned 1 exit status*



        [root at web02 tmp]#  wget
https://downloads.sourceforge.net/libtirpc/libtirpc-1.2.5.tar.bz2

[root at web02 tmp]#  yum install bzip2

[root at web02 tmp]#  bzip2 -kd libtirpc-1.2.5.tar.bz2

[root at web02 tmp]#  tar xf libtirpc-1.2.5.tar

[root at web02 libtirpc-1.2.5]#  ./configure --prefix=/usr \

--sysconfdir=/etc \

--disable-static \

--disable-gssapi && make

[root at web02 libtirpc-1.2.5]# make install

[root at web02 libtirpc-1.2.5]# mv -v /usr/lib/libtirpc.so.* /lib

[root at web02 libtirpc-1.2.5]# ln -sfv ../../lib/libtirpc.so.3.0.0
/usr/lib/libtirpc.so



        Or remove it from the Makefile, Another option is to remove
"-ltirpc" from the Makefile that has been generated after ./configure is
run.



        Install all dependencies. This is stored in the M drive under the
XYMON software folder:



rpm -i dejavu-fonts-common-2.35-6.el8.noarch.rpm

rpm -i dejavu-sans-mono-fonts-2.35-6.el8.noarch.rpm

rpm -i rrdtool-1.7.0-16.el8.s390x.rpm

rpm -i rrdtool-devel-1.7.0-16.el8.s390x.rpm



3.       Install fping at the root home directory

·         wget http://fping.org/dist/fping-3.2.tar.gz

·         tar zxf fping-3.2.tar.gz

·         cd fping-3.2

·         ./configure

·         make && make install

·         cd ..

·         rm –rf fping-3.2.tar.gz



4.       install xymon software

·         wget ftp://odcdocs.in.dc.gov/archive/Utilities/xymon-4.3.28.tar.gz

·         tar zxf xymon-4.3.28.tar.gz

·         cd xymon-4.3.28.tar.gz

·         ./configure.server

        Answer yes to fping

        yes to SSL

        yes to LDAP

        Choose the default for the rest of the options and specify the IP
address of the server

·         make && make install

·         Configure Apache with the Xymon definitions:

ln -s /home/xymon/server/etc/xymon-apache.conf /etc/httpd/conf.d/



o   Required Modififications:

Modify xymon-apache.conf to be only /xymon and not /xymon/



o   Update xymon-apache.conf with the following:

Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Order allow,deny

    Allow from all

</Directory>



ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI FollowSymLinks Includes

    Order allow,deny

    Allow from all

</Directory>



ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI FollowSymLinks Includes

    Order allow,deny

    Allow from all



o   If there are errors like this in start up:

Directory index forbidden by Options directive: /var/www/html/



Search for :

grep -iR 'Indexes' /etc/httpd/*



If you use + for one option, you have to use + or - also for the others.
Remove all + or – as needed. See the following article for an example:
http://www.linuxquestions.org/questions/linux-newbie-8/apache-directory-index-forbidden-4175492597/







5.       Automatic start of xymon server

·         Copy rpm/xymon-init.d to /etc/init.d/xymon

·         Edit /etc/init.d/xymon and change "/usr/lib/xymon" in the DAEMON
line to the directory where you installed Xymon - e.g.
"/home/xymon/server/bin/xymon.sh".

·         chkconfig --add xymon

·         chkconfig xymon on



6.       Give permissions

chmod a+x /etc/init.d/xymon

chmod +x –R /home/xymon

chmod 755 /var/log/messages

chmod -R 0775 /home/xymon/server/www/rep

chmod -R 0775 /home/xymon/server/www/snap

chown apache:apache /home/xymon/server/www/snap

chown apache:apache /home/xymon/server/www/rep



7.       Add the following to /home/xymon/server/etc/client-local.cfg to
monitor filenames



[Linux]

log:/var/log/messages:10240

ignore MARK

file:/etc/zipl.conf

file:/etc/yum.conf

file:/etc/sysctl.conf

file:/etc/services

file:/etc/sudoers

file:/etc/sudo.conf

file:/etc/passwd

file:/etc/profile

file:/etc/mtab

file:/etc/issue

file:/etc/inittab

file:/etc/hosts

file:/etc/filesystems

file:/etc/fstab

file:/etc/crontab

file:/etc/bashrc

file:/etc/auto.nfs

file:/etc/rc.d/rc.local

file:/etc/default/useradd










XYMON Client install:



Client machines are separate from the server machine. The server machine
will not require an installation of the client software.



1.       Create xymon userid



groupadd xymon

useradd -g xymon -m xymon



2.       Yum updates needed



yum install -y gcc make

yum install -y pcre-devel openssl-devel openldap-devel rrdtool-devel rrdtool



*Note:  RRDTOOL-DEVEL is only available in the RHEL Server Optional (v. 6
IBM System z) channel*



*RHEL7 - subscription-manager repos
--enable=rhel-7-for-system-z-optional-rpms*

*RHEL8 -  subscription-manager repos --enable
codeready-builder-for-rhel-8-s390x-rpms or  downloadable from Redhat:*

https://access.redhat.com/downloads/content/rrdtool/1.7.0-16.el8/s390x/fd431d51/package



https://access.redhat.com/downloads/content/rrdtool-devel/1.7.0-16.el8/s390x/fd431d51/package



        Install all dependencies. This is stored in the M drive under the
XYMON software folder:



rpm -i dejavu-fonts-common-2.35-6.el8.noarch.rpm

rpm -i dejavu-sans-mono-fonts-2.35-6.el8.noarch.rpm

rpm -i rrdtool-1.7.0-16.el8.s390x.rpm

rpm -i rrdtool-devel-1.7.0-16.el8.s390x.rpm



3.       Install fping at the root home directory

·         wget http://fping.org/dist/fping-3.2.tar.gz

·         tar zxf fping-3.2.tar.gz

·         cd fping-3.2

·         ./configure

·         make && make install

·         cd ..

·         rm –rf fping-3.2.tar.gz



4.       install xymon software

·         wget ftp://
odcdocs.in.dc.gov/OCTO%20User%20Guides/xymon-4.3.18.tar.gz

·         tar zxf xymon-4.3.18.tar.gz

·         cd xymon-4.3.18

·         ./configure.client

Server will house client information

        Provide IP address of the server

·         make && make install



5.       Modify the client settings

·         cp rpm/xymon-client.default /etc/default/xymon-client

·         Edit /etc/default/xymon-client and provide the right IP address
of the server



6.       Automatic start of xymon client

·         cp rpm/xymon-client.init /etc/init.d/xymonc

·         Edit /etc/init.d/xymonc and change "/usr/lib/xymon" in the DAEMON
line to the directory where you installed Xymon - e.g. "/home/xymon":



PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

DAEMON=/home/xymon/runclient.sh

NAME=xymon-client

DESC=xymon-client



·         chkconfig --add xymonc

·         chkconfig xymonc on



7.       Give permissions

chmod a+x /home/xymon/runclient.sh

chmod a+x /etc/init.d/xymonc

chmod 777 -R /home/xymon

chmod 755 /var/log/messages



8.       Add new client to the server’s host listing

·         Edit /home/xymon/server/etc/hosts.cfg on the xymon server machine

·         Reload the xymon server

service xymon reload

















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


More information about the Xymon mailing list