EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6g
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Wed Nov 24, 2010 8:50 am
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hey everyone,
I'm having some trouble getting this graph to work. I'm running Cacti 0.8.7g on a W2K server using IIS. I have attached copies of the readout from putting the graph and data source into debug mode. To be honest it all looks like Greek to me. I have noticed that the C:/Inetpub/Cacti/rra/clem-k-poc01_min_1851.rrd file does not exist. I have other graphs that are working fine so there shouldn't be a problem with creating .rrd files in general. I have looked in the Cacti Log File but it is huge and I may be missing something. Any help would be greatly appreciated!
I'm having some trouble getting this graph to work. I'm running Cacti 0.8.7g on a W2K server using IIS. I have attached copies of the readout from putting the graph and data source into debug mode. To be honest it all looks like Greek to me. I have noticed that the C:/Inetpub/Cacti/rra/clem-k-poc01_min_1851.rrd file does not exist. I have other graphs that are working fine so there shouldn't be a problem with creating .rrd files in general. I have looked in the Cacti Log File but it is huge and I may be missing something. Any help would be greatly appreciated!
- Attachments
-
- Graph Debug.txt
- (2.61 KiB) Downloaded 376 times
-
- Data Source Debug.txt
- (662 Bytes) Downloaded 307 times
- Hello. My name is Inigo Montoya. You killed my father. Prepare to die.
-
- Posts: 4
- Joined: Tue Jun 28, 2011 5:06 am
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
The template works fine for me.
But i have a little problem.
The png shows the statistics but when i click on it to see the details (Hourly,Daily,etc) it doesn't shows any graph.
It seems like it does not generate them.
Does anyone know how to fix that?
Thanks
But i have a little problem.
The png shows the statistics but when i click on it to see the details (Hourly,Daily,etc) it doesn't shows any graph.
It seems like it does not generate them.
Does anyone know how to fix that?
Thanks
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Working here. Have you check if not a general cacti problem?
-
- Posts: 2
- Joined: Wed Nov 24, 2010 8:50 am
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
I rebuilt the poller chache and everything is working great now!
- Hello. My name is Inigo Montoya. You killed my father. Prepare to die.
Re:
You sure the packet loss works properly with your version? For example in this attached file, it was down in the gap yet nothing to visually indicate the loss.yreddy wrote:Hi,
I've made an alternate version of the Advanced Ping template with the following changes:
- y axis displays seconds instead of milliseconds
- Packet loss displayed as a normal line and not a full vertical bar (except for 100% packet loss)
| 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 |
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Followup.
Even the latest version found buried in this thread (not the yreddy modified one), doesn't display red vertical bars when there is complete ping failure. Who wants to fix it?
Even the latest version found buried in this thread (not the yreddy modified one), doesn't display red vertical bars when there is complete ping failure. Who wants to fix it?
| 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 |
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Look my previous post:
http://forums.cacti.net/viewtopic.php?f ... &start=435
http://forums.cacti.net/viewtopic.php?f ... &start=435
BSOD2600 wrote:Followup.
Even the latest version found buried in this thread (not the yreddy modified one), doesn't display red vertical bars when there is complete ping failure. Who wants to fix it?
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hi,
I don't have time to work on it right now but I will get to it...
However, I think the issue might be related with the "Downed Device Detection" feature of Cacti. If Cacti detects the device is down, it may decide to stop polling (including the polls related with advanced ping). I would suggest you to try the following workaround:
1) Deactivate the "Downed Device Detection" of the specific host (setting it to "None")
2) OR (to troubleshoot only) - deactivate icmp response on a specific host by using a firewall or other means. This would permit to isolate the behaviour of specific advanced ping graph and then see if it will reports red bars instead of gaps...
cheers
I don't have time to work on it right now but I will get to it...
However, I think the issue might be related with the "Downed Device Detection" feature of Cacti. If Cacti detects the device is down, it may decide to stop polling (including the polls related with advanced ping). I would suggest you to try the following workaround:
1) Deactivate the "Downed Device Detection" of the specific host (setting it to "None")
2) OR (to troubleshoot only) - deactivate icmp response on a specific host by using a firewall or other means. This would permit to isolate the behaviour of specific advanced ping graph and then see if it will reports red bars instead of gaps...
cheers
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
I've been doing a lot of digging on this one but now have graphs that work nicely!
1) Fixed it so the line isn't always green when packet loss isn't 0%
2) Shows a block of colour when the host is down. This isn't happening because when the host is detected as down it isn't polled, as yreddy suspected. Not good to just turn host down detection off as it stops things like the monitor plugin working. When not polling Nan is returned, so I have created a CDEF that will convert this to a number, to then be graphed
What is the best way I share this? On here, then yreddy can update his template on the wiki? Step by step what I did in the interface AND/OR the new template?
1) Fixed it so the line isn't always green when packet loss isn't 0%
2) Shows a block of colour when the host is down. This isn't happening because when the host is detected as down it isn't polled, as yreddy suspected. Not good to just turn host down detection off as it stops things like the monitor plugin working. When not polling Nan is returned, so I have created a CDEF that will convert this to a number, to then be graphed
What is the best way I share this? On here, then yreddy can update his template on the wiki? Step by step what I did in the interface AND/OR the new template?
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
shelluk: Export the template with all dependencies and upload it. yreddy can fix the first post of this thread with the latest package.
| 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 |
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hi
hopefully could anyone (TheWitness?) look into my post as i can't send PM's http://forums.cacti.net/viewtopic.php?f ... 27#p223827
is regarding ss_fping.php on a synology nas.
hopefully could anyone (TheWitness?) look into my post as i can't send PM's http://forums.cacti.net/viewtopic.php?f ... 27#p223827
is regarding ss_fping.php on a synology nas.
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hello.
I am running Cacti 0.8.7i and have a problem running the Advanced Ping script.
I have imported the template (v2.2) from this post but have not changed the cacti_dir/lib/ss_fping.php file since I figured the one included in the distribution would be the latest version.
Is this indeed the case or I have to download the one posted here?
In any case I have created a test device to try the ping script. Judging from the logs the script seems to get executed correctly but the rrd file does not seem to get updated.
The graph is empty and a part of the logs can be seen below:
01/03/2012 02:20:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/wamp/bin/php/php5.3.8/php.exe, ARGS: -q "c:/wamp/www/reaction-nms/cmd.php" 0 2]
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/wamp/www/reaction-nms
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/wamp/www/reaction-nms
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: FILENM: C:\wamp\www\reaction-nms\script_server.php
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
01/03/2012 02:20:02 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
01/03/2012 02:20:02 PM - CMDPHP: Poller[0] Host[2] PING: TCP Ping Success (0.63 ms)
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: PID[3236] CTR[0] INC: 'ss_fping.php' FUNC: 'ss_fping' PARMS: '209.85.229.105 5 ICMP'
01/03/2012 02:20:03 PM - PHPSVR: Poller[0] DEBUG: PID[3236] CTR[0] RESPONSE:'min:74.0000 avg:75.0000 max:76.0000 dev:0.6325 loss:0.0000'
01/03/2012 02:20:03 PM - CMDPHP: Poller[0] Host[2] DS[16] SERVER: C:/wamp/www/reaction-nms/scripts/ss_fping.php ss_fping 209.85.229.105 5 ICMP , output: min:74.0000 avg:75.0000 max:76.0000 dev:0.6325 loss:0.0000
01/03/2012 02:20:03 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'min:74.0000' [map min->min]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'avg:75.0000' [map avg->avg]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'max:76.0000' [map max->max]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'dev:0.6325' [map dev->dev]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'loss:0.0000' [map loss->loss]
01/03/2012 02:20:03 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\wamp\www\reaction-nms\rra\google_loss_16.rrd --template min:avg:max:dev:loss 1325593202:74.0000:75.0000:76.0000:0.6325:0.0000
Can you find any error in the logs explaining why the graph is empty or is there another reason for that?
The installation is on Win7, the acc running the poller has administrative rights and has access to the db and the rrd file.
Thanks in advance.
George
I am running Cacti 0.8.7i and have a problem running the Advanced Ping script.
I have imported the template (v2.2) from this post but have not changed the cacti_dir/lib/ss_fping.php file since I figured the one included in the distribution would be the latest version.
Is this indeed the case or I have to download the one posted here?
In any case I have created a test device to try the ping script. Judging from the logs the script seems to get executed correctly but the rrd file does not seem to get updated.
The graph is empty and a part of the logs can be seen below:
01/03/2012 02:20:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/wamp/bin/php/php5.3.8/php.exe, ARGS: -q "c:/wamp/www/reaction-nms/cmd.php" 0 2]
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/wamp/www/reaction-nms
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/wamp/www/reaction-nms
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: FILENM: C:\wamp\www\reaction-nms\script_server.php
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
01/03/2012 02:20:02 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
01/03/2012 02:20:02 PM - CMDPHP: Poller[0] Host[2] PING: TCP Ping Success (0.63 ms)
01/03/2012 02:20:02 PM - PHPSVR: Poller[0] DEBUG: PID[3236] CTR[0] INC: 'ss_fping.php' FUNC: 'ss_fping' PARMS: '209.85.229.105 5 ICMP'
01/03/2012 02:20:03 PM - PHPSVR: Poller[0] DEBUG: PID[3236] CTR[0] RESPONSE:'min:74.0000 avg:75.0000 max:76.0000 dev:0.6325 loss:0.0000'
01/03/2012 02:20:03 PM - CMDPHP: Poller[0] Host[2] DS[16] SERVER: C:/wamp/www/reaction-nms/scripts/ss_fping.php ss_fping 209.85.229.105 5 ICMP , output: min:74.0000 avg:75.0000 max:76.0000 dev:0.6325 loss:0.0000
01/03/2012 02:20:03 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'min:74.0000' [map min->min]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'avg:75.0000' [map avg->avg]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'max:76.0000' [map max->max]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'dev:0.6325' [map dev->dev]
01/03/2012 02:20:03 PM - POLLER: Poller[0] Parsed MULTI output field 'loss:0.0000' [map loss->loss]
01/03/2012 02:20:03 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\wamp\www\reaction-nms\rra\google_loss_16.rrd --template min:avg:max:dev:loss 1325593202:74.0000:75.0000:76.0000:0.6325:0.0000
Can you find any error in the logs explaining why the graph is empty or is there another reason for that?
The installation is on Win7, the acc running the poller has administrative rights and has access to the db and the rrd file.
Thanks in advance.
George
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
After a couple of days I have revisited my problem and everything seemed to work fine - the graph was getting updated without any problem.
I created another graph for a different IP just to make sure that all is OK. The graph did not get updated even though the same entries were being printed in the log file.
I get the impression that this graph might also get updated after a restart of my PC (I restarted apache and mysql but that did not solve the problem).
Has anyone else encountered this behavior before?
Thanks.
George
I created another graph for a different IP just to make sure that all is OK. The graph did not get updated even though the same entries were being printed in the log file.
I get the impression that this graph might also get updated after a restart of my PC (I restarted apache and mysql but that did not solve the problem).
Has anyone else encountered this behavior before?
Thanks.
George
-
- Posts: 1
- Joined: Tue Feb 07, 2012 4:47 pm
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Packet loss is being returned and I'm unable to reproduce packet loss outside of Cacti. Has anyone else seen this or can offer suggestions on troubleshooting?
Cacti.log
CMDPHP: Poller[0] Host[15] DS[92] SERVER: E:/inetpub/cacti/scripts/ss_fping.php ss_fping 10.1.10.2 20 ICMP , output: min:13.0000 avg:14.0526 max:19.0000 dev:1.2762 loss:5.0000
Cacti.log
CMDPHP: Poller[0] Host[15] DS[92] SERVER: E:/inetpub/cacti/scripts/ss_fping.php ss_fping 10.1.10.2 20 ICMP , output: min:13.0000 avg:14.0526 max:19.0000 dev:1.2762 loss:5.0000
Cacti Version - 0.8.7i
Plugin Architecture - 3.1
Poller Type - CMD.php
Server Info - Windows NT 6.1
Web Server - Microsoft-IIS/7.5
PHP - 5.2.14
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
5% loss = 1 failed in 20 triessend2brian wrote: CMDPHP: Poller[0] Host[15] DS[92] SERVER: E:/inetpub/cacti/scripts/ss_fping.php ss_fping 10.1.10.2 20 ICMP , output: min:13.0000 avg:14.0526 max:19.0000 dev:1.2762 loss:5.0000
Is that a severe situation?
Default timeout value on Cacti (400ms) is shorter than Windows ping.exe (4000ms?).
If you worry about packet loss, increase the timeout.
Who is online
Users browsing this forum: No registered users and 2 guests