SNMPTT/SYSLOG viewer Plugin for Cacti. v 1.4.3 (2009/02/06)
Moderators: Developers, Moderators
Problem with plugin
Hi
I've had 1.0.23b running for a few months without issues, and suddenly yesterday whenever I try to view the traps collected, it won't load. It just sits there at the "loading" screen, but never actually loads.
I saw that you posted a few updates (1.0.24b and 1.0.25b), so I thought I'd update to see if it fixed the problem.
Now whenever I install it Cacti totally breaks because PHP is throwing fatal errors.
This is the line logged by Apache:
The line in question should just append a string to the end of an array, but obviously it's not working.
To get Cacti working properly again, I had to disable the plugin in global.php and run on the SQL server.
I tried reverting back to 1.0.23b but it's the same thing.
Any ideas?
For reference, this is my setup:
I've had 1.0.23b running for a few months without issues, and suddenly yesterday whenever I try to view the traps collected, it won't load. It just sits there at the "loading" screen, but never actually loads.
I saw that you posted a few updates (1.0.24b and 1.0.25b), so I thought I'd update to see if it fixed the problem.
Now whenever I install it Cacti totally breaks because PHP is throwing fatal errors.
This is the line logged by Apache:
Code: Select all
PHP Fatal error: [] operator not supported for strings in /var/www/html/lib/plugins.php on line 33
To get Cacti working properly again, I had to disable the plugin in global.php and run
Code: Select all
DELETE FROM plugin_hooks WHERE name = 'snmptt';
I tried reverting back to 1.0.23b but it's the same thing.
Any ideas?
For reference, this is my setup:
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
Server Info - Linux 2.6.18-53.el5
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, json, ldap, mbstring, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, rrdtool, snmp
MySQL - 5.0.22-log
RRDTool - 1.2.23
SNMP - 5.3.1
Plugins
- Global Plugin Settings (settings - v0.5)
Thresholds (thold - v0.3.9)
Large Site Performane Booster for Cacti (boost - v1.8)
Host Info (hostinfo - v0.2)
Cycle Graphs (Cycle Graphs - v0.4)
Device Monitoring (monitor - v0.8.2)
Network Tools (tools - v0.3)
killspike (killspike - v0.1.0a)
Update Checker (update - v0.4)
Re: Problem with plugin
"same thing" - cacti don't work or snmptt plugin don't show ?lints wrote:...
I tried reverting back to 1.0.23b but it's the same thing.
...
1. You need dump all cacti db and plugin_snmptt* tables to different dumps.
2. Uninstall plugin.
3. Drop plugin_snmptt* tables if they still exists.
4. delete FROM plugin_realms where `plugin`= 'snmptt';
5. delete FROM plugin_hooks where `name`= 'snmptt';
6. delete FROM plugin_config where `directory`= 'snmptt';
7. delete FROM plugin_db_changes where `plugin`= 'snmptt';
----
After that you Cacti must work good.
If soo, try to install 1.0.23b , restore plugin_snmptt* dump and after that update do last version.
Sorry for my English.
I tried some another plugin (SuperLinks) and it seems to work properly.
I'm not entirely sure which hook in the snmptt plugin that's causing the error, so it's possible that SuperLinks isn't re-producing the situation that snmptt is.
For now I'll leave it disabled but I'll create the tables so snmptt can keep logging properly.
let me know if you get any ideas.
I'm not entirely sure which hook in the snmptt plugin that's causing the error, so it's possible that SuperLinks isn't re-producing the situation that snmptt is.
For now I'll leave it disabled but I'll create the tables so snmptt can keep logging properly.
let me know if you get any ideas.
I have spent 2 days for searches of a problem and was lost.
Can you help me by adding debugging string:
to /lib/plugins.php before line
and try to reproduce error. After that grep last few rows from logs like this and post it:
Can you help me by adding debugging string:
Code: Select all
cacti_log("name=[" . $hdata['name'] . "] file=[" . $hdata['file'] . "] func=[" . $hdata['function'] . "]", false, "LOG ERROR");
Code: Select all
$p[] = $hdata['name'];
10/11/2008 03:57:55 PM - LOG ERROR: Poller[0] name=[npc] file=[setup.php] func=[npc_config_arrays]
10/11/2008 03:57:55 PM - LOG ERROR: Poller[0] name=[ipm] file=[setup.php] func=[ipm_config_arrays]
10/11/2008 03:57:55 PM - LOG ERROR: Poller[0] name=[nettp] file=[setup.php] func=[nettp_config_arrays]
Here is a couple dozen lines from the end of the log.
Let me know if this helps.
Let me know if this helps.
Code: Select all
10/14/2008 09:27:11 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:11 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:11 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:11 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[manage_config_settings]
10/14/2008 09:27:11 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_form]
10/14/2008 09:27:11 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[manage_config_form]
10/14/2008 09:27:29 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:29 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:29 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:29 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:27:33 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:33 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:33 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:33 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:27:39 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:39 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:39 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:39 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:27:40 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:40 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:40 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:40 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:27:41 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:41 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:41 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:41 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:27:42 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:42 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:42 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:42 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:27:43 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:27:43 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:27:43 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:27:43 AM - LOG ERROR: Poller[0] name=[snmptt] file=[setup.php] func=[snmptt_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[manage_config_settings]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_form]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[manage_config_form]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[internal] file=[] func=[plugin_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[aggregate] file=[setup.php] func=[aggregate_config_arrays]
10/14/2008 09:28:06 AM - LOG ERROR: Poller[0] name=[manage] file=[setup.php] func=[plugin_manage_config_arrays]
I, for one, haven't been able to get *ANY* rules to work. I've resorted to using rules in SNMPTT's configuration to send alerts. The plugin is fantastic as far as being able to view SNMP traps, but the lack of documentation and less-than-intuitive rules options make it difficult to operate. I hope gthe continues to develop and improve this plugin as it has a TON of potential!
-
- Cacti User
- Posts: 141
- Joined: Thu Apr 10, 2008 6:52 pm
Rules not Working / Feature Request
I can't get the rules to work properly either, but I'm still on version ...24. I've yet to upgrade to ...25.
Also I think it is very strange that I can't double click on a trap and see the complete information in a popup window. It seems like a very simple feature that would have been incorporated in the first version. Can I make a request for that to be added in the next version?
Also I think it is very strange that I can't double click on a trap and see the complete information in a popup window. It seems like a very simple feature that would have been incorporated in the first version. Can I make a request for that to be added in the next version?
Who is online
Users browsing this forum: No registered users and 0 guests