monitor plugin - setup.php error

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mikieo
Posts: 19
Joined: Tue Feb 06, 2007 12:32 pm

monitor plugin - setup.php error

Post by mikieo »

Hi - I've installed the monitor plug in but get the following error when I click the monitor tab

Warning: Invalid argument supplied for foreach() in /usr/local/apache2/htdocs/cacti/plugins/monitor/setup.php on line 265

line 265 of setup.php highlighted below...

include_once($config['library_path'] . '/database.php');
$sql = 'SHOW COLUMNS FROM host';
$result = db_fetch_assoc($sql);
$found = false;
$found2 = false;
foreach ($result as $row) {
if ($row['Field'] == 'monitor')
$found = true;

any ideas anyone please??
bnaef
Posts: 1
Joined: Wed Jul 23, 2008 12:54 pm

monitor plugin

Post by bnaef »

i have the same problem. did you find any solution?
Beat
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest