Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Dec 16, 2018 1:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Pings - Cacti 1.1.27
PostPosted: Fri Jan 05, 2018 11:35 am 
Offline

Joined: Fri Jan 05, 2018 11:28 am
Posts: 2
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!


Top
 Profile  
 
 Post subject: Re: Pings - Cacti 1.1.27
PostPosted: Fri Jan 05, 2018 12:53 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
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 ;-)

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Pings - Cacti 1.1.27
PostPosted: Fri Jan 05, 2018 1:24 pm 
Offline

Joined: Fri Jan 05, 2018 11:28 am
Posts: 2
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group