Board index

Cheshire Cat Software

Steve Shipway's Discussion Groups
Locations of visitors to this page
It is currently Thu 09 Sep, 2010 12:04 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Host template to add ping response checks
PostPosted: Tue 19 Aug, 2008 7:16 pm 
Offline
Site Admin
User avatar

Joined: Mon 28 Jul, 2003 5:42 pm
Posts: 3005
Location: Auckland, New Zealand
This host template will add ping time response checks, if you have the mrtg-ping-probe script available.
Code:
$head_lines .= "#---------------------------------------------------------------------\n";
my $target_name = $router_name . ".ping";
$target_lines .= <<ECHO;
# Response time
Target[$target_name]: `mrtg-ping-probe -p '1000*max/1000*min' -s $router_name`
PageTop[$target_name]: $router_name Response time
Title[$target_name]: Ping RTT to $router_name
Factor[$target_name]: 0.001
Maxbytes[$target_name]: 5000000
AbsMax[$target_name]: 10000000
Options[$target_name]: gauge
YLegend[$target_name]: response time
ShortLegend[$target_name]: s
LegendO[$target_name]: Low:&nbsp;
LegendI[$target_name]: High:
Legend1[$target_name]: Ping response time range
Legend2[$target_name]: Ping response time range
Legend4[$target_name]: Peak low response RTT
Legend3[$target_name]: Peak high response RTT
routers.cgi*WithPeak[$target_name]: none
routers.cgi*Options[$target_name]: nomax, nopercent, nototal, scaled
routers.cgi*InOut[$target_name]: no
routers.cgi*InCompact[$target_name]: no
routers.cgi*GraphStyle[$target_name]: range
routers.cgi*Icon[$target_name]: clock-sm.gif
routers.cgi*ShortName[$target_name]: Response
ECHO


Attachments:
File comment: MRTG ping probe script
mrtg-ping-probe.pl [19.4 KB]
Downloaded 295 times

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11
Top
 Profile  
 
 Post subject: Re: Host template to add ping response checks
PostPosted: Tue 03 Mar, 2009 2:44 pm 
Offline
Silver User

Joined: Mon 30 Jan, 2006 7:58 pm
Posts: 18
Steve,
regarding these templates, what variables in the template itself have to be changed to the host I'm running ping probes against? for example, if I have a switch called CORE1, would I change the $target_name to CORE1?
what do I change the $router_name to?

thanx!!


Top
 Profile  
 
 Post subject: Re: Host template to add ping response checks
PostPosted: Tue 03 Mar, 2009 4:30 pm 
Offline
Site Admin
User avatar

Joined: Mon 28 Jul, 2003 5:42 pm
Posts: 3005
Location: Auckland, New Zealand
You shouldnt need to change anything. The template is handled by cfgmaker, so it will set the variables appropriately according to its command line parameters. Keep the template exactly as posted above, variable names and all.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
 Post subject: Re: Host template to add ping response checks
PostPosted: Tue 03 Mar, 2009 6:46 pm 
Offline
Silver User

Joined: Mon 30 Jan, 2006 7:58 pm
Posts: 18
thanx! I'll give it a try.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group