Plugin Monitor 0.8.1 "Error: Save Failed"
Moderators: Developers, Moderators
Plugin Monitor 0.8.1 "Error: Save Failed"
Fresh installation of cacti on W2K3R2 SP2 (VM).
cacti-0.8.7a
mysql-5.0.45-win32
php-5.2.5-Win32
rrdtool-1.2.26-bin-w32
net-snmp-5.4.1-3.win32
I was able to add new devices to Cacti until the install of weathermap plug-in. The list of plug-ins from global.php:
$plugins = array();
$plugins[] = 'settings';
$plugins[] = 'thold';
$plugins[] = 'monitor';
$plugins[] = 'weathermap';
I can do everything else, but add new device.
All ntfs permissions are according to the http://home.comcast.net/~bsod2600/install_windows.html
Console -> Utilities -> View Cacti Log File doesn't have any particular errors about this.
Any help appreciated.
cacti-0.8.7a
mysql-5.0.45-win32
php-5.2.5-Win32
rrdtool-1.2.26-bin-w32
net-snmp-5.4.1-3.win32
I was able to add new devices to Cacti until the install of weathermap plug-in. The list of plug-ins from global.php:
$plugins = array();
$plugins[] = 'settings';
$plugins[] = 'thold';
$plugins[] = 'monitor';
$plugins[] = 'weathermap';
I can do everything else, but add new device.
All ntfs permissions are according to the http://home.comcast.net/~bsod2600/install_windows.html
Console -> Utilities -> View Cacti Log File doesn't have any particular errors about this.
Any help appreciated.
- Attachments
-
- This is the error I am getting.
- PluginMonitorError.PNG (84.38 KiB) Viewed 13670 times
-
- This is the Settings/Misc page.
- SettingsMisc.PNG (81.49 KiB) Viewed 13670 times
Last edited by alexp on Wed Dec 19, 2007 6:12 pm, edited 1 time in total.
Forgot to mention:
IIS 6.0.
The Debug errors:
12/17/2007 04:12:08 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
12/17/2007 04:12:00 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
12/17/2007 03:33:38 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
Hope it will help.
Thanks,
IIS 6.0.
The Debug errors:
12/17/2007 04:12:08 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
12/17/2007 04:12:00 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
12/17/2007 03:33:38 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
Hope it will help.
Thanks,
If you disable weathermap and/or all plugins, does it work again?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Still sounds like a plugin issue, moving.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Does the cacti mysql user have permission to modify the database? That looks like monitor is trying to add a new field to the host table and failing.alexp wrote:Forgot to mention:
IIS 6.0.
The Debug errors:
12/17/2007 04:12:08 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
12/17/2007 04:12:00 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
12/17/2007 03:33:38 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1101', SQL:"ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor'
Hope it will help.
Thanks,
Weathermap will try and do the same kind of thing to add it's own tables to store map info in too, as would thold.
If the use does have permission for CREATE and ALTER on the cacti db, then try logging onto the mysql command-line tool as that user and pasting in that SQL (ALTER TABLE host ADD monitor_text text default '' not null AFTER monitor) and see what mysql says.
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!)
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!)
Ok, I have follwed the advice and looks like mySQL error is gone.
The C:\Inetpub\wwwroot\cacti\plugins\monitor\monitor.sql is now:
ALTER TABLE host ADD monitor char(3) default 'on' not null AFTER disabled;
ALTER TABLE host ADD monitor_text text null AFTER monitor;
REPLACE INTO `user_auth_realm` VALUES (32, 1);
But I am still getting error after I am adding a new device. As soon as I hit "Create":
Error: Save Failed.
When I disable "monitor" plug-in in C:\Inetpub\wwwroot\cacti\include\global.php
I am able to save new device, again.
Could it be the "monitor" plugin configuration?
[/img]
The C:\Inetpub\wwwroot\cacti\plugins\monitor\monitor.sql is now:
ALTER TABLE host ADD monitor char(3) default 'on' not null AFTER disabled;
ALTER TABLE host ADD monitor_text text null AFTER monitor;
REPLACE INTO `user_auth_realm` VALUES (32, 1);
But I am still getting error after I am adding a new device. As soon as I hit "Create":
Error: Save Failed.
When I disable "monitor" plug-in in C:\Inetpub\wwwroot\cacti\include\global.php
I am able to save new device, again.
Could it be the "monitor" plugin configuration?
[/img]
Error: Save Failed Device
I had the same issue after upgrading to 0.8.7e. I had to disable the wmi plugin and that fixed my problem.
# vi /var/www/html/include/global.php
//$plugins[] = 'wmi';
Ron
# vi /var/www/html/include/global.php
//$plugins[] = 'wmi';
Ron
I have the same problem
I have this same problem, and when I disable WMI it works fine for me, but I need to use WMI on my network, I have many win32 servers to monitor using WMI.
Any solution to resolve this problem with WMI???
I m on 0.8.7e version.
Any solution to resolve this problem with WMI???
I m on 0.8.7e version.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Blob fields can not have a blank as a default. This might be an old version of monitor.
TheWitness
Http://docs.cacti.net has all the latest
TheWitness
Http://docs.cacti.net has all the latest
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 0 guests