A lot of people are interested in the availability in a graph, well there’s a script for that! It looks the same way as smokeping. With this graph i monitor my internet connections because i had a lot of downtime and I was interested to find a trend.
The ping script is bases on a separate PHP script which you need to call from CACTI, this script gives output and the output is graphed by CACTI.
First lets download the files PING cacti php and xml extract the files to a location. There are 3 files located in this zip file which are nessasary.
- ping.php needs to be overwritten with the downloaded one (on a Synology only!) because the Synology does not allows us to call the correct functions. Move this ping.php file to \cacti\lib
- ss_fping.php needs to be overwritten with the downloaded one if there is already a script. \cacti\scripts
- cacti_graph_template_ping_-_advanced_ping_2_2.xml needs to be imported by CACTI by the import template on the left column.
Next we need to add a device and make sure you can ping it on forehand
Choose from “assosiated graphs templates” the ping script and add it, now press the upper right “create graphs” It would ask you settings as ICMP / 20 but you can leave them default.
Under graph management we can find the just added graph, lets wait for 2 poller intervals (10minutes) and see if it works. If its displaying graphs SSH to your Synology and run this command from the CLI:
DiskStation> /usr/bin/php /volume1/web/cacti/scripts/ss_fping.php 220.127.116.11
min:14.0800 avg:15.1617 max:15.8300 dev:0.5419 loss:0.0000
It should report output and no errors, if your getting output the second step is to check if the CACTI poller also receives the output.
One other thing you can check is under graph management and search the graph, click on it and in the upper right corner click debug. It should give a RRDtool tool output which should be terminated with OK.