You are not logged in.

#1 2010-01-24 11:02:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

request for monitorix

Anyone interesting in building a PKGBUILD for monitorix?  Looks like a pretty killer system monitor w/ web interface.  See the project page for additional screenshots.

cpu.png
hptemp.png

Last edited by graysky (2010-01-24 11:04:55)

Offline

#2 2010-01-24 11:34:35

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,006
Website

Re: request for monitorix

looks like cacti


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#3 2010-01-24 13:53:50

res
Member
Registered: 2010-01-14
Posts: 55

Offline

#4 2010-01-24 15:16:20

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: request for monitorix

@res - thanks.  I installed your PKGBUILD running w/ lighttpd + fcgi + php-cgi on my system.  I pointed my lighttpd to /var/www/htdocs as the server.document-root and I get the monitorix greetings screen, but I get a "404 - Not Found" when I try to view it.

Last edited by graysky (2010-01-24 16:04:38)

Offline

#5 2010-01-24 15:32:21

res
Member
Registered: 2010-01-14
Posts: 55

Re: request for monitorix

Hey,

The installation procedure was copied verbatim from install.sh, the original installation script. Slackware options were chosen because they happen to work nicely with Arch's setup.

I don't have any problems here for getting it to work, but if you find a workaround for your issues, let me know. It sounds like you might be having permission issues.

Offline

#6 2010-01-24 15:37:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: request for monitorix

@res - are you using lighttpd or apache?  Can you post your lighttpd.conf if that's your daemon?  I can't even verify that the perl script for monitorix is running.  Happy to hear your suggestions for troubleshooting.  Which dirs should I check the permissions?

# ls -l /var/www/htdocs/monitorix
total 24
drwxrwxrwx 2 root root 4096 Jan 24 10:00 imgs
-rw-r--r-- 1 root root 5150 Jan 24 10:32 index.html
-rw-r--r-- 1 root root 1870 Jan 24 10:00 logo_bot.png
-rw-r--r-- 1 root root 4021 Jan 24 10:00 logo_top.png
-rw-r--r-- 1 root root 2251 Jan 24 10:00 monitorixico.png

Offline

#7 2010-01-24 16:09:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: request for monitorix

UPDATE: I switched over to apache and setup the server according to the apache wiki article.  My test php script runs just fine.

 <?php
   phpinfo();
 ?>

When I browse to http://ip/monitorix I get the Monitorix selection screen, but again, when I hit the 'ok' button, apache gives:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
192.168.1.111
Sun Jan 24 11:06:29 2010
Apache/2.2.14 (Unix) PHP/5.3.1 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2

Last edited by graysky (2010-01-24 16:10:56)

Offline

#8 2010-01-24 16:16:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: request for monitorix

FINALLY: problem was with my configuration.  Also had to change /etc/httpd/conf/httpd.conf

ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

...now to get this working with lighttpd.... Thanks again for making the PKGBUILD.

Offline

#9 2010-01-25 01:50:54

res
Member
Registered: 2010-01-14
Posts: 55

Re: request for monitorix

Nice. Also, I could change cgi-bin path or any other file if someone confirms it's non-standard.

Offline

#10 2010-01-25 20:24:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: request for monitorix

/var/www/htdocs works once you change your configuration.  No biggie.  I'd really like to get this to work under lighttpd though.

Offline

#11 2010-01-26 00:51:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: request for monitorix

Actually, I just installed this on another machine and can't get the data to display in any graph, although they are generated, the data for everything reads, "-nan" for all.  I don't think cron is running it.  Can you post your /etc/cron.d/monitorix for me?

# @(#) Fibranet NSP, SL
# Copyright (C) 2005-2010 by Jordi Sanfeliu <jordi@fibranet.cat>
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin


* * * * * root /usr/sbin/monitorix.pl update
00 00 * * * root /usr/sbin/monitorix.pl collect
01 00 1 * * root /usr/sbin/monitorix.pl report

Last edited by graysky (2010-01-26 20:47:56)

Offline

Board footer

Powered by FluxBB