Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6g
Goto page Previous  1, 2, 3 ... 23, 24, 25
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
DinSoft



Joined: 07 Oct 2008
Posts: 1

PostPosted: Tue Oct 07, 2008 7:10 am    Post subject: Weird issue _ Reply with quote

Hi all,

I have an unexplained behaviour in Catci with the advanced ping plugin:

I am in Vietnam, and I am pinging a host in Switzerland.

There is no way that the RTT is less than 300 ms. It is actually very often over 500 ms. This is why I changed the ping timeout setting from the default 500 ms to 1000 ms.

But, on the graph, it looks like there are RTTs of < 100ms (around 16:00 and 18:00 - 18:20)

How can this happen ?

(I also paste here cacti's log file, without the SNMP data I gather from another device since it is probably irrelevant)



cacti-smokeping.PNG
 Description:
The bogus graph
 Filesize:  38.29 KB
 Viewed:  872 Time(s)

cacti-smokeping.PNG



cacti-log.txt
 Description:
Cacti's log file

Download
 Filename:  cacti-log.txt
 Filesize:  25.98 KB
 Downloaded:  22 Time(s)

Back to top
jhendrickson



Joined: 17 Oct 2008
Posts: 2

PostPosted: Fri Oct 17, 2008 2:17 pm    Post subject: Inconsistent graphs Reply with quote

I am getting inconsistent graphs using the Advanced Ping. I have a tcp ping to CNN on port 80 which doesn't graph anything but loss. I have other hosts like Yahoo and Google that graph just fine. I also have another graph that is not displaying anything.

Data Source Debug

/usr/bin/rrdtool create \
/usr/share/cacti/site/rra/cnn_tcp_loss_2277.rrd \
--step 300 \
DS:min:GAUGE:450:0:500 \
DS:dev:GAUGE:450:0:500 \
DS:max:GAUGE:450:0:500 \
DS:avg:GAUGE:450:0:500 \
DS:loss:GAUGE:450:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \

/usr/bin/rrdtool create \
/usr/share/cacti/site/rra/sprint_kc_ds3_loss_1862.rrd \
--step 300 \
DS:min:GAUGE:450:0:500 \
DS:dev:GAUGE:450:0:500 \
DS:loss:GAUGE:450:0:100 \
DS:avg:GAUGE:450:0:500 \
DS:max:GAUGE:450:0:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \



graph_image.php.png
 Description:
 Filesize:  29.03 KB
 Viewed:  666 Time(s)

graph_image.php.png



graph_image.php.png
 Description:
 Filesize:  28.51 KB
 Viewed:  666 Time(s)

graph_image.php.png


Back to top
jhendrickson



Joined: 17 Oct 2008
Posts: 2

PostPosted: Fri Oct 17, 2008 2:52 pm    Post subject: More Inconsistent Graphs Reply with quote

Running from the command line to another host I get different results. Also, the data listed at the bottom of the graph doesn't seem to match the graph.

/usr/share/cacti/site/scripts/ss_fping.php ss_fping sl-gw34-fw-6-0-TS9.sprintlink.net 20 ICMP
min:7.5800 avg:9.6450 max:27.1100 dev:4.6313 loss:0.0000



graph_image.php.png
 Description:
 Filesize:  40.04 KB
 Viewed:  661 Time(s)

graph_image.php.png


Back to top
jug



Joined: 10 Oct 2008
Posts: 2
Location: Italy

PostPosted: Wed Oct 29, 2008 5:57 am    Post subject: Changed Advanced Ping Templates Reply with quote

Thanks a lot for this Template it gave me the base to have Latency graphs inside my CACTI installation. I changed them a bit so that all Comments are visible and also that the "smoke" is visible in both directions max -> avg -> min.

I also changed the ss_fping.php so that it can run with a non privileged user, using the fping binary which has to be installed (this is better than using normal ping).

If your interested in this changed graph templates and the modified ss_fping.php I will attach the files exported from a CACTI version 0.8.6j to this post.

ATTENTION: I have seen an error in the exported graph TEMPLATE and changed the attachement (just of the 1 person which already downloaded it Please have a look at the version number of the file!



cacti_graph_template_ping_advanced_ping_v2_1.xml
 Description:
Cacti v0.8.6j Advanced Ping v2.1 Template

Download
 Filename:  cacti_graph_template_ping_advanced_ping_v2_1.xml
 Filesize:  41.26 KB
 Downloaded:  133 Time(s)


ss_fping.zip
 Description:
Modified ss_fping.php file using /usr/sbin/fping when called as not privileged user.

Download
 Filename:  ss_fping.zip
 Filesize:  1.56 KB
 Downloaded:  120 Time(s)

Back to top
ryusez



Joined: 28 Sep 2006
Posts: 20

PostPosted: Fri Oct 31, 2008 10:05 pm    Post subject: Reply with quote

can i import new advance ping 2.1 into 0.8.7b

or any one , had import experence ....

thank you
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 23, 24, 25
Page 25 of 25

 



Powered by phpBB © 2001, 2005 phpBB Group