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?