1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Monitorix install on ClearOS 5 and ClearOS 6
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: Monitorix install on ClearOS 5 and ClearOS 6
#51157
Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
I have been having a play today and got it working nicely so I thought I would share it with you. There are some old post on the subject but I found most were out of date.

Info is from the forums here and also www.monitorix.org/doc_redhat.html

ClearOS 6.x

Code:


//Install these 
yum install app-web-server rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI
perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple

//Download and install the monitorix package
rpm -ivh http://pkgs.repoforge.org/monitorix/monitorix-2.5.2-1.el6.rf.noarch.rpm


now you need to edit /etc/monitorix.conf
Add your host name and your eth1,ppp0, adapters
info about whats what is here http://linux.die.net/man/5/monitorix.conf

Then edit /etc/httpd/conf.d/monitorix.conf
At the moment its set to "127.0.0.1"
change that to "all" 

service httpd start
service monitorix start



ClearOS 5.x

Code:

//Add this repo for the RRD and Perl
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

//Install the following
yum install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI
perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple

//Wget this package, for some reason rpm -ivh was failing so meh
wget http://pkgs.repoforge.org/monitorix/monitorix-2.5.2-1.el5.rf.noarch.rpm
rpm -ivh monitorix-2.5.2-1.el5.rf.noarch.rpm

now you need to edit /etc/monitorix.conf
Add your host name and your eth1,ppp0, adapters
info about whats what is here http://linux.die.net/man/5/monitorix.conf

Then edit /etc/httpd/conf.d/monitorix.conf
At the moment its set to "127.0.0.1"
change that to "all" 

service httpd start
service monitorix start



Now if you visit clearos/monitorix it should now work, note you will need to open the firewall incomming 80 to access the page externaly. The page takes a few mins to update so dont worry if you dont see any data for a while or get NANs.

Can some one let me know if setting "127.0.0.1" is a security flaw, and also how to get httpd to start automaticly. I have for now created a file called S25bobstart


Code:

service httpd start
service monitorix start



ln -s /root/S25bobstart /etc/rc4.d/S25bobstart

I am chucking my custom stuff in there at the moment. I know this is probably not right. So any help would be welcome.
Bob Morley
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/03/14 16:55 By BobMorley.
The administrator has disabled public write access.
I work @ AMG-IT Solutions UK
Server engineer Linux, FreeBSD, Windows
Network engineer, wired & wireless
Coding: PHP, HTML, JS, Batch, Shell, VBS
 
#51159
Re: Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
To start something automatically, either use "ntsysv" or "chkconfig httpd on"
Nick Howitt
Platinum Boarder
Posts: 5323
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#51162
Re: Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
Thanks for posting! I use Monitorix here too and it works well

Default access is for localhost only (127.0.0.1) by adding all you are permitting any IP to access...you could restrict to just LAN subnets for example
Tim Burgess
Moderator
Posts: 6362
graph
User Online Now Click here to see the profile of this user
Last Edit: 2013/03/14 17:31 By timb80.
The administrator has disabled public write access.
 
#51170
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
Thanks for the info, chaps

so you would suggest

chkconfig monitorix on
chkconfig httpd on

linuxcommand.org/man_pages/chkconfig8.html
chkconfig --list < shows whats what.

chkconfig --add monitorix didnt throw any errors so its looking good.
Do I need to --add the monitorix first ?

Tim, its rare I find that problem with my ClearOS boxes that you haven't already resolved. Thanks very much for all your help.

chkconfig --list output
Code:



auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
autofs          0:off   1:off   2:off   3:on    4:on    5:on    6:off
avahi-daemon    0:off   1:off   2:off   3:off   4:off   5:off   6:off
blk-availability        0:off   1:on    2:on    3:on    4:on    5:on    6:off
clamd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
clearsyncd      0:off   1:off   2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
dansguardian-av 0:off   1:off   2:on    3:on    4:on    5:on    6:off
dnsmasq         0:off   1:off   2:on    3:on    4:on    5:on    6:off
firewall        0:off   1:off   2:on    3:on    4:on    5:on    6:off
haldaemon       0:off   1:off   2:off   3:on    4:on    5:on    6:off
htcacheclean    0:off   1:off   2:off   3:off   4:off   5:off   6:off
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
l7-filter       0:off   1:off   2:on    3:on    4:on    5:on    6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
mdmonitor       0:off   1:off   2:on    3:on    4:on    5:on    6:off
messagebus      0:off   1:off   2:on    3:on    4:on    5:on    6:off
monitorix       0:off   1:off   2:on    3:on    4:on    5:on    6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
nmb             0:off   1:off   2:on    3:on    4:on    5:on    6:off
nscd            0:off   1:off   2:off   3:on    4:on    5:on    6:off
nslcd           0:off   1:off   2:off   3:on    4:on    5:on    6:off
ntpdate         0:off   1:off   2:off   3:off   4:off   5:off   6:off
openvpn         0:off   1:off   2:off   3:on    4:on    5:on    6:off
portreserve     0:off   1:off   2:on    3:on    4:on    5:on    6:off
postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
pppoe-server    0:off   1:off   2:off   3:off   4:off   5:off   6:off
rdisc           0:off   1:off   2:off   3:off   4:off   5:off   6:off
restorecond     0:off   1:off   2:off   3:off   4:off   5:off   6:off
rsyslog         0:off   1:off   2:on    3:on    4:on    5:on    6:off
saslauthd       0:off   1:off   2:off   3:off   4:off   5:off   6:off
slapd           0:off   1:off   2:off   3:on    4:on    5:on    6:off
smb             0:off   1:off   2:on    3:on    4:on    5:on    6:off
snort           0:off   1:off   2:on    3:off   4:off   5:off   6:off
snortsam        0:off   1:off   2:on    3:off   4:off   5:off   6:off
squid           0:off   1:off   2:on    3:off   4:off   5:off   6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
storage         0:off   1:on    2:on    3:on    4:on    5:on    6:off
system-mysqld   0:off   1:off   2:on    3:on    4:on    5:on    6:off
syswatch        0:off   1:off   2:on    3:on    4:on    5:on    6:off
udev-post       0:off   1:on    2:on    3:on    4:on    5:on    6:off
ventrilo        0:off   1:off   2:off   3:on    4:on    5:on    6:off
webconfig       0:off   1:off   2:on    3:on    4:on    5:on    6:off
winbind         0:off   1:off   2:off   3:on    4:on    5:on    6:off



Just to give people some idea what your looking at. So different run levels have different systems starting up. For example you wouldn't really need smb(windows file sharing) starting on level 1, as you need to start the network which starts level2.
Bob Morley
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/03/14 18:43 By BobMorley.Reason: Did some testing.
The administrator has disabled public write access.
I work @ AMG-IT Solutions UK
Server engineer Linux, FreeBSD, Windows
Network engineer, wired & wireless
Coding: PHP, HTML, JS, Batch, Shell, VBS
 
#51186
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
Bob Morley wrote:


now you need to edit /etc/monitorix.conf
Add your host name and your eth1,ppp0, adapters






Where do I add eth1, ppp0 in the config file? I found the host name entry, but can't find where I put in the eth1 and ppp0
anwoke8204
Expert Boarder
Posts: 137
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#51187
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
Bob Morley wrote:
Thanks for the info, chaps

so you would suggest

chkconfig monitorix on
chkconfig httpd on

linuxcommand.org/man_pages/chkconfig8.html
chkconfig --list < shows whats what.

chkconfig --add monitorix didnt throw any errors so its looking good.
Do I need to --add the monitorix first ?

Hmm, I don't really know the answer - I use ntsysv. I think it relies on the chkconfig parameters being correctly set.
Nick Howitt
Platinum Boarder
Posts: 5323
graphgraph
User Online Now Click here to see the profile of this user
Last Edit: 2013/03/15 08:32 By NickH.
The administrator has disabled public write access.
 
#51188
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
This sounded like fun so I thought I would give it a go unfortunately I fell at the first hurdle.

Code:

yum install perl-HTTP-Server-Simple 
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
Loading mirror speeds from cached hostfile
 * clearos: mirror2-houston.clearsdn.com
 * clearos-addons: mirror2-houston.clearsdn.com
 * clearos-core: mirror2-houston.clearsdn.com
 * clearos-extras: mirror2-houston.clearsdn.com
 * clearos-updates: mirror2-houston.clearsdn.com
 * contribs: download2.clearsdn.com
 * private-clearcenter-backuppc: download2.clearsdn.com:80
 * private-clearcenter-dyndns: download2.clearsdn.com:80
 * private-clearcenter-smart-monitor: download2.clearsdn.com:80
 * private-clearcenter-zarafa-community: download2.clearsdn.com:80
Setting up Install Process
No package perl-HTTP-Server-Simple available.
Error: Nothing to do



So where do I find perl-HTTP-Server-Simple?

Also out of interest will this version work www.monitorix.org/monitorix-3.1.0-1.noarch.rpm or am I better off sticking with 2.5.2
Paul
Expert Boarder
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#51189
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
Ok I solved my perl-HTTP-Server-Simple by doing yum --enablerepo=rpmforge install perl-HTTP-Server-Simple

I then got monitorix installed using monitorix-2.5.2-1.el6.rf.noarch.rpm

So now have it all running and am starting to look at the config file to add my disks etc. Is not graphing "Filesystem usage and I/O activity" so need to investigate that next
Paul
Expert Boarder
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#51190
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
anwoke8204

/etc/monitorix.conf


Code:



# NET graph
# -----------------------------------------------------------------------------
our @NET_LIST = (
        "eth1",
        "ppp0",
);
our @NET_DESC = (
        "FastEthernet LAN",
        "80/20 VDSL",

);
our @NET_RIGID = (
        "0",
        "0",
);
our @NET_LIMIT = (
        "10000000",
        "8388608",

);
our $NET_GATEWAY = "ppp0";

Bob Morley
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
I work @ AMG-IT Solutions UK
Server engineer Linux, FreeBSD, Windows
Network engineer, wired & wireless
Coding: PHP, HTML, JS, Batch, Shell, VBS
 
#51191
Re:Monitorix install on ClearOS 5 and ClearOS 6 1 Year, 1 Month ago  
Are you on ClearOS 5? If so I might have missed the stop on installing the webserver module.
Bob Morley
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
I work @ AMG-IT Solutions UK
Server engineer Linux, FreeBSD, Windows
Network engineer, wired & wireless
Coding: PHP, HTML, JS, Batch, Shell, VBS
 
Go to topPage: 12
  get the latest posts directly to your desktop