[withdrawn] Poller Performance Plugin, now at V0.32

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

I see the first two lines PollPerf STARTING and PollPerf ENDING, but i do not see the parser running.

My settings on the Misc tab are as follows:

Enable automatic Log Verbosity Management for PollPerf==Yes
Starting Time (Log Verbosity will be switched to DEBUG)==15:25
Number of DEBUG Cycles==10

Those are the only settings that i have. Also, since enabling the PollerPerf Plugin, i get the following at the top of EVERY cacti page visit:

Code: Select all

Notice: Undefined index: settings.php: in E:\cacti\lib\functions.php on line 1422
If i comment out the PollPerf plugin, that message goes away.

Thanks again

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I've found an error. Please find the newest version attached to first post
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

apperrault wrote:... Also, since enabling the PollerPerf Plugin, i get the following at the top of EVERY cacti page visit:

Code: Select all

Notice: Undefined index: settings.php: in E:\cacti\lib\functions.php on line 1422
If i comment out the PollPerf plugin, that message goes away.
I can't understand this one. I double checked to have the correct $nav code in my plugin. And the error message seems to tell us, that the $nav["settings.php"] is missing. But this is part of default cacti 0.8.6j code. Please check file ./lib/functions.php line 1403 to read

Code: Select all

		"settings.php:" => array("title" => "Cacti Settings", "mapping" => "index.php:", "url" => "settings.php", "level" => "1"),
Reinhard
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Thanks for the help Gandolf. With the new version you posted, i got the poller performance numbers.

As for the other issue, my functions.php file is the same as what you posted it should be. I will probably keep the performance plugin disabled for the most part, and just enable it and run it once a week to make sure that things are still running OK.

Thanks for the help.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

apperrault wrote:As for the other issue, my functions.php file is the same as what you posted it should be. I will probably keep the performance plugin disabled for the most part, and just enable it and run it once a week to make sure that things are still running OK.
I tried to figure it out to no avail. I can't imagine why this occurs; sorry
Reinhard
sarvaid
Posts: 4
Joined: Wed Apr 20, 2005 1:21 pm

SQL Tables Missing

Post by sarvaid »

I've been searching the forums with no luck on this one.

I have the poller installed, and it runs, but it does not update the MySQL Database with a table.

Here are the errors

Code: Select all

 04/03/2007 11:19:55 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO plugin_pollperf_data ( `id`, `lstart`, `lend`, `ds_count`, `diff`, `rate`, `ds_per_run`, `dur_per_run`) VALUES ('124', '2007-04-03 00:00:00', '2007-04-03 00:00:00', '', '', 'None', 'None', 'None')"
04/03/2007 11:19:55 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO plugin_pollperf_data ( `id`, `lstart`, `lend`, `ds_count`, `diff`, `rate`, `ds_per_run`, `dur_per_run`) VALUES ('123', '2007-04-03 00:00:00', '2007-04-03 00:00:00', '', '', 'None', 'None', 'None')"
04/03/2007 11:19:55 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO plugin_pollperf_data ( `id`, `lstart`, `lend`, `ds_count`, `diff`, `rate`, `ds_per_run`, `dur_per_run`) VALUES ('121', '2007-04-03 00:00:00', '2007-04-03 00:00:00', '', '', 'None', 'None', 'None')"
04/03/2007 11:19:55 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO plugin_pollperf_data ( `id`, `lstart`, `lend`, `ds_count`, `diff`, `rate`, `ds_per_run`, `dur_per_run`) VALUES ('120', '2007-04-03 00:00:00', '2007-04-03 00:00:00', '', '', 'None', 'None', 'None')"

Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - CMD.php
Server Info - Linux 2.6.9-1.667smp
Web Server - Apache/2.0.52 (Fedora)
PHP - 4.3.9
PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, mysql, snmp
MySQL - 3.23.58
RRDTool - 1.0.49
SNMP - 5.2.1.2
Plugins
  • Host Info (hostinfo - v0.1)
    Poller Performance Report (pollperf - v0.32)
    rrdclean (RRD Cleaner - v1.2 (Hack Gilles Boulon))
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please perform and check:

Code: Select all

$ grep POLLPERF ./log/cacti.log 
03/30/2007 06:35:03 PM - POLLPERF: Poller[0] PollPerf STARTING
03/30/2007 07:25:04 PM - POLLPERF: Poller[0] PollPerf ENDING: 2
03/30/2007 07:25:37 PM - POLLPERF: Poller[0] Poller Performance Parser is now running
03/30/2007 07:25:37 PM - POLLPERF: Poller[0] Poller Performance Parser has finished
You should see exactly this result, timestamps will vary. And please report your "Settings -> Misc" for this plugin.
Reinhard
ogiljae
Posts: 19
Joined: Wed Apr 04, 2007 11:15 pm

how to install a lot of plugins including Reports

Post by ogiljae »

hlep me
I can see now report menu on consloe but it doesn't work properly
Do I need to do something with Mysql server. I cann't figure it out..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please perform the command shown in the previous post and post the results. Then, please show us the list of all tables in database "cacti"
Reinhard
dawald
Posts: 22
Joined: Wed Feb 02, 2005 5:26 pm
Location: Zurich, Switzerland

Post by dawald »

gandalf:

Thank you so much for this really wonderful plugin. Finally I'm able to trace down my bottlenecks in the polling-cycle!

cheers :lol:
changsung
Posts: 17
Joined: Wed Feb 21, 2007 10:26 am
Contact:

Post by changsung »

I am not seeing any posted stats.

My server is configure as

Cacti Version 0.8.7
Plugin Architecture 1.3
Poller Type Cactid v
Server Info Linux 2.6.18-8.el5
Web Server Apache/2.2.3 (Red Hat)
PHP Version 5.1.6
MySQL Version 5.0.22
RRDTool Version 1.2.23

Poller Performance Report (pollperf - v0.32)


And "grep POLLPERF cacti.log" show only

11/07/2007 02:54:18 PM - POLLPERF: Poller[0] PollPerf cycles:
11/07/2007 02:59:17 PM - POLLPERF: Poller[0] PollPerf cycles:
11/07/2007 03:04:17 PM - POLLPERF: Poller[0] PollPerf cycles:

It is not shwoing me the starting and finishing messages.

Dose this version work for 0.8.7?

Thanks
changsung
Posts: 17
Joined: Wed Feb 21, 2007 10:26 am
Contact:

Post by changsung »

I ran this command and I get follwing messages.
-------------------------------------------------------------------
# php pollperf_parse.php

PHP Fatal error: Call to undefined function cacti_log() in /cacti/plugins/pollperf/pollperf_parse.php on line 339


Line 339 is
cacti_log("Poller Performance Parser is now running", true, "POLLPERF");
-----------------------------------------------------------------------------
Can some one tell me how fix this problem?
changsung
Posts: 17
Joined: Wed Feb 21, 2007 10:26 am
Contact:

Post by changsung »

I found out that "plugin_pollperf_debug_cycles" was missing from seetings table.
After I add plugin_pollperf_debug_cycles into settings table, I see the PollPerf cysles number is decreasing but no other information on log file.

11/09/2007 10:04:19 AM - POLLPERF: Poller[0] PollPerf cycles: 4
11/09/2007 10:04:19 AM - POLLPERF: Poller[0] PollPerf cycles: 3
11/09/2007 10:04:19 AM - POLLPERF: Poller[0] PollPerf cycles: 2
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you import the provided SQL file? To be honest, I did not check with 087 and PIA1.3 yet
Reinhard
changsung
Posts: 17
Joined: Wed Feb 21, 2007 10:26 am
Contact:

Post by changsung »

/cacti/plugins/pollperf]# ls -lrt
-rw-r--r-- 1 cactiuser cacti 15237 Dec 11 2006 LICENSE
-rw-r--r-- 1 cactiuser cacti 679 Mar 13 2007 inc_pollperf_filter_table.php
-rw-r--r-- 1 cactiuser cacti 8485 Mar 14 2007 pollperf.php
-rw-r--r-- 1 cactiuser cacti 7843 Mar 30 2007 setup.php
-rw-r--r-- 1 cactiuser cacti 2714 Mar 30 2007 README
-rw-r--r-- 1 cactiuser cacti 11339 Nov 9 14:37 pollperf_parse.php
**
I do not see any sql files
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests