Error: Save Failed

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
oscar.sanabria
Cacti User
Posts: 53
Joined: Tue Apr 04, 2006 3:45 pm
Location: Colombia
Contact:

Error: Save Failed

Post by oscar.sanabria »

I upgraded my cacti-0.8.7a to cacti-0.8.7b and work very good, but i cant add new device because have the bellow message:

Error: Save Failed

Any can help me with that?, I too added any plugins. (thold, monitor, ntop, flowview)and all work very good, but cant create new device.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Check that you have enabled rights for your admin user on all the plugins you have installed.

I had this problem and it turned out to be Monitor. But the *reason* was that Monitor doesn't create it's database entries until the tab has been displayed. Maybe other plugins have this problem too?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
oscar.sanabria
Cacti User
Posts: 53
Joined: Tue Apr 04, 2006 3:45 pm
Location: Colombia
Contact:

THE PROBLEM PERSIST

Post by oscar.sanabria »

Hello.

The Monitor yet created its option but now i cant enable its option (Monitor Host) neither create a new device because have the message:

Error: Save Failed

Any can help me fixed that issue?
oscar.sanabria
Cacti User
Posts: 53
Joined: Tue Apr 04, 2006 3:45 pm
Location: Colombia
Contact:

Created manuyally the PLUGIN data base

Post by oscar.sanabria »

Hello.

I created the database for monitor plugin manually and now i can create devices and enable monitor host, but have a error when i going to monitor tab:

Warning: Invalid Argument supplied for foreach() /cactipath/plugins/monitor/monitor.php on line 199

Any know what meaning that?

This the line 199:

if (in_array('thold',$plugins)) {
$thold_alerts = array();
$thold_hosts = array();

$result = db_fetch_assoc('SELECT rra_id FROM thold_data WHERE thold_alert > 0 AND thold_enabled = "on"');

foreach ($result as $row) { $thold_alerts[] = $row['rra_id'];
}
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Post by Deviloper »

Have this error, too.

did you fixed it?
linuxp2009
Posts: 2
Joined: Wed Sep 16, 2009 12:19 pm

Re: Error: Save Failed

Post by linuxp2009 »

oscar.sanabria wrote:I upgraded my cacti-0.8.7a to cacti-0.8.7b and work very good, but i cant add new device because have the bellow message:

Error: Save Failed

Any can help me with that?, I too added any plugins. (thold, monitor, ntop, flowview)and all work very good, but cant create new device.
I think i found the answer,the host table in the cacti database doesn't have the plugins monitor column in it,so if you added a new device to the database and had the monitor selected,it failed.because you were inserting a unknow colunm into table "host".

to resolve the problem ,you only need to go to the plguins directory ,and exec the sql file in the monitor subdirectory.For example:

mysql -u root -p your_cacti_database<monitor.sql

here is the content of monitor.sql

ALTER TABLE host ADD monitor char(3) default 'on' not null AFTER disabled;
ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor;
REPLACE INTO `user_auth_realm` VALUES (32, 1);
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests