Pings - Cacti 1.1.27

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
networkguy
Posts: 2
Joined: Fri Jan 05, 2018 11:28 am

Pings - Cacti 1.1.27

Post by networkguy »

Hello,

We just built a new cacti server and I'm looking for the best way to graph latency to my remote routers. We previously ran a very old version of Cacti and used a template called "Advanced Ping" - it had a similar look and feel to SmokePing, this worked great. However on the new server, I get the error below when I try to use that same template:


2018/01/05 10:13:03 - CMDPHP PHP ERROR Backtrace: (/script_server.php: 223 call_user_func_array)(ss_fping)(/scripts/ss_fping.php: 72 split)(CactiErrorHandler)(/lib/functions.php: 4416 cacti_debug_backtrace)
2018/01/05 10:13:03 - ERROR PHP DEPRECATED: Function split() is deprecated in file: /var/www/html/cacti-1.1.27/scripts/ss_fping.php on line: 72


Are there any new templates that people would recommend to graph latency?

Any help is appreciated, thanks!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Pings - Cacti 1.1.27

Post by netniV »

In this case, the primary issue is that split is now depreciated in PHP in favour of implode/explode:
http://php.net/manual/en/function.split.php

If you can link me to the template or scripts that you have, I can test out bringing it to the modern era but no promises I will succeed ;-)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
networkguy
Posts: 2
Joined: Fri Jan 05, 2018 11:28 am

Re: Pings - Cacti 1.1.27

Post by networkguy »

netniV wrote:In this case, the primary issue is that split is now depreciated in PHP in favour of implode/explode:
http://php.net/manual/en/function.split.php

If you can link me to the template or scripts that you have, I can test out bringing it to the modern era but no promises I will succeed ;-)
I was just coming back to say that I figured it out, came to same conclusion you did - thanks for the feedback

Replaced two references of "split" with "explode" - works great now!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest