mikaku / Monitorix

Monitorix is a free, open source, lightweight system monitoring tool.
https://www.monitorix.org
GNU General Public License v2.0
1.12k stars 167 forks source link

No graphs for processes and apache #92

Closed frollic closed 9 years ago

frollic commented 9 years ago

Hi,

I'm running Monitorix 3.7.0 from Fedora repository. Unfortunately there are issues with generating the graphs for processes and apache.

I can see monitorix collecting data in the log -

Mon May 18 09:48:00 2015 - process::process_update: N:0.0588928150765607:121016320:31744:44724.05:140:8:0:3.38333333333333:1.25:0:0:0.0294476462917:23433216:0:21407.8:36:3:0:3.23333333333333:0.166666666666667:0:0:0:4923392:0:4.5:15:1:0:0.0333333333333333:0:0:0:0.0294464075382803:108990464:0:0:39:1:22:0.0166666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0.0420662964832576:39088128:68.2666666666667:-19.7166666666667:18:1:6:0:0:0:0:0.00420662964832576:21737472:0:0.166666666666667:65:2:0:0.0666666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0

Mon May 18 09:48:01 2015 - Calling apache_update() Mon May 18 09:48:01 2015 - apache::apache_update: N:1.31666666666667:613:0.0308736:1:5

But no graphs are generated.

Is there a way of debugging this, i've already added the -d all param, but I can't see any error messages :(

mikaku commented 9 years ago

Hi frollic,

Can you, please, say which version of RRDtool are you using there? Also, can you check in the Monitorix log file to see if the are some error messages?

Thanks.

frollic commented 9 years ago

rrdtool-1.4.9-1.fc21.x86_64

No errors at all, what I can see:

Mon May 18 09:31:02 2015 - Starting Monitorix version 3.7.0 (pid 13938). Mon May 18 09:31:02 2015 - Loaded main configuration file '/etc/monitorix/monitorix.conf'. Mon May 18 09:31:02 2015 - Entering in debug mode. Mon May 18 09:31:02 2015 - Changed process name to '/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -d all'. Mon May 18 09:31:02 2015 - Flushing out iptables rules. Mon May 18 09:31:02 2015 - 0 iptables rules have been flushed. Mon May 18 09:31:02 2015 - 0 ip6tables rules have been flushed. Mon May 18 09:31:02 2015 - Initializing graphs. Mon May 18 09:31:02 2015 - system::system_init: Ok Mon May 18 09:31:02 2015 - kern::kern_init: Ok Mon May 18 09:31:02 2015 - proc::proc_init: Ok Mon May 18 09:31:02 2015 - lmsens::lmsens_init: Ok Mon May 18 09:31:02 2015 - fs::fs_init: Detected physical device name for / in 'md1'. Mon May 18 09:31:02 2015 - fs::fs_init: Detected physical device name for /boot in 'md0'. Mon May 18 09:31:02 2015 - fs::fs_init: Detected physical device name for /hdc in 'md126'. Mon May 18 09:31:02 2015 - fs::fs_init: Ok Mon May 18 09:31:02 2015 - net::net_init: Ok Mon May 18 09:31:03 2015 - process::process_init: Ok Mon May 18 09:31:03 2015 - serv::serv_init: Ok Mon May 18 09:31:03 2015 - port::port_init: Ok Mon May 18 09:31:03 2015 - user::user_init: Ok Mon May 18 09:31:03 2015 - apache::apache_init: Ok Mon May 18 09:31:03 2015 - mysql::mysql_init: Ok Mon May 18 09:31:03 2015 - fail2ban::fail2ban_init: Ok Mon May 18 09:31:03 2015 - int::int_init: Ok Mon May 18 09:31:03 2015 - Generating the 'index.html' file. Mon May 18 09:31:03 2015 - Ok, ready. Mon May 18 09:32:00 2015 - Calling system_update() Mon May 18 09:32:00 2015 - system::system_update: N:0.04:0.04:0.05:243:242:1:0:0:0:0:3924228:171136:3043216:284128:::0:0:0:0:0 Mon May 18 09:32:00 2015 - Calling kern_update() Mon May 18 09:32:00 2015 - kern::kern_update: N:0.857356518634249:0.00637479209951298:1.4247837071579:97.6504461482226:0.015013997919225:6.61309142857723e-05:0.045958705052257:0:0:U:59.1850437169885:0.532176191255936:91.7053565241494:U:0:0:0:0 Mon May 18 09:32:00 2015 - Calling proc_update() Mon May 18 09:32:00 2015 - proc::proc_update: N:0.941284703423725:0.0043530539086425:1.36848615126692:97.545557903845:0.0208919007547837:0.000266607314362476:0.119159679486525:0:0:0.960544681382937:0.00927889159802043:1.9251588130213:97.0813412254023:0.0211784001574005:0:0.00249798843803781:0:0:0.774049538842698:0.00302293744841316:1.22459924453879:97.9569267834534:0.00882752366336314:0:0.0325739720533075:0:0:0.75410410253882:0.0088087232854981:1.17916710994803:98.0183286087166:0.009191117474636:0:0.0304003380364632:0:0 Mon May 18 09:32:00 2015 - Calling lmsens_update() Mon May 18 09:32:00 2015 - lmsens::lmsens_update: N:0:0:0:0:0:0:2481:2636:0:0:0:0:0:0:0:40:39:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:+3.41:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:00 2015 - Calling fs_update() Mon May 18 09:32:00 2015 - fs::fs_update: N:18.5003236343996:0:0:3.67532834345431:0:0:0:0:7.52852942642149:0:0:0.52642822265625:0:0:0:0:50.7637097053417:0:0:0.0135641415711278:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:00 2015 - Calling net_update() Mon May 18 09:32:00 2015 - net::net_update: N:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:00 2015 - Calling process_update() Mon May 18 09:32:00 2015 - process::process_update: N:0.00247078634354543:123392000:0:0:140:8:0:0:0:0:0:0.00192463621696059:23433216:0:0:54:3:0:0:0:0:0:0.000421869255238174:4923392:0:0:15:1:0:0:0:0:0:0.0367026210209353:108990464:0:0:39:1:22:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0.00942364282184023:39088128:0:0:18:1:6:0:0:0:0:0.000860840837176494:21737472:0:0:65:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:00 2015 - Calling serv_update() Mon May 18 09:32:00 2015 - Calling port_update() Mon May 18 09:32:00 2015 - port::port_update: N:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:00 2015 - Calling user_update() Mon May 18 09:32:01 2015 - user::user_update: N:1:0:0:0:0:0:0:0 Mon May 18 09:32:01 2015 - Calling apache_update() Mon May 18 09:32:01 2015 - apache::apache_update: N:0:0:0.0113676:1:5 Mon May 18 09:32:01 2015 - Calling mysql_update() Mon May 18 09:32:01 2015 - mysql::mysql_update: N:0:0:0.0371126368528429:0:0:1.98675496688742:0:0:0:10.853375656208:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0.978473581213307:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:01 2015 - Calling fail2ban_update() Mon May 18 09:32:01 2015 - fail2ban::fail2ban_update: N:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:32:01 2015 - Calling int_update() Mon May 18 09:32:01 2015 - int::int_update: N:52:10:0:0:0:0:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:2887:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:8290802:13108950:11:156:12:1:5393971:2780506:674143:1166668:1:6718799:9409976:2921530:2420437:314:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling system_update() Mon May 18 09:33:00 2015 - system::system_update: N:0.02:0.04:0.05:244:242:2:0:0:0:0:3924228:171136:3043800:281196:::0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling kern_update() Mon May 18 09:33:00 2015 - kern::kern_update: N:0.259642363583065:0:0.180074542485029:99.5519075338163:0.00837556011558273:0:0:0:0:115412619:59.1552229479416:0.532176191255936:91.7128219329825:143324:0:0:0:0 Mon May 18 09:33:00 2015 - Calling proc_update() Mon May 18 09:33:00 2015 - proc::proc_update: N:0.1342957864697:0:0.100721839852275:99.7481954003693:0:0:0.0167869733087124:0:0:0.569132909273519:0:0.0836960160696351:99.313692668229:0.033478406427854:0:0:0:0:0.133891213389121:0:0.284518828451883:99.581589958159:0:0:0:0:0:0.200769616864648:0:0.267692822486197:99.5148067592438:0.0167308014053873:0:0:0:0 Mon May 18 09:33:00 2015 - Calling lmsens_update() Mon May 18 09:33:00 2015 - lmsens::lmsens_update: N:0:0:0:0:0:0:2343:2636:0:0:0:0:0:0:0:40:39:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:+3.41:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling fs_update() Mon May 18 09:33:00 2015 - fs::fs_update: N:18.5003349384303:3.76666666666667:0:3.67532834345431:0:0:0:0:7.52852942642149:0:0:0.52642822265625:0:0:0:0:50.7637097053417:0:0:0.0135641415711278:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling net_update() Mon May 18 09:33:00 2015 - net::net_update: N:17502.5166666667:1262.36666666667:15.7666666666667:14.6:0:0:832.566666666667:16859.3833333333:12.4666666666667:13.5166666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling process_update() Mon May 18 09:33:00 2015 - process::process_update: N:0:123817984:0:21.7833333333333:140:8:0:1.46666666666667:0:0:0:0.00837485867425987:23433216:0:535.983333333333:49:3:0:1.03333333333333:0:0:0:0:4923392:0:9:15:1:0:0.0666666666666667:0:0:0:0.0334966294016665:108990464:0:0:39:1:22:0.0166666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0.0334980319906205:39088128:0:33.8666666666667:18:1:6:0:0:0:0:0.00418725399882757:21737472:0:0.166666666666667:65:2:0:0.0666666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling serv_update() Mon May 18 09:33:00 2015 - Calling port_update() Mon May 18 09:33:00 2015 - port::port_update: N:0:0:0:0:0:0:0:0:6.63333333333333:15.3666666666667:0:0:198.666666666667:225.866666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling user_update() Mon May 18 09:33:00 2015 - user::user_update: N:1:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling apache_update() Mon May 18 09:33:00 2015 - apache::apache_update: N:0.0166666666666667:1:0.0113646:1:5 Mon May 18 09:33:00 2015 - Calling mysql_update() Mon May 18 09:33:00 2015 - mysql::mysql_update: N:0.05:0:0.0371057513914641:0:0:1.98675496688742:0.0166666666666667:0:0:10.853375656208:0:0:0:0:0:0:0:0:0:0:0:3.68333333333333:483.983333333333:0:0:0.978331763171244:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling fail2ban_update() Mon May 18 09:33:00 2015 - fail2ban::fail2ban_update: N:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:33:00 2015 - Calling int_update() Mon May 18 09:33:00 2015 - int::int_update: N:52:10:0:0:0:0:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:2887:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:8290886:13108950:11:156:12:1:5395626:2780653:674199:1166738:1:6720712:9410016:2921570:2420480:314:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:00 2015 - Calling system_update() Mon May 18 09:34:00 2015 - system::system_update: N:0.01:0.03:0.05:247:245:2:0:0:0:0:3924228:171152:3043804:278716:::0:0:0:0:0 Mon May 18 09:34:00 2015 - Calling kern_update() Mon May 18 09:34:00 2015 - kern::kern_update: N:0.297729810197246:0:0.215027085142455:99.4789728321548:0:0:0.00827027250547905:0:0:115422475:59.1592038320788:0.54855084329458:91.7139692648484:143385:0:0:0:0 Mon May 18 09:34:00 2015 - Calling proc_update() Mon May 18 09:34:00 2015 - proc::proc_update: N:0.481487630748796:0:0.348663456749128:99.1532458907521:0:0:0.0166030217499585:0:0:0.578225673219891:0:0.429539071534776:98.9922352552453:0:0:0:0:0:0.0660938532716457:0:0.0330469266358229:99.9008592200925:0:0:0:0:0:0.0660829340822733:0:0.0330414670411366:99.9008755988766:0:0:0:0:0 Mon May 18 09:34:00 2015 - Calling lmsens_update() Mon May 18 09:34:00 2015 - lmsens::lmsens_update: N:0:0:0:0:0:0:2343:2109:0:0:0:0:0:0:0:40:39:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:+3.41:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:00 2015 - Calling fs_update() Mon May 18 09:34:00 2015 - fs::fs_update: N:18.5003462424611:3.88333333333333:0:3.67532834345431:0:0:0:0:7.52852942642149:0:0:0.52642822265625:0:0:0:0:50.7637097053417:0:0:0.0135641415711278:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:00 2015 - Calling net_update() Mon May 18 09:34:00 2015 - net::net_update: N:26314.4666666667:9056.78333333333:30.85:29:0:0:826.85:17193.1166666667:12.25:13.8333333333333:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:00 2015 - Calling process_update() Mon May 18 09:34:01 2015 - process::process_update: N:0:123817984:68.2666666666667:-46.4666666666667:140:8:0:1.5:0:0:0:0.0537545484617929:23433216:0:13843.4333333333:45:3:0:5.76666666666667:0.0333333333333333:0:0:0:4923392:0:8.6:15:1:0:0.1:0:0:0:0.0330810900219162:108990464:0:0:39:1:22:0.0166666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:39088128:0:2.93333333333333:18:1:6:0:0:0:0:0:21737472:0:0.166666666666667:65:2:0:0.0666666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:01 2015 - Calling serv_update() Mon May 18 09:34:01 2015 - Calling port_update() Mon May 18 09:34:01 2015 - port::port_update: N:0:0:0:0:0:0:0:0:6.63333333333333:15.3833333333333:0:0:1554.2:6614.13333333333:0:0:0:0:0:0:0:0:0:0:0:0:0:0:2.1:12.9333333333333:0:0:0:0:0:0 Mon May 18 09:34:01 2015 - Calling user_update() Mon May 18 09:34:01 2015 - user::user_update: N:1:0:0:0:0:0:0:0 Mon May 18 09:34:01 2015 - Calling apache_update() Mon May 18 09:34:01 2015 - apache::apache_update: N:0.0166666666666667:0:0.0113615:1:5 Mon May 18 09:34:01 2015 - Calling mysql_update() Mon May 18 09:34:01 2015 - mysql::mysql_update: N:0.05:0:0.0370988684845086:0:0:1.98675496688742:0.0166666666666667:0:0:10.853375656208:0:0:0:0:0:0:0:0:0:0:0:3.68333333333333:483.983333333333:0:0:0.978189986232882:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:01 2015 - Calling fail2ban_update() Mon May 18 09:34:01 2015 - fail2ban::fail2ban_update: N:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:34:01 2015 - Calling int_update() Mon May 18 09:34:01 2015 - int::int_update: N:52:10:0:0:0:0:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:2887:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:8291046:13108950:11:156:12:1:5397790:2781331:674440:1167065:1:6722642:9410069:2921605:2420512:314:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:00 2015 - Calling system_update() Mon May 18 09:35:00 2015 - system::system_update: N:0.09:0.06:0.05:244:243:1:0:0:0:0:3924228:171528:3043848:278512:::0:0:0:0:0 Mon May 18 09:35:00 2015 - Calling kern_update() Mon May 18 09:35:00 2015 - kern::kern_update: N:3.21345951629863:0:0.559411146161935:96.0630914826498:0.138801261829653:0:0.0252365930599369:0:0:115451646:59.1523103930495:0.540363517275258:91.7125350503687:143441:0:0:0:0 Mon May 18 09:35:00 2015 - Calling proc_update() Mon May 18 09:35:00 2015 - proc::proc_update: N:0.69221678203613:0:0.641566773594462:98.2947830491305:0.287016714502786:0:0.0844166807361135:0:0:1.14304925197512:0:0.638762817280215:98.0164733568667:0.184905026054799:0:0.0168095478231636:0:0:5.94758064516129:0:0.554435483870968:93.4979838709677:0:0:0:0:0:5.05712365591398:0:0.42002688172043:94.4388440860215:0.0672043010752688:0:0.0168010752688172:0:0 Mon May 18 09:35:00 2015 - Calling lmsens_update() Mon May 18 09:35:00 2015 - lmsens::lmsens_update: N:0:0:0:0:0:0:2343:2109:0:0:0:0:0:0:0:39:39:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:+3.41:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:00 2015 - Calling fs_update() Mon May 18 09:35:00 2015 - fs::fs_update: N:18.5004818908297:51.5666666666667:0:3.67532834345431:0:0:0:0:7.52852942642149:0:0:0.52642822265625:0:0:0:0:50.7637097053417:0:0:0.0135641415711278:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:00 2015 - Calling net_update() Mon May 18 09:35:00 2015 - net::net_update: N:18723.5666666667:12180.5166666667:23:23:0:0:769.6:16716.0333333333:11.6166666666667:13.2666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:00 2015 - Calling process_update() Mon May 18 09:35:00 2015 - process::process_update: N:0.0630941364515858:123817984:31812.2666666667:45293.5333333333:140:8:0:3.3:1.43333333333333:0:0:0.0420609884332282:23433216:0:22468.2666666667:41:3:0:4.08333333333333:0.0666666666666667:0:0:0:4923392:0:4.5:15:1:0:0.116666666666667:0:0:0:0.0294439303440734:108990464:0:0:39:1:22:0.0166666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:39088128:0:0:18:1:6:0:0:0:0:0:21737472:0:0.166666666666667:65:2:0:0.0666666666666667:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:00 2015 - Calling serv_update() Mon May 18 09:35:01 2015 - serv::serv_update: N:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:01 2015 - Calling port_update() Mon May 18 09:35:01 2015 - port::port_update: N:0:0:0:0:0:0:0:0:762.3:9945.8:0:0:1420.8:10833.1333333333:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:01 2015 - Calling user_update() Mon May 18 09:35:01 2015 - user::user_update: N:1:0:0:0:0:0:0:0 Mon May 18 09:35:01 2015 - Calling apache_update() Mon May 18 09:35:01 2015 - apache::apache_update: N:1.31666666666667:615:0.0146728:1:5 Mon May 18 09:35:01 2015 - Calling mysql_update() Mon May 18 09:35:01 2015 - mysql::mysql_update: N:0.05:0:0.0370919881305665:0:0:1.98675496688742:0.0166666666666667:0:0:10.853375656208:0:0:0:0:0:0:0:0:0:0:0:3.68333333333333:483.983333333333:0:0:0.978048250380352:0:0:0:0:0:0:0:0:0:0:0:0 Mon May 18 09:35:01 2015 - Calling fail2ban_update() Mon May 18 09:35:01 2015 - fail2ban::fail2ban_update: N:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0

mikaku commented 9 years ago

OK thanks, more questions ...

Are you using the HTTP built-in server or an external HTTP server like Apache, Nginx, etc.? If you are using the default HTTP built-in Monitorix server, please, check the monitorix-httpd log file for error messages, and let me know.

frollic commented 9 years ago

Hi,

I'm running apache, internal server is disabled in monitorix.conf.

Some more information, the browser displays ERROR: while graphing /var/lib/monitorix/www/imgs/process01.1day.png: Could not save png to '/var/lib/monitorix/www/imgs/process01.1day.png' ERROR: while graphing /var/lib/monitorix/www/imgs/process01z.1day.png: Could not save png to '/var/lib/monitorix/www/imgs/process01z.1day.png' instead of the image.

The path itself is correct (but the files are not there), OS-wise.

in apache error log I get AH01215: Use of uninitialized value in multiplication () at /usr/lib/monitorix/process.pm line 1456. AH01215: Use of uninitialized value in multiplication () at /usr/lib/monitorix/apache.pm line 601.

Theres a * inbetween the ( ), but I guess the censors cut it out :)

mikaku commented 9 years ago

Well, it looks like a permissions issue. Please, read this FAQ:

http://www.monitorix.org/faq.html#Q120

and let me know if that helped you. Thanks.

frollic commented 9 years ago

[root@atlantis ~]# curl http://localhost/server-status <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

Apache Status

Apache Server Status for localhost (via ::1)

Server Version: Apache/2.4.10 (Fedora) OpenSSL/1.0.1k-fips mod_fcgid/2.3.9 PHP/5.6.8
Server MPM: prefork
Server Built: Dec 17 2014 10:01:50

Current Time: Monday, 18-May-2015 10:18:33 CEST
Restart Time: Friday, 15-May-2015 20:09:03 CEST
Parent Server Config. Generation: 2
Parent Server MPM Generation: 1
Server uptime: 2 days 14 hours 9 minutes 30 seconds
Server load: 0.01 0.07 0.06
Total accesses: 5927 - Total Traffic: 18.6 MB
CPU Usage: u2.25 s1.59 cu108.19 cs8.87 - .054% CPU load
.0265 requests/sec - 87 B/second - 3290 B/request
1 requests currently being processed, 5 idle workers
._.___......W_..................................................
................................................................
................................................................
................................................................

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

SrvPIDAccMCPU SSReqConnChildSlotClientVHostRequest
0-1-0/0/418. 0.005400.00.001.03 ::1www.abc123.com:80OPTIONS * HTTP/1.0
1-1128570/521/658_ 8.0847130.01.892.11 81.228.188.250www.abc123.com:80NULL
2-1-0/0/842. 0.004610.00.002.03 ::1www.abc123.com:80OPTIONS * HTTP/1.0
3-1128600/505/813_ 22.984710.01.892.82 81.228.188.250www.abc123.com:80NULL
4-1128610/492/923_ 22.774710.01.852.88 81.228.188.250www.abc123.com:80NULL
5-1129050/483/999_ 30.173200.01.793.40 localhostwww.abc123.com:80GET /server-status?auto HTTP/1.1
6-1-0/0/501. 0.004510.00.001.42 ::1www.abc123.com:80OPTIONS * HTTP/1.0
7-1-0/0/292. 0.004410.00.000.63 ::1www.abc123.com:80OPTIONS * HTTP/1.0
8-1-0/0/26. 0.004320.00.000.01 ::1www.abc123.com:80OPTIONS * HTTP/1.0
9-1-0/0/154. 0.004200.00.000.21 ::1www.abc123.com:80OPTIONS * HTTP/1.0
10-1-0/0/26. 0.004100.00.000.01 ::1www.abc123.com:80OPTIONS * HTTP/1.0
11-1-0/0/15. 0.00231100.00.000.00 ::1www.abc123.com:80OPTIONS * HTTP/1.0
12-1143780/144/156W 7.53000.01.161.17 ::1www.abc123.com:80GET /server-status HTTP/1.1
13-1144030/104/104_ 29.374710.00.880.88 81.228.188.250www.abc123.com:80NULL

SrvChild Server number - generation
PIDOS process ID
AccNumber of accesses this connection / this child / this slot
MMode of operation
CPUCPU usage, number of seconds
SSSeconds since beginning of most recent request
ReqMilliseconds required to process most recent request
ConnKilobytes transferred this connection
ChildMegabytes transferred this child
SlotTotal megabytes transferred this slot

SSL/TLS Session Cache Status:
cache type: SHMCB, shared memory: 512000 bytes, current entries: 0
subcaches: 32, indexes per subcache: 88
index usage: 0%, cache usage: 0%
total entries stored since starting: 3
total entries replaced since starting: 0
total entries expired since starting: 3
total (pre-expiry) entries scrolled out of the cache: 0
total retrieves since starting: 0 hit, 0 miss
total removes since starting: 0 hit, 0 miss

mod_fcgid status:

Total FastCGI processes: 0
mikaku commented 9 years ago

Please, read again the FAQ. Thanks.

frollic commented 9 years ago

It's not a new setup of Monitorix.

All other graphs get generated and displayed, but for those for apache and processes.

-rw-r--r-- 1 apache apache 28157 May 18 10:28 net02z.1day.png -rw-r--r-- 1 apache apache 5534 May 18 10:28 net03.1day.png -rw-r--r-- 1 apache apache 13425 May 18 10:28 net03z.1day.png -rw-r--r-- 1 apache apache 18260 May 18 10:28 net11.1day.png etc ...

I can't see what I've missed :(

mikaku commented 9 years ago

frollic,

I still think that this is a permissions issue.

Look, you probably used Monitorix with the built-in HTTP which generated some graphs with its own user and group permissions. Then, you switched to Apache but the graphs generated by the built-in server still are there and Apache has no permission to overwrite them.

Please, go to /var/lib/monitorix/www/imgs/, remove all the *.png files, and let the Apache generate all graphs again.

Regards.

frollic commented 9 years ago

Yes and no :D

Removing all the files didn't help, but what did, was to fix the permissions on the imgs folder. For some reason (during FC20 > FC21 upgrade, I'd guess) the permissions/owner were (re)set to drwxr-xr-x 2 nobody nobody, changing them back to apache:apache fixed the problem for me.

What threw me off was the already existing pngs still beeing generated. Lesson learned.

Thank you for a quick response.

mikaku commented 9 years ago

Perfect, I'll close this issue. Thanks.

changastyle commented 7 years ago

cd /var/lib/monitorix chmod -R 777 www/

IzzySoft commented 7 years ago

@changastyle that's something you should only do if you're really desperate – and not at all if fixing the ownership already solves it.