Ping history (PiHI) plugin

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Ping history (PiHI) plugin

Post by macan »

Hi,
I prepared small plugin for collecting ping response from poller. It could be sometimes usefull.

You need only install and allow for hosts (Console -> devices -> Edit host -> enable Ping History

Download:
https://github.com/xmacan/plugin_pihi
Attachments
Screenshot
Screenshot
Screenshot-2018-6-28 Console - Pihi.png (31.99 KiB) Viewed 9811 times
Last edited by macan on Tue Mar 19, 2019 3:33 pm, edited 1 time in total.
Let the Cacti grow!
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Ping history (PiHI) plugin

Post by netniV »

Another useful plugin :)
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
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Ping history (PiHI) plugin

Post by camerabob »

Which version of Cacti does this run under? 8.8.x or 1.x?
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Ping history (PiHI) plugin

Post by netniV »

As it's macan, I'm guessing 1.x
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
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Ping history (PiHI) plugin

Post by macan »

camerabob wrote:Which version of Cacti does this run under? 8.8.x or 1.x?
for 1.x. I don't want go back to 0.8.x.
Let the Cacti grow!
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Ping history (PiHI) plugin

Post by macan »

netniV wrote:Another useful plugin :)
Thank you! For me is PiHi very useful thing too :-)
Let the Cacti grow!
lss
Posts: 6
Joined: Tue Dec 11, 2018 3:19 am

Re: Ping history (PiHI) plugin

Post by lss »

Thank you very much!
mrossTTX
Cacti User
Posts: 114
Joined: Wed Dec 07, 2022 12:49 pm

Re: Ping history (PiHI) plugin

Post by mrossTTX »

ive had this installed on my 1.2.22 cacti for almost 24 hours and i am seeing no data for the hosts i enabled this on. suggestions?
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Ping history (PiHI) plugin

Post by macan »

Did you enable pihi for specific hosts?
pihi.png
pihi.png (64.17 KiB) Viewed 2281 times
Let the Cacti grow!
mrossTTX
Cacti User
Posts: 114
Joined: Wed Dec 07, 2022 12:49 pm

Re: Ping history (PiHI) plugin

Post by mrossTTX »

yes i did. i decided on the cacti server to re apply read\write perms on the plugin directory and that seems to have fixed it.
mrossTTX
Cacti User
Posts: 114
Joined: Wed Dec 07, 2022 12:49 pm

Re: Ping history (PiHI) plugin

Post by mrossTTX »

FYI i have this working .
are there any plans to add the ability to turn this on for a group of hosts at a time instead of going into each individual host to collect this info?
maybe on the device management page drop down menu as shown?
Attachments
cactimenu.JPG
cactimenu.JPG (37.19 KiB) Viewed 2188 times
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Ping history (PiHI) plugin

Post by macan »

Good idea. Adding to my todo list
Let the Cacti grow!
mrossTTX
Cacti User
Posts: 114
Joined: Wed Dec 07, 2022 12:49 pm

Re: Ping history (PiHI) plugin

Post by mrossTTX »

awesome!
i love the plug in and adding the history to a couple hundred or a thousand host after the fact would be a big feat LOL
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Ping history (PiHI) plugin

Post by macan »

If you need enable for all host. You can do it easily via SQL comand:
update host set pihi_days =7;

It enables history for all devices for 7 days.

Is it possible set it up to 99 days
Let the Cacti grow!
mojim
Posts: 1
Joined: Tue Jan 24, 2023 11:51 am

Re: Ping history (PiHI) plugin

Post by mojim »

A useful addon, I will definitely add it to my list.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests