Monitorix
- Nuxwin
- Closed
- Thread is marked as Resolved.
-
-
I have problem with this plugin too.
(i-mscp 1.2.16, debian jessie)Install was ok, I have some graph under Statistics menu.
But I want to modify the config.php file, because I need some other graphs.After this, I disable/enable the plugin, restart the imscp_daemon, monitorix daemon, but nothing changed.
The perl /var/www/imscp/gui/plugins/Monitorix/cronjob/cronjob.pl command says:
Quote[FATAL] iMSCP::Debug::__ANON__: Missing bin_path configuration parameter at /var/www/imscp/gui/plugins/Monitorix/backend/Monitorix.pm line 330, <$fh> line 350.
bin_path in the config.php file is:
Quotereturn array(
// Monitorix binary path ( default: /usr/bin/monitorix )
'bin_path' => '/usr/bin/monitorix',It's seems correct for me.
PHP: config.php- <?php
- /**
- * i-MSCP Monitorix plugin
- * Copyright (C) 2013-2015 Laurent Declercq <l.declercq@nuxwin.com>
- * Copyright (C) 2013-2015 Sascha Bay <info@space2place.de>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
- return array(
- // Monitorix binary path ( default: /usr/bin/monitorix )
- 'bin_path' => '/usr/bin/monitorix',
- // Path to monitorix CGI script ( default: /var/lib/monitorix/www/cgi/monitorix.cgi )
- 'cgi_path' => '/var/lib/monitorix/www/cgi/monitorix.cgi',
- // Path to monitorix configuration directory
- 'confdir_path' => '/etc/monitorix',
- // Color for graph background ( default: white )
- // Possible value: black or white
- 'graph_color' => 'white',
- // Graphs width, proportional to 895 px ( default: 450 )
- 'graph_width' => '450',
- // Graphs height, proportional to 367 px ( default: 185 )
- 'graph_height' => '185',
- // Graphs to enable/disable
- //
- // WARNING:
- // Be aware that some graphs require further configuration ( see http://www.monitorix.org/documentation.html )
- // The default configuration as provided by the Monitorix package doesn't work with all systems. In most cases,
- // enabling a graph is not sufficient. Default enabled graphs are know to work out of box. Other require further
- // configuration which is curently not done automatically by this plugin.
- 'graph_enabled' => array(
- 'system' => 'y',
- 'kern' => 'y',
- 'proc' => 'y',
- 'hptemp' => 'n',
- 'lmsens' => 'n',
- 'nvidia' => 'n',
- 'disk' => 'n',
- 'fs' => 'n',
- 'net' => 'y',
- 'netstat' => 'y',
- 'serv' => 'y',
- 'mail' => 'y',
- 'port' => 'y',
- 'user' => 'y',
- 'ftp' => 'y',
- 'apache' => 'y',
- 'nginx' => 'n',
- 'lighttpd' => 'n',
- 'mysql' => 'y',
- 'squid' => 'n',
- 'nfss' => 'n',
- 'nfsc' => 'n',
- 'bind' => 'y',
- 'ntp' => 'n',
- 'fail2ban' => 'y',
- 'icecast' => 'n',
- 'raspberrypi' => 'n',
- 'phpapc' => 'n',
- 'memcached' => 'n',
- 'apcupsd' => 'n',
- 'wowza' => 'n',
- 'int' => 'n'
- ),
- // Enable or disable Monitorix cronjob ( default: true )
- // If disabled, the graphs will not be updated
- 'cronjob_enabled' => true,
- // Timedate at which monitorix cronjob must be run ( default: Every 30 minutes )
- // See man CRONTAB(5) for allowed values
- 'cronjob_timedate' => array(
- 'minute' => '*/30',
- 'hour' => '*',
- 'day' => '*',
- 'month' => '*',
- 'dweek' => '*'
- )
- );
Any idea?
-
-
There's a bug in Monitorix 1.2.1 - you should use the 1.2.2 from https://github.com/i-MSCP/plug…aster/incubator/Monitorix. This version works for me without problems...
-
There's a bug in Monitorix 1.2.1 - you should use the 1.2.2 from https://github.com/i-MSCP/plug…aster/incubator/Monitorix. This version works for me without problems...
Thank you @team-o it's a little better, but not perfect.
I uninstalled the previous version, and delete, after it install this version (1.2.2)
First, I have not /var/www/imscp/gui/plugins/Monitorix/themes/default/assets/images/graphs dir, but I solved, create this.ftp graphs wasn't ok, because wrong file name in the 20-imscp.conf file:
ftp_log = /var/log/proftpd/access.logcorrect is:
ftp_log = /var/log/proftpd/xferlogNow, the basic graphs works, but I want to use these too:
- mysql
I made the changes in /etc/monitorix/conf.d/00-debian.conf set the correct mysql user/password, but I have no mysql graphs.- fail2ban
No graphs. I think, maybe no fail2ban activity today.- du
It's not listed on the frontend select box.
It's very strange, because I added it to the config.php file graph_enabled section.But what I saw after every file (config.php) modification:
It has no any effect in /etc/monitorix/conf.d file.
Deactivate/activate plugin no any effect.Btw a made hungarian translation for this plugin.
PHP: hu_HU.php- <?php
- /**
- * i-MSCP Monitorix plugin
- * Copyright (C) 2013-2016 Laurent Declercq <l.declercq@nuxwin.com>
- * Copyright (C) 2013-2016 Sascha Bay <info@space2place.de>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * @translator Laurent Declercq (nuxwin) <l.declercq@nuxwin.com>
- */
- return array(
- 'Monitorix' => 'Monitorix',
- 'Statistics / Monitorix' => 'Statisztika / Monitorix',
- "The requested graph doesn't exists." => "A kért grafikon nem létezik.",
- 'Select a graph' => 'Válassz grafikont',
- 'Hour' => 'Óra',
- 'Day' => 'Nap',
- 'Week' => 'Hét',
- 'Month' => 'Hónap',
- 'Year' => 'Év',
- 'Show graph' => 'Mutasd a grafikont',
- 'Monitorix - %s - %s' => 'Monitorix - %s - %s',
- 'Monitorix - %s' => 'Monitorix - %s',
- 'system' => 'Átlagos rendszer terhelés és használat',
- 'kern' => 'Globális kernel használat',
- 'proc' => 'Kernel használat processzoronként',
- 'hptemp' => 'HP ProLiant Rendszer Állapot',
- 'lmsens' => 'LM-Sensors és GPU hőmérsékletek',
- 'nvidia' => 'NVIDIA hőmérsékletek és használat',
- 'disk' => 'Merevlemez hőmérséklet és állapot',
- 'fs' => 'Fájlrendszer használat és I/O aktivitás',
- 'net' => 'Hálózati forgalom és használat',
- 'netstat' => 'Netstat statisztikák',
- 'serv' => 'Rendszer szolgáltatások igénye',
- 'mail' => 'Levelezés statisztika',
- 'port' => 'Hálózati port forgalom',
- 'user' => 'Belépett felhasználók',
- 'ftp' => 'FTP statisztikák',
- 'apache' => 'Apache statisztikák',
- 'nginx' => 'Nginx statisztikák',
- 'lighttpd' => 'Lighttpd statisztikák',
- 'mysql' => 'MySQL statisztikák',
- 'squid' => 'Squid statisztikák',
- 'nfss' => 'NFS szerver statisztikák',
- 'nfsc' => 'NFS kliens statisztikák',
- 'bind' => 'BIND statisztikák',
- 'ntp' => 'NTP statisztikák',
- 'fail2ban' => 'Fail2ban statisztikák',
- 'icecast' => 'Icecast Streaming Media Server',
- 'raspberrypi' => 'Raspberry Pi szenzor statisztikák',
- 'phpapc' => 'Alternative PHP Cache statisztikák',
- 'memcached' => 'Memcached statisztikák',
- 'apcupsd' => 'APC UPS statisztikák',
- 'wowza' => 'Wowza Media Server',
- 'int' => 'Eszközök félbeszakitásának aktivitása',
- 'No graph for your selection is available.' => 'Nincs grafikon ehhez a területhez.',
- 'An error occured while opening the directory: %s' => 'Hiba a következő könyvtár megnyitása közben: %s',
- 'du' => 'Lemez használat'
- );
-
-