download rrdtool and fping and xymon package in tar.gz format
tar -zxvf fping ...
cd fping ..
./configure
make
make install
tar -zxvf rrdtool...
cd rrdtool
./configure
make
make install
tar -zxvf xymon-...
cd xymon ..
groupadd xymon
useradd xymon -g xymon
./configure.server
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 127.0.0.1
it should be
192.168.28.51
and keep saying yes and you are done
make
make install
type
visudo
or
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
type
xymon All = NOPASSWD: XYM
save and exit
su xymon
and try to run
/usr/local/sbin/fping google.com
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
/usr/local/sbin/fping google.com
the thing is working now
become root
mc
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
Write
Include /home/xymon/server/etc/hobbit-apache.conf
save and exit
/etc/rc.d/rc.httpd restart
su xymon
/home/xymon/server.hobbit.sh start
ps aux | grep hobbit
Now from a client pc
if I type
http://192.168.28.51/xymon
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
and
open from client pc
192.168.28.51/xymon
it is working now
go to
cd /home/xymon/server/etc
nano bb-hosts
add this line at the last
10.10.29.141 MyPC #Win8
save and exit
su xymon
/home/xymon/server/hobbit.sh stop
/home/xymon/server/hobbit.sh start
now you will find 2 host on the main view of xymon
at 192.168.28.51/xymon
tar -zxvf fping ...
cd fping ..
./configure
make
make install
tar -zxvf rrdtool...
cd rrdtool
./configure
make
make install
tar -zxvf xymon-...
cd xymon ..
groupadd xymon
useradd xymon -g xymon
./configure.server
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 127.0.0.1
it should be
192.168.28.51
and keep saying yes and you are done
make
make install
type
visudo
or
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
type
xymon All = NOPASSWD: XYM
save and exit
su xymon
and try to run
/usr/local/sbin/fping google.com
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
/usr/local/sbin/fping google.com
the thing is working now
become root
mc
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
Write
Include /home/xymon/server/etc/hobbit-apache.conf
save and exit
/etc/rc.d/rc.httpd restart
su xymon
/home/xymon/server.hobbit.sh start
ps aux | grep hobbit
Now from a client pc
if I type
http://192.168.28.51/xymon
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
and
open from client pc
192.168.28.51/xymon
it is working now
go to
cd /home/xymon/server/etc
nano bb-hosts
add this line at the last
10.10.29.141 MyPC #Win8
save and exit
su xymon
/home/xymon/server/hobbit.sh stop
/home/xymon/server/hobbit.sh start
now you will find 2 host on the main view of xymon
at 192.168.28.51/xymon
No comments:
Post a Comment