Monday, February 16, 2015

Install and configure Xymon to monitor Slackware part 1

download rrdtool and fping and xymon package in tar.gz format

tar -zxvf fping ...

cd fping ..



make install

tar -zxvf rrdtool...

cd rrdtool



make install

tar -zxvf xymon-...

cd xymon ..

groupadd xymon

useradd xymon -g xymon


keep saying y to the questions(press enter)

when asked which group does the webserver use

the answer should be apache

the ip address of the machine should not be

it should be

and keep saying yes and you are done


make install




mcedit /etc/sudoers

under the section

Cmnd alias specification

Write Cmnd_Alias and press tab

Cmnd_Alias    XYM = /usr/local/sbin/fping *

then go to user privilege specification

go to under the line as

root    All=(ALL)  All


xymon    All = NOPASSWD: XYM

save and exit

su xymon

and try to run


and I have faced this error

Fping can only be run by root

So I tried

as root

chown root:xymon /usr/local/sbin/fping

chmod 710 /usr/local/sbin/fping

chmod ug+s /usr/local/sbin/fping

and then

become xymon

su xymon

and then


the thing is working now

become root


go to /home/xymon/server/etc

see if hobbitserver.cfg exists

go to /etc/httpd/httpd.conf

Under the line

Include /etc/httpd/mod_php.conf


Include /home/xymon/server/etc/hobbit-apache.conf

save and exit

/etc/rc.d/rc.httpd restart

su xymon

/home/xymon/ start

ps aux | grep hobbit

Now from a client pc

if I type

it shows 404 Not Found URL/xymon was not found on this server

So I went to

cd /home/xymon/server/etc

nano hobbit-apache.conf

find this line

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

and change it to

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

save and exit

/etc/rc.d/rc.httpd restart


open from client pc

it is working now

go to

cd /home/xymon/server/etc

nano bb-hosts

add this line at the last    MyPC             #Win8

save and exit

su xymon

/home/xymon/server/ stop

/home/xymon/server/ start

now you will find 2 host on the main view of xymon



No comments:

Post a Comment