Advanced Ping Script 1.3 stopped giving correct readouts

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
godfreyho666
Posts: 2
Joined: Tue Jul 05, 2022 9:15 am

Advanced Ping Script 1.3 stopped giving correct readouts

Post by godfreyho666 »

Hi,

I've installed Cacti using BSOD2600's installer - running version 1.2.20 here under Windows 10. I was able to configure it properly, had some stock ICMP ping statistics graphs not being properly displayed - so I switched to Advanced Ping Template v1.3.

The problem I have is that Advanced Ping Template 1.3 stopped giving appropriate readouts and the RRD file is being filled with zeroes instead. This also affects graphs - they do not show anything. Strange thing is that it worked for almost a week and seemed to break down only after I started adding additional SNMP graphs to the devices.

The SNMP part works fine though and I'm able to retrieve and visualise things like traffic statistics.

As far as my underunderstanding goes, the problem lies somewhere in the ss_fping.php script:

1. I've noticed that no parameters are passed inside the ss_fping.php, whereas I suppose they should be:

Code: Select all

2022-07-05 15:02:04 - PHPSVR DEBUG: PID[10788] CTR[0] RESPONSE:'min:0.0000 avg:0.0000 max:0.0000 dev:0.0000 loss:0.0000'
2022-07-05 15:02:04 - PHPSVR DEBUG: PID[10788] CTR[0] INC: 'ss_fping.php' FUNC: 'ss_fping' PARMS: ''
2022-07-05 15:02:04 - POLLER: Poller[Main Poller] PID[9396] Device[SWI Nasielsk] STATUS: Device '10.10.203.1' is UP.
2022-07-05 15:02:04 - PING Device[SWI Nasielsk] PING: ICMP Ping Success (0 ms)
2022-07-05 15:02:04 - POLLER: Poller[Main Poller] PID[9396] PHP Script Server Started Properly
2022-07-05 15:02:04 - PHPSVR PHP Script Server has Started - Parent is cmd
2022-07-05 15:02:04 - PHPSVR DEBUG: FILENM: C:\Apache24\htdocs\cacti\script_server.php
2022-07-05 15:02:04 - PHPSVR DEBUG: DIRNAM: c:/apache24/htdocs/cacti
2022-07-05 15:02:04 - PHPSVR DEBUG: GETCWD: c:/apache24/htdocs/cacti
2022-07-05 15:02:04 - PHPSVR DEBUG: SERVER: cmd PARENT:
2022-07-05 15:02:04 - POLLER: Poller[Main Poller] PID[5316] Processing Poller Output with 40000 maximum items to be processed
2022-07-05 15:02:03 - POLLER: Poller[Main Poller] PID[9396] Forcing poller to 1
2022-07-05 15:02:03 - POLLER: Poller[Main Poller] PID[7796] NOTE: There are no items in your poller for this polling cycle!
2022-07-05 15:02:03 - POLLER: Poller[Main Poller] PID[7796] Forcing poller to 1
2022-07-05 15:02:03 - POLLER: Poller[Main Poller] PID[5316] Processing Poller Output with 40000 maximum items to be processed
2022-07-05 15:02:02 - POLLER: Poller[Main Poller] PID[5316] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q "c:/apache24/htdocs/cacti/cmd.php" --poller=1 --first=30 --last=30 --mibs]
2022-07-05 15:02:02 - POLLER: Poller[Main Poller] PID[5316] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q "c:/apache24/htdocs/cacti/cmd.php" --poller=1 --first=0 --last=0 --mibs]
2022-07-05 15:02:02 - POLLER: Poller[Main Poller] PID[5316] NOTE: Poller Int: '60', Scheduled Task Int: '60', Time Since Last: '60.65', Max Runtime '58', Poller Runs: '1'
2022-07-05 15:01:43 - WEBUI NOTE: Cacti Log file C:/Apache24/htdocs/cacti/log/cacti.log, Removed by user admin
2022-07-05 15:01:43 - WEBUI NOTE: Cacti Log Cleared from Web Management Interface.
2. When I run ss_fping.php manually and provide additional parameters, everything works as it should, i.e.:

Code: Select all

C:\Apache24\htdocs\cacti\scripts>php ss_fping.php 10.10.203.1 20 ICMP
min:0.0000 avg:0.1500 max:2.0000 dev:0.4770 loss:0.0000
Any ideas how to fix the passing of parameters to PHP script OR how to circumvent the problem?

Thanks in advance.
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Advanced Ping Script 1.3 stopped giving correct readouts

Post by TheWitness »

I would recommend that you 'repopulate the poller cache' and get to 1.2.21 or 1.2.22 ASAP. This means that the Data Input parameters have been dropped.

Code: Select all

2022-07-05 15:02:04 - PHPSVR DEBUG: PID[10788] CTR[0] INC: 'ss_fping.php' FUNC: 'ss_fping' PARMS: ''
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Advanced Ping Script 1.3 stopped giving correct readouts

Post by TheWitness »

Review your poller cache. It should include the hostname, the ping type, the number of pings, etc.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
godfreyho666
Posts: 2
Joined: Tue Jul 05, 2022 9:15 am

Re: Advanced Ping Script 1.3 stopped giving correct readouts

Post by godfreyho666 »

Thanks for quick reply,

regarding repopulating the poller cache - that's one of the first things I did when troubleshooting, but without success, unfortunately.

As for the poller cache, it looks exactly as the lines pasted in my post above, i.e. no trace of ping parameters:

Image
https://imgur.com/a/Tcn1wq6

Does upgrading to 1.21/22 require one to upgrade the PHP/MySQL as well, or will just replacing the htdocs/cacti suffice?

Thanks in advance.
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Advanced Ping Script 1.3 stopped giving correct readouts

Post by TheWitness »

The data source is broken. You may need to delete and recreate the graph. If you note the old rrdfile, you can copy it to the old one to preserve historical data.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests