problem compatibility Thold and new poller.php ???
Moderators: Developers, Moderators
problem compatibility Thold and new poller.php ???
Hello,
I try to set up a monitoring SNMP less than a minute and use Thold to detect problems.
I installed Cacti 0.8.7g. But when I try to make graphs less than a minute (change crontab to start the poller.php 3 times per minute and setting of Cacti), I have an RRD file that has three values by minute, but those values are the same. (rrrdtool update the RRD is run once per minute : saw on Cacti log).
[root@rufus log]# tail -f cacti.log | grep "/usr/bin/rrdtool update /cacti/0.8.7g/rra/router"
08/10/2011 09:36:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:13_TV:14_TV:01_TV:05_TV 1312961801:2781427:2267232:2267232:2266147:2782512:1493769:2781427:2267232:2267232:2202144:491414:2782512:2782512:2781427:2781427:2781427:2781427:2781427:2782512:2781427:2782512:1493769:2782512
08/10/2011 09:37:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:13_TV:14_TV:05_TV:01_TV 1312961861:2782512:2267232:2267232:2266147:2781427:1557772:2782512:2267232:2267232:2206483:519619:2782512:2781427:2782512:2782512:2782512:2782512:2782512:2781427:2782512:2781427:2781427:1557772
08/10/2011 09:38:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:09_TV:08_TV:10_TV:11_TV:14_TV:13_TV:12_TV:01_TV:05_TV 1312961922:2782512:2267232:2267232:2266147:2782512:1519804:2782512:2267232:2267232:2241196:513110:2781427:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2781427:1519804:2781427
08/10/2011 09:39:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:13_TV:14_TV:01_TV:05_TV 1312961982:2781427:2267232:2267232:2266147:2782512:1545840:2781427:2266147:2267232:2197804:478396:2781427:2781427:2781427:2781427:2781427:2781427:2781427:2782512:2781427:2781427:1545840:2782512
Thold check only values every minute. (saw on Cacti log)
08/10/2011 09:36:41 AM - SYSTEM THOLD STATS: Time:0.0134 Tholds:1 Hosts:0
08/10/2011 09:37:43 AM - SYSTEM THOLD STATS: Time:0.0139 Tholds:1 Hosts:0
08/10/2011 09:38:42 AM - THOLD: Threshold Breached ID: 5 DataTemplate: ALU - 23 chaines DataSource: 01_TV Type: High/Low Enabled: on Current: 1519804 High: Low: 2700000 Trigger: 3 Pollings SentTo:
08/10/2011 09:38:42 AM - SYSTEM THOLD STATS: Time:0.0585 Tholds:1 Hosts:0
08/10/2011 09:39:42 AM - THOLD: Threshold Breached ID: 5 DataTemplate: ALU - 23 chaines DataSource: 01_TV Type: High/Low Enabled: on Current: 1545840 High: Low: 2700000 Trigger: 3 Pollings SentTo:
08/10/2011 09:39:42 AM - SYSTEM THOLD STATS: Time:0.0564 Tholds:1 Hosts:0
To run the SNMP polling less than a minute, I applied the last file poller.php of Cacti 0.8.7g from the SVN (http://svn.cacti.net/viewvc/cacti/branc ... iew=markup). After, SNMP polling less than one minute working well (3 different values per minute)
But Thold did not work
I modified the 'poller.php' file by adding call function 'api_hook (poller_bottom)' at the end of the file and in the test 'sleep the appripriate Amount of time'. After this change, SNMP polling less than one minute and Thold worked well.
[adeipapp@rufus log]$ tail -f cacti.log | grep "update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd"
08/10/2011 08:33:22 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd --template 13_TV:02_TV:23_TV:19_TV:18_TV:17_TV:16_TV:20_TV:22_TV:21_TV:15_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:14_TV:12_TV:11_TV:01_TV:03_TV:05_TV 1313001202:2782512:2376796:2267232:2267232:2781427:1897315:2782512:2267232:2266147:2266147:2781427:2781427:2782512:2782512:2781427:2782512:2782512:2782512:2782512:2781427:1897315:1280064:2781427
08/10/2011 08:33:42 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd --template 13_TV:02_TV:23_TV:19_TV:18_TV:17_TV:16_TV:20_TV:22_TV:21_TV:15_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:14_TV:01_TV:05_TV:03_TV 1313001222:2782512:2185872:2266147:2267232:2782512:1439529:2781427:2267232:2267232:2267232:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2781427:2782512:1439529:2781427:490329
08/10/2011 08:34:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd --template 13_TV:02_TV:23_TV:19_TV:18_TV:17_TV:16_TV:20_TV:22_TV:21_TV:15_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:01_TV:14_TV:12_TV:11_TV:03_TV:05_TV 1313001242:2782512:2209737:2267232:2266147:2782512:1549094:2781427:2266147:2267232:2267232:2782512:2782512:2781427:2782512:2782512:2782512:2782512:1549094:2781427:2781427:2782512:502262:2781427
[adeipapp@rufus log]$ tail -f cacti.log | grep " Threshold Breached ID: 4 DataTemplate: ALU - 23 chaines DataSource: 01_TV"
08/10/2011 08:34:02 PM - THOLD: Threshold Breached ID: 4 DataTemplate: ALU - 23 chaines DataSource: 01_TV Type: High/Low Enabled: on Current: 1549094 High: 3000000 Low: 2758660 Trigger: 3 Pollings
Extract to thold_log table :
(10/08/2011 20:33:22) 1313001202 14 162 4 2758660 1897315 1 0 router - Sup TV 23 chaines [01_TV] went below th...
(10/08/2011 20:33:42) 1313001222 14 162 4 2758660 1439529 1 0 router - Sup TV 23 chaines [01_TV] went below th...
(10/08/2011 20:34:02) 1313001242 14 162 4 2758660 1549094 2 0 router - Sup TV 23 chaines [01_TV] went below th...
Will you tell me if this change configuration of poller.php file is ok for you?
Regards,
PS : sorry for my english
For information :
* Cacti : 0.8.7g (Plugin Architecture Version: 2.8 )
=> with plugins :
- settings version 0.7
- realtime version 0.4.3
- boost version 4.3
- aggregate version 0.75
- reportit version 0.7.3
- thold version 0.4.3
* MySQL : 5.5.9 (MySQL library version 5.1.39)
* NET-SNMP version: 5.3.2.2
* RRDTool : 1.4.x
* PHP Version : 5.2.11
I try to set up a monitoring SNMP less than a minute and use Thold to detect problems.
I installed Cacti 0.8.7g. But when I try to make graphs less than a minute (change crontab to start the poller.php 3 times per minute and setting of Cacti), I have an RRD file that has three values by minute, but those values are the same. (rrrdtool update the RRD is run once per minute : saw on Cacti log).
[root@rufus log]# tail -f cacti.log | grep "/usr/bin/rrdtool update /cacti/0.8.7g/rra/router"
08/10/2011 09:36:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:13_TV:14_TV:01_TV:05_TV 1312961801:2781427:2267232:2267232:2266147:2782512:1493769:2781427:2267232:2267232:2202144:491414:2782512:2782512:2781427:2781427:2781427:2781427:2781427:2782512:2781427:2782512:1493769:2782512
08/10/2011 09:37:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:13_TV:14_TV:05_TV:01_TV 1312961861:2782512:2267232:2267232:2266147:2781427:1557772:2782512:2267232:2267232:2206483:519619:2782512:2781427:2782512:2782512:2782512:2782512:2782512:2781427:2782512:2781427:2781427:1557772
08/10/2011 09:38:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:09_TV:08_TV:10_TV:11_TV:14_TV:13_TV:12_TV:01_TV:05_TV 1312961922:2782512:2267232:2267232:2266147:2782512:1519804:2782512:2267232:2267232:2241196:513110:2781427:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2781427:1519804:2781427
08/10/2011 09:39:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /cacti/0.8.7g/rra/router_16_tv_410.rrd --template 15_TV:21_TV:22_TV:20_TV:16_TV:17_TV:18_TV:19_TV:23_TV:02_TV:03_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:13_TV:14_TV:01_TV:05_TV 1312961982:2781427:2267232:2267232:2266147:2782512:1545840:2781427:2266147:2267232:2197804:478396:2781427:2781427:2781427:2781427:2781427:2781427:2781427:2782512:2781427:2781427:1545840:2782512
Thold check only values every minute. (saw on Cacti log)
08/10/2011 09:36:41 AM - SYSTEM THOLD STATS: Time:0.0134 Tholds:1 Hosts:0
08/10/2011 09:37:43 AM - SYSTEM THOLD STATS: Time:0.0139 Tholds:1 Hosts:0
08/10/2011 09:38:42 AM - THOLD: Threshold Breached ID: 5 DataTemplate: ALU - 23 chaines DataSource: 01_TV Type: High/Low Enabled: on Current: 1519804 High: Low: 2700000 Trigger: 3 Pollings SentTo:
08/10/2011 09:38:42 AM - SYSTEM THOLD STATS: Time:0.0585 Tholds:1 Hosts:0
08/10/2011 09:39:42 AM - THOLD: Threshold Breached ID: 5 DataTemplate: ALU - 23 chaines DataSource: 01_TV Type: High/Low Enabled: on Current: 1545840 High: Low: 2700000 Trigger: 3 Pollings SentTo:
08/10/2011 09:39:42 AM - SYSTEM THOLD STATS: Time:0.0564 Tholds:1 Hosts:0
To run the SNMP polling less than a minute, I applied the last file poller.php of Cacti 0.8.7g from the SVN (http://svn.cacti.net/viewvc/cacti/branc ... iew=markup). After, SNMP polling less than one minute working well (3 different values per minute)
But Thold did not work
I modified the 'poller.php' file by adding call function 'api_hook (poller_bottom)' at the end of the file and in the test 'sleep the appripriate Amount of time'. After this change, SNMP polling less than one minute and Thold worked well.
[adeipapp@rufus log]$ tail -f cacti.log | grep "update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd"
08/10/2011 08:33:22 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd --template 13_TV:02_TV:23_TV:19_TV:18_TV:17_TV:16_TV:20_TV:22_TV:21_TV:15_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:14_TV:12_TV:11_TV:01_TV:03_TV:05_TV 1313001202:2782512:2376796:2267232:2267232:2781427:1897315:2782512:2267232:2266147:2266147:2781427:2781427:2782512:2782512:2781427:2782512:2782512:2782512:2782512:2781427:1897315:1280064:2781427
08/10/2011 08:33:42 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd --template 13_TV:02_TV:23_TV:19_TV:18_TV:17_TV:16_TV:20_TV:22_TV:21_TV:15_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:11_TV:12_TV:14_TV:01_TV:05_TV:03_TV 1313001222:2782512:2185872:2266147:2267232:2782512:1439529:2781427:2267232:2267232:2267232:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2782512:2781427:2782512:1439529:2781427:490329
08/10/2011 08:34:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/application/eipapp/products/cacti/0.8.7g/rra/router_16_tv_410.rrd --template 13_TV:02_TV:23_TV:19_TV:18_TV:17_TV:16_TV:20_TV:22_TV:21_TV:15_TV:04_TV:06_TV:07_TV:08_TV:09_TV:10_TV:01_TV:14_TV:12_TV:11_TV:03_TV:05_TV 1313001242:2782512:2209737:2267232:2266147:2782512:1549094:2781427:2266147:2267232:2267232:2782512:2782512:2781427:2782512:2782512:2782512:2782512:1549094:2781427:2781427:2782512:502262:2781427
[adeipapp@rufus log]$ tail -f cacti.log | grep " Threshold Breached ID: 4 DataTemplate: ALU - 23 chaines DataSource: 01_TV"
08/10/2011 08:34:02 PM - THOLD: Threshold Breached ID: 4 DataTemplate: ALU - 23 chaines DataSource: 01_TV Type: High/Low Enabled: on Current: 1549094 High: 3000000 Low: 2758660 Trigger: 3 Pollings
Extract to thold_log table :
(10/08/2011 20:33:22) 1313001202 14 162 4 2758660 1897315 1 0 router - Sup TV 23 chaines [01_TV] went below th...
(10/08/2011 20:33:42) 1313001222 14 162 4 2758660 1439529 1 0 router - Sup TV 23 chaines [01_TV] went below th...
(10/08/2011 20:34:02) 1313001242 14 162 4 2758660 1549094 2 0 router - Sup TV 23 chaines [01_TV] went below th...
Will you tell me if this change configuration of poller.php file is ok for you?
Regards,
PS : sorry for my english
For information :
* Cacti : 0.8.7g (Plugin Architecture Version: 2.8 )
=> with plugins :
- settings version 0.7
- realtime version 0.4.3
- boost version 4.3
- aggregate version 0.75
- reportit version 0.7.3
- thold version 0.4.3
* MySQL : 5.5.9 (MySQL library version 5.1.39)
* NET-SNMP version: 5.3.2.2
* RRDTool : 1.4.x
* PHP Version : 5.2.11
- Attachments
-
- poller.txt
- here poller.php file modified
- (17.87 KiB) Downloaded 250 times
Last edited by fklopfen on Sun Aug 21, 2011 3:37 am, edited 3 times in total.
Re: problem compatibility Thold and new poller.php ???
ADDITIONAL INFORMATION:
I tested the 4.4.1 and 4.4.43 version Thold , Thold behavior was the same (no warning).
Can you tell me if this behavior is a bug ?
I tested the 4.4.1 and 4.4.43 version Thold , Thold behavior was the same (no warning).
Can you tell me if this behavior is a bug ?
Re: problem compatibility Thold and new poller.php ???
Thank you for your reply,
I tried upgrade/downgade Thold for my problem. The Thold behavior was the same.
After modification poller.php file of SVN Cacti/0.8.7g, I have no problem.
regards
I tried upgrade/downgade Thold for my problem. The Thold behavior was the same.
After modification poller.php file of SVN Cacti/0.8.7g, I have no problem.
regards
Last edited by fklopfen on Mon Sep 05, 2011 2:12 pm, edited 1 time in total.
Re: problem compatibility Thold and new poller.php ???
Hello ,
please, can you tell me your feedback on my poller.php modification file ?
Regards,
please, can you tell me your feedback on my poller.php modification file ?
Regards,
Re: problem compatibility Thold and new poller.php ???
Please someone could answer to this post because I did not have any explanation on this issue ?
In advance, thank you.
In advance, thank you.
Re: problem compatibility Thold and new poller.php ???
please, someone can give me a answer?
poller.php bug ? thold bug ? wrong cacti using ?
Rgds
poller.php bug ? thold bug ? wrong cacti using ?
Rgds
Re: problem compatibility Thold and new poller.php ???
Hello,
On the SVN, the revision 6298 of poller.php file are different between "cacti / cacti / branches / main/poller.php" and "cacti / cacti / branches / 0.8.7/poller.php".
In "0.8.7g" version, I explained the problem above. Looking at the version of the "main", there is the call function "poller_bottom" .
Why the difference, is this normal?
Rgds
On the SVN, the revision 6298 of poller.php file are different between "cacti / cacti / branches / main/poller.php" and "cacti / cacti / branches / 0.8.7/poller.php".
In "0.8.7g" version, I explained the problem above. Looking at the version of the "main", there is the call function "poller_bottom" .
Why the difference, is this normal?
Rgds
Last edited by fklopfen on Mon Sep 05, 2011 2:11 pm, edited 1 time in total.
[Solved] Re: problem compatibility Thold and new poller.php
Hello,
According to research on the functioning of Cacti and plugins, I found the problem. there is no real problem.
explanation:
- files on the SVN version 0.8.7g are the base of Cacti (without plugin)
- When adding the PIA, some base files of Cacti (poller.php, database.php, ...)are modified by adding functions PIA. These changes are used by plugins
the missing features discovery on poller.php file are those of PIA .
So there is no problem
Sorry to have made this post, but I began work on Cacti and I have not a comprehensive knowledge of the product.
Rgds,
According to research on the functioning of Cacti and plugins, I found the problem. there is no real problem.
explanation:
- files on the SVN version 0.8.7g are the base of Cacti (without plugin)
- When adding the PIA, some base files of Cacti (poller.php, database.php, ...)are modified by adding functions PIA. These changes are used by plugins
the missing features discovery on poller.php file are those of PIA .
So there is no problem
Sorry to have made this post, but I began work on Cacti and I have not a comprehensive knowledge of the product.
Rgds,
Who is online
Users browsing this forum: No registered users and 1 guest