*** MANAGE ERROR ***

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

*** MANAGE ERROR ***

Post by bengelly »

Hi,

this is the error I get when I try to apply changes to multiple hosts :

Code: Select all

1
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/plugins/manage/list.php:137) in /usr/share/cacti/site/plugins/manage/list.php on line 207
Thanks for your help
wayno
Posts: 14
Joined: Tue Apr 10, 2007 5:59 pm
Location: Darwin, Australia

Post by wayno »

I'm getting the same thing:

Code: Select all

1
Warning: Cannot modify header information - headers already sent by (output started at /webapps/cacti/plugins/manage/list.php:137) in /webapps/cacti/plugins/manage/list.php on line 207
Any ideas?
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - CMD.php
Server Info - Linux 2.6.19-gentoo-r5-va
Web Server - Apache
PHP - 5.2.1-pl3-gentoo
PHP Extensions - libxml, xml, tokenizer, session, pcre, SimpleXML, SPL, sockets, SQLite, standard, Reflection, pgsql, mysql, mcrypt, mbstring, gd, dom, dba, date, ctype, zlib, openssl, apache2handler
MySQL - 5.0.34-log
RRDTool - 1.2.15
SNMP - 5.4
Plugins
  • Thresholds (thold - v0.3.2)
    Device Monitoring (monitor - v0.7)
    Host Info (hostinfo - v0.1)
    Network Discovery (discovery - v0.7)
    Update Checker (update - v0.3)
    PHP Network Managing (manage - v0.4)
    Uptime (uptime - v0.3)
    Network Tools (tools - v0.2)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Please go to MANAGE, SETTINGS, then click the DEBUG link at the top right of the page. It looks like some tables are missing, so if you could post the output, this may help.

Note, that this option is only available in MANAGE 0.5.x. If you are using an earlier version, try upgrading first.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
wayno
Posts: 14
Joined: Tue Apr 10, 2007 5:59 pm
Location: Darwin, Australia

Post by wayno »

I had tried to upgrade from 0.42 to 0.5 previously but had to roll back because I had all kinds of problems. I'll post my list of tables when I'm back in front of the server.
wayno
Posts: 14
Joined: Tue Apr 10, 2007 5:59 pm
Location: Darwin, Australia

Post by wayno »

mcutting wrote:Please go to MANAGE, SETTINGS, then click the DEBUG link at the top right of the page. It looks like some tables are missing, so if you could post the output, this may help.

Note, that this option is only available in MANAGE 0.5.x. If you are using an earlier version, try upgrading first.
Here is a list of my tables from phpMyAdmin:

I'm going to have another go at upgrading to 0.5x after taking a good backup ;)
Attachments
manage_tables.jpg
manage_tables.jpg (48.42 KiB) Viewed 8342 times
wayno
Posts: 14
Joined: Tue Apr 10, 2007 5:59 pm
Location: Darwin, Australia

Post by wayno »

Upgraded to 0.51 smoothly this time. No more 0.42 errors :)
wtb1
Posts: 47
Joined: Thu May 03, 2007 8:11 am

Manage Errors

Post by wtb1 »

I have these when I hit debug

Table 'manage_host' : OK (0.1)
Champ 'manage' from table 'host' : OK (0.1)
Table 'manage_alerts' : OK (0.1)
Table 'manage_method' : OK (0.1)
Champ 'force' from table 'manage_host' : OK (0.2)
Table 'manage_device_type' : OK (0.2)
Table 'manage_templates' : OK (0.2)
Champ 'group' from table 'manage_host' : OK (0.3)
Table 'manage_groups' : OK (0.3)
Champ 'oid' from table 'manage_alerts' : OK (0.4)
Table 'manage_process' : OK (0.4)
Table 'manage_services' : OK (0.4)
Setting 'manage_poller_hosts' from table 'settings' : OK (0.4)
Table 'manage_sites' : NOK (0.5)
Table 'manage_tcp' : NOK (0.5)
Table 'manage_host_services' : OK (not here) (0.5)
Table 'manage_poller_output' : OK (0.5)
Setting 'manage_cycle_delay' from table 'settings' : OK (0.5)
Champ 'thresold_ref' from table 'manage_host' : NOK (0.5)
Champ 'thresold' from table 'manage_host' : NOK (0.5)
Setting 'manage_list_2' from table 'settings' : OK (0.5)
Setting 'manage_theme' from table 'settings' : OK (0.5)
Setting 'manage_sound' from table 'settings' : OK (0.5)
Champ 'mail' from table 'manage_host' : NOK (0.5)
Champ 'site_id' from table 'manage_groups' : NOK (0.5)
Setting 'manage_global_email' from table 'settings' : OK (0.5)
Setting 'manage_double_email' from table 'settings' : OK (0.5)
Setting 'manage_cycle_refresh' from table 'settings' : OK (0.5)
Setting 'manage_poller_plus' from table 'settings' : OK (0.5)
Setting 'manage_thold' from table 'settings' : OK (0.5)
Setting 'manage_order1' from table 'settings' : OK (0.5)
Setting 'manage_order2' from table 'settings' : OK (0.5)
Setting 'manage_order3' from table 'settings' : OK (0.5)
Setting 'manage_order4' from table 'settings' : OK (0.5)
Setting 'manage_order5' from table 'settings' : OK (0.5)

How do I fix these table errors?
wtb1
Posts: 47
Joined: Thu May 03, 2007 8:11 am

Still seeking answer to table problem

Post by wtb1 »

Sill looking at how to fix the SQL table problem I am having in manage...
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

you can try this with phpmyadmin :

Code: Select all

CREATE TABLE manage_sites ( id MEDIUMINT(8) NOT NULL auto_increment, name TEXT, PRIMARY KEY  (id) );

ALTER TABLE manage_host_services RENAME manage_tcp;

ALTER TABLE manage_host ADD `thresold` MEDIUMINT(8) unsigned NOT NULL default '0';
ALTER TABLE manage_host ADD `thresold_ref` MEDIUMINT(8) unsigned NOT NULL default '1';

ALTER TABLE manage_host ADD `mail` TEXT;

ALTER TABLE manage_groups ADD site_id MEDIUMINT NOT NULL;
wtb1
Posts: 47
Joined: Thu May 03, 2007 8:11 am

Post by wtb1 »

I had to rip out all tables and columns created by manage and reimport the SQL queries.
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

Hi all

I need help here. I can't figure out the problem.
I have 2 separate systems running on openSUSE with cacti 0.8.6j install. Both are accessing separate database.

On system A, I manage to see everything and can monitor system.

On system B, I get this on "undefined" after the "Refresh" button in manage screen. No icon appeared after that.

All database is present during the debug.

SH
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

Hi all

I solve my own problem :D

This "Manage" plugin require php module of "bcmath"
For php5, it is php5-bcmath.
Without the bcmath, u see nothing in the manage screen (no icons)

SH
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

super-hornet wrote:Hi all

I solve my own problem :D

This "Manage" plugin require php module of "bcmath"
For php5, it is php5-bcmath.
Without the bcmath, u see nothing in the manage screen (no icons)

SH
How do you enable "bcmath"?

In windows PhP5 there is no such thing as bcmatch or php-bcmatch in PHP add-remove.

In php.ini I have found

Code: Select all

[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0
how do I change it to enable it?
bloodrayne
Cacti User
Posts: 53
Joined: Mon Nov 29, 2004 11:43 am

Post by bloodrayne »

Gilles,

how do we fix the databases when it says error in the debug?

I have that :

Code: Select all

Current version : 0.5.1
--------------------------------------------------------------------------------
Upgrade needed : none
--------------------------------------------------------------------------------
Table 'manage_host' : 	OK	(0.1)
Champ 'manage' from table 'host' : 	OK	(0.1)
Table 'manage_alerts' : 	OK	(0.1)
Table 'manage_method' : 	OK	(0.1)
Champ 'force' from table 'manage_host' : 	OK	(0.2)
Table 'manage_device_type' : 	OK	(0.2)
Table 'manage_templates' : 	OK	(0.2)
Champ 'group' from table 'manage_host' : 	OK	(0.3)
Table 'manage_groups' : 	OK	(0.3)
Champ 'oid' from table 'manage_alerts' : 	OK	(0.4)
Table 'manage_process' : 	OK	(0.4)
Table 'manage_services' : 	OK	(0.4)
Setting 'manage_poller_hosts' from table 'settings' : 	OK	(0.4)
Table 'manage_sites' : 	NOK	(0.5)
Table 'manage_tcp' : 	NOK	(0.5)
Table 'manage_host_services' : 	OK (not here)	(0.5)
Table 'manage_poller_output' : 	OK	(0.5)
Setting 'manage_cycle_delay' from table 'settings' : 	OK	(0.5)
Champ 'thresold_ref' from table 'manage_host' : 	NOK	(0.5)
Champ 'thresold' from table 'manage_host' : 	NOK	(0.5)
Setting 'manage_list_2' from table 'settings' : 	OK	(0.5)
Setting 'manage_theme' from table 'settings' : 	OK	(0.5)
Setting 'manage_sound' from table 'settings' : 	OK	(0.5)
Champ 'mail' from table 'manage_host' : 	NOK	(0.5)
Champ 'site_id' from table 'manage_groups' : 	NOK	(0.5)
Setting 'manage_global_email' from table 'settings' : 	OK	(0.5)
Setting 'manage_double_email' from table 'settings' : 	OK	(0.5)
Setting 'manage_cycle_refresh' from table 'settings' : 	OK	(0.5)
Setting 'manage_poller_plus' from table 'settings' : 	OK	(0.5)
Setting 'manage_thold' from table 'settings' : 	OK	(0.5)
Setting 'manage_order1' from table 'settings' : 	OK	(0.5)
Setting 'manage_order2' from table 'settings' : 	OK	(0.5)
Setting 'manage_order3' from table 'settings' : 	OK	(0.5)
Setting 'manage_order4' from table 'settings' : 	OK	(0.5)
Setting 'manage_order5' from table 'settings' : 	OK	(0.5)
But if i manually check, all fields and tables are there without any problem ... i tried to recreate them ... but it's not working!

If i use my own MySQL class to connect ... it's working ... i can see the tables ... so it seems really weird ... but is there anything i can do?

EDIT: Anybody can export his manage tables without the data plz ...

Thanks
bloodrayne
Cacti User
Posts: 53
Joined: Mon Nov 29, 2004 11:43 am

Post by bloodrayne »

I finally manage to make it work ...

i dunno why but when i was using PHPMYADMIN it was not working ... since i use directlly mysql cli ... it's working like a charm!


dunno why btw ... but it's kinda weird ...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest