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

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

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

#16 Post by apperrault » Fri Mar 30, 2007 1:57 pm

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#17 Post by gandalf » Fri Mar 30, 2007 3:45 pm

I've found an error. Please find the newest version attached to first post
Reinhard

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#18 Post by gandalf » Sat Mar 31, 2007 8:01 am

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: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#19 Post by apperrault » Mon Apr 02, 2007 11:09 am

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#20 Post by gandalf » Mon Apr 02, 2007 1:56 pm

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

#21 Post by sarvaid » Tue Apr 03, 2007 10:56 am

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#22 Post by gandalf » Tue Apr 03, 2007 10:58 am

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

#23 Post by ogiljae » Mon Apr 16, 2007 9:43 am

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#24 Post by gandalf » Mon Apr 16, 2007 1:12 pm

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

#25 Post by dawald » Tue Apr 17, 2007 4:46 pm

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:

#26 Post by changsung » Thu Nov 08, 2007 8:02 am

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:

#27 Post by changsung » Thu Nov 08, 2007 3:15 pm

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:

#28 Post by changsung » Fri Nov 09, 2007 10:15 am

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#29 Post by gandalf » Sat Nov 10, 2007 5:36 pm

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:

#30 Post by changsung » Mon Nov 12, 2007 11:23 am

/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