Installing Istat for centos5
mkdir istat
cd istat
wget http://snsserver.com.au/istatd-0.5.7.tar.gz
tar -zxvf istatd-0.5.7.tar.gz
cd istatd-0.5.7
./configure
make
make install
useradd istat
mkdir /var/run/istat
chown istat.istat /var/run/istat
vi /usr/local/etc/istat.conf
server_code 07689
monitor_net ( venet0 )
monitor_disk ( /dev/vzfs )
I use CSF so i have to add the following
vi /etc/csf/csf.conf
tcp in 5109
Also if you have IP tables you may want to add
iptables -I INPUT 1 -p tcp --dport 5109 -j ACCEPT
service iptables save
vi /etc/rc.d/rc.local
/usr/local/bin/istatd -d
You may need to check with your hosting provider for any managed firewall they may have.
To test just telnet to your server(telnet localhost 5109) to make sure its running, then try from an external device
If you get any errors above
yum install gcc-c++
yum install libxml2-devel
If you have any issues with LFD
vi /etc/csf/csf.pignore
user:istat
exe:/usr/local/bin/istatd
cmd:/usr/local/bin/istatd -d
No comments:
Post a Comment