Howto Monitor Mikrotik + ISA Server + Linux OR any Windows Pc using MRTG !
[Advance Monitoring]
~!~ Article By Syed Jahanzaib ~!~
The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network links. MRTG generates HTML pages containing PNG images which provide a LIVE visual representation of this traffic.MRTG is not limited to monitoring traffic, though. It is possible to monitor any SNMP variable you choose. You can even use an external program to gather the data which should be monitored via MRTG. People are using MRTG, to monitor things such as System Load, Login Sessions, and about anything . MRTG even allows you to accumulate two or more data sources into a single graph. I have used MRTG to monitor everything on my network, whether its a switch, router, ports, isa server counters, windows counters, linux counters, harddrive space monitoring, etc etc.
How MRTG graphs looks like, see its samples from:
http://aacable.wordpress.com/2010/03/27/mrtg-graphs-samples/
I HAVE PASTED THE SAMPEL WORKING CFG FILES AT THE END. JSUT FOR REFERENCE.
Now we will move on to howto install MRTG. If you have Freshly installed UBUNTU , You need to install Web Server (apache2)
apt-get install apache2
Now we will install MRTG
apt-get install mrtg
(Choose Yes to continue)
Now we will install SNMP Server and other SNMP utilities so that web can collect information for locahost and remote pcs via snmp.
apt-get install snmp snmpd
Now set your community string in /etc/snmp/snmpd.conf , Remove all Lines and add the following line only.
rocommunity public
Make snmpd use the newly created file and make it listen to all interfaces:
Edit /etc/default/snmpd
Change from:
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
To:
# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
and restart snmpd
/etc/init.d/snmpd restart OR service snmpd restart
Testing SNMP Service for localhost.
Now snmp service have been installed, its better to do a snmpwalk test from localhost or another remote host to verify our new configuration is responding correctly. issue the following command from localhost terminal.
snmpwalk -v 1 -c public 127.0.0.1
and you will see lot of oids and information which confirms that snmp service is installed and responding OK.
“Howto Monitor Windows Systems”
To Monitor All Windows base Performance Counters via SNMP/MRTG, You have to add an 3rd party addon in Windows. Goto http://erwan.l.free.fr/snmptools/ and download SNMPtools v1 and iptools
On your remote pc, for example ISA Server,
1) Copy snmptools.dll to Windows\system32\
2) Use regagent.reg file to setup snmptools info in Registry.
3) Now Restart the snmp service
That’s It, You have installed SNMPTOOLS.DLL and system is ready to be monitored remotely using Enterprise OID‘s enabled by SNMPTOOLS.DLL
Howt Use snmpwalk to get info via perfomance counters:
Use a snmpwalk tool to test
Main Enterprise OID:
1.3.6.1.4.1.15
Howto Find OID’s to monitor specific counter. For example We want to monitor ISA Server Cache.
From your linux machine, do some snmpwalk to test the OID. First do a simple snmpwal to test if enterprise OID’s are working.
snmpwalk -v2c -c public 192.168.2.3 1.3.6.1.4.1.15
You will see a lot of OID‘s like
SNMPv2-SMI::enterprises.15.69.1 = STRING: "Terminal Services Session"
SNMPv2-SMI::enterprises.15.69.2 = STRING: "75"
SNMPv2-SMI::enterprises.15.69.3 = STRING: "2"
SNMPv2-SMI::enterprises.15.70.1 = STRING: "Terminal Services"
SNMPv2-SMI::enterprises.15.70.2 = STRING: "3"
SNMPv2-SMI::enterprises.15.70.3 = STRING: "-1"
SNMPv2-SMI::enterprises.15.71.1 = STRING: "ISA Server Cache"
SNMPv2-SMI::enterprises.15.71.2 = STRING: "22"
SNMPv2-SMI::enterprises.15.71.3 = STRING: "-1"
SNMPv2-SMI::enterprises.15.72.1 = STRING: "ISA Server Web Proxy"
SNMPv2-SMI::enterprises.15.72.2 = STRING: "159"
SNMPv2-SMI::enterprises.15.72.3 = STRING: "-1"
SNMPv2-SMI::enterprises.15.73.1 = STRING: "Web Service"
SNMPv2-SMI::enterprises.15.73.2 = STRING: "86"
SNMPv2-SMI::enterprises.15.73.3 = STRING: "2"
SNMPv2-SMI::enterprises.15.74.1 = STRING: "Web Service Cache"
SNMPv2-SMI::enterprises.15.74.2 = STRING: "36"
SNMPv2-SMI::enterprises.15.74.3 = STRING: "-1"
SNMPv2-SMI::enterprises.15.75.1 = STRING: "WMI Objects"
SNMPv2-SMI::enterprises.15.75.2 = STRING: "2"
SNMPv2-SMI::enterprises.15.75.3 = STRING: "-1"
Now We will catch the ‘ISA SERVER WEB PROXY CACHE HIT RATIO‘ to check the cache hit ratio. To simplify things, we can use IPTOOLS (by) Erwin to check the specific OID. You can get the iptools from http://erwan.l.free.fr/snmptools/
Use the following screenshot on howto use IPTOOLS tool.


So the acquired OID for ISA SERVER WEB PROXY CACHE HIT RATIO was 72.20 , we will use this with enterprise oid combination to get the Result.
From you MRTG box, use the following command to get the result.
snmpwalk -v2c -c public 192.168.2.3 1.3.6.1.4.1.15.72.20.0.2
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.15.72.20.0.2
SNMPv2-SMI::enterprises.15.72.20.0.2 = INTEGER: 21
Now you have the result with INTEGER: 21
Means your isa server cache hit ratio is 21. You can confirm it iva using Microsoft Performance Counters
Some more examples.
ISA Server Firewall Service ACTIVE Sessions:

So the acquired for ISA Server Firewall Service ACTIVE Sessions OID was 14.4 , we will use this with enterprise oid combination to get the Result.
From you MRTG box, use the following command to get the result.
snmpwalk -v2c -c public 192.168.2.3 1.3.6.1.4.1.15.14.4.0.2
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.15.14.4.0.2
SNMPv2-SMI::enterprises.15.14.4.0.2 = INTEGER: 38
Now you have the result with INTEGER: 38
Means your isa server Firewall Active Users are 38 at this moment. You can confirm it iva using Microsoft Performance Counters
Now that we have the data, How can we use it to draw MRTG Graphs. Simple. Use the following sample of CFG to monitor Required
Data.
Edit the /etc/mrtg.cfg , remove all lines and paste the following data
(Dont forget to create new directory /var/www/mrtg/ for MRTG outputs )
#########################
# START OF /etc/mrtg.cfg#
#########################
# AUthor: Syed Jahanzaib
# Email : aacable@hotmail.com
# Web : http://aacable.wordpress.com
WorkDir:/var/www/mrtg
Options[_]: growright, bits, nobanner, logscale
XSize[_]: 600
YSize[_]: 200
Suppress[_]: ym
EnableIPv6: no
RunAsDaemon: no
#LogFormat: rrdtool
# LibAdd: /usr/local/rrdtool-1.2.27/lib/perl/5.8.8/
# LibAdd: /usr/local/rrdtool-1.2.27/lib/perl/5.8.8/i386-linux-thread-multi/
Interval: 5
AddHead[_]: <style type="text/css"> <!-- a { color: #263F66; text-decoration: none; } a:hover { color: #785B41; text-decoration: none; } body { color: black; font: 8pt Verdana, Geneva, Arial, Helvetica, sans-serif; } h1 { font: bold 16pt Verdana, Geneva, Arial, Helvetica, sans-serif; color: #342A21; } h2 { color: #666666; font: bold 12pt Verdana, Geneva, Arial, Helvetica, sans-serif; } h3 { color: black; font: bold 9pt Verdana, Geneva, Arial, Helvetica, sans-serif; } table { border: 0; } td { background-color: #E7DDD3; border: 0px solid #FFFFFF; color: Black; font: 8pt Verdana, Geneva, Arial, Helvetica, sans-serif; vertical-align: top; } th { background-color: #735A4A; color: White; font: 11px Verdana, arial, geneva, helvetica, sans-serif; border: 0; font-weight: bold; text-align: left; } --> </style>
Background[_]: #F6F1EE
#Start of ISA SERVER CACHE HIT .CFG sample
Target[isa.cachehit]: .1.3.6.1.4.1.15.14.4.0.2&.1.3.6.1.4.1.15.14.4.0.2:public@192.168.2.3
Title[isa.cachehit]: ISA SERVER Cache Hit Ratio
PageTop[isa.cachehit]: ISA SERVER Cache Hit Ratio
MaxBytes[isa.cachehit]: 100
Options[isa.cachehit]: gauge,nopercent,noo,growright
LegendI[isa.cachehit]: Cache Hit Ratio
LegendO[isa.cachehit]:
YLegend[isa.cachehit]: Cache Hit Ratio
Legend1[isa.cachehit]: Cache Hit Ratio
Legend2[isa.cachehit]:
#########################
# END OF /etc/mrtg.cfg#
#########################
Save it and Exit. Now you can use the following command to generate MRTG graphs. Run this command three time (when you add any new item, run this command three times to create graphs fully)
env LANG=C /usr/bin/mrtg /etc/mrtg.cfg
OR you can set it in crontab so that it will run automitaclly after every 5 minutes. Use the following command to add in CRONTAB.
crontab -e
(if it ask for editor, Choose 2 , NANO, its easier, now paste the following line)
*/5 * * * * mrtg /etc/mrtg/mrtg.cfg –logging /var/log/mrtg.log
Now make an index file, so that you will be able to open the graphs without typing the long url with file name.
indexmaker mrtg.cfg --output /var/www/html/mrtg/index.html -columns=2 --compact --perhost --nolegend
You can view your GRAPHSvia
http://192.168.2.1/mrtg
(Change the ip to your local ip) Some Sample Graphs for above created CFGs are as follows.


“Howto Monitor Interface Traffic via MRTG”
Now we will see how we can graph interface card for remote pc to monitor IN/OUT traffic.
From your mrtg box, issue this command to create CFG file.
(Note: snmp service must be installed at targeted remote pc and its community string must be set to pubic or accordingly)
cfgmaker public@192.168.2.3 > isa.cfg
Now You can link this isa.cfg file in main mrtg.cfg , so every time mrtg.cfg runs , it will also call up this isa.cfg
Open your /etc/mrtg.cfg and add following line in the end.
Inlcude: isa.cfg
Now run MRTG to create graphs for this newly created isa.cfg (Or if you have already set it to run every 5 minutes in CRON, then wait for next 5-10 minutes to run it auto)
env LANG=C mrtg /etc/mrtg.cfg
Now you can view your newly created graphs from http://192.168.2.1/mrtg


This way you can add as many .cfg files separately and link them with master mrtg.cfg
“Howto Monitor LINUX Systems”
To Monitor Linux System, (I am short in time, therefore showing only ready amde CFG for it, you can modify or add them accordingly.)
“Howto Monitor CPU + HDD Tmeprature for Windows PC via MRTG”
“Using SPEEDFAN Addon”
We can monitor CPU / HDD / Mother Temperature via MRTG. For this purpose, we have to install an addon name SPEEDFAN on Window PC. You can download Speedfan from http://www.almico.com/speedfan444.exe and speedfan SNMP extention from http://deve.loping.net/projects/sfsnmp/downloads/ . After installation , you will see something similar

Now we will find OID for CPU and HDD Temp to make MRTG Graph.
Following are standard OID for SpeedFan (Via speedfan snmp extention module)
To Be Continued . . .
“Howto Monitor MIKROTIK ROUTEROS via MRTG”
On Your mikrotik, you have to enable SNMP in order to do snmp base monitoring. See the snapshot on howto enable SNMP on MT.
Now You can create mikrotik.cfg to monitor traffic graphs in the same way you have done for Microsoft Windows. eg.
cfgmaker public@192.168.2.9 > mikrotik.cfg
Now link this mikrotik.cfg into master mrtg.cfg via adding following
Include: mikrotik.cfg
” Howto Monitor Mikrotik CPU, Memory, and QUEUE via MRTG Graphing
“
You have to find Mikrotik OID’s so taht MRTG can monitor it via SNMP, to do so , Open Terminal andpaste the following commands to enable SNMP
/snmp
set contact=aacable@hotmail.com enabled=yes engine-id="" location="IT Dept." trap-community=public trap-target=0.0.0.0 trap-version=1
/snmp community
set public address=0.0.0.0/0 authentication-password="" authentication-protocol=MD5 encryption-password="" encryption-protocol=DES name=public read-access=yes security=none write-access=no
/snmp
set contact=aacable@hotmail.com enabled=yes engine-id="" location="IT Dept." trap-community=public trap-target=0.0.0.0 trap-version=1

Now we will get some OID‘s to monitor some resources of Mikrotik like CPU + MEM + Temprature + One single Queue for test user
[admin@MikroTik] > /system health
[admin@MikroTik] /system health> print oid
core: .1.3.6.1.4.1.14988.1.1.3.1.0 3.3v:
.1.3.6.1.4.1.14988.1.1.3.2.0 5v:
.1.3.6.1.4.1.14988.1.1.3.3.0 12v:
.1.3.6.1.4.1.14988.1.1.3.4.0
cpu-temp: .1.3.6.1.4.1.14988.1.1.3.6.0
board-temp: .1.3.6.1.4.1.14988.1.1.3.7.0
[admin@MikroTik] /system resource
[admin@MikroTik] /system resource> print oid
uptime: .1.3.6.1.2.1.1.3.0
total-hdd-space: .1.3.6.1.2.1.25.2.3.1.5.131073
used-hdd-space: .1.3.6.1.2.1.25.2.3.1.6.131073
total-memory: .1.3.6.1.2.1.25.2.3.1.5.65536
used-memory: .1.3.6.1.2.1.25.2.3.1.6.65536
[admin@MikroTik] /system resource cpu> print oid
load=.1.3.6.1.2.1.25.3.3.1.2.1
[admin@MikroTik] /queue simple> print oid
Flags: X - disabled, I - invalid, D - dynamic
0 name=.1.3.6.1.4.1.14988.1.1.2.1.1.2.1
bytes-in=.1.3.6.1.4.1.14988.1.1.2.1.1.8.1
bytes-out=.1.3.6.1.4.1.14988.1.1.2.1.1.9.1
packets-in=.1.3.6.1.4.1.14988.1.1.2.1.1.10.1
packets-out=.1.3.6.1.4.1.14988.1.1.2.1.1.11.1
queues-in=.1.3.6.1.4.1.14988.1.1.2.1.1.12.1
queues-out=.1.3.6.1.4.1.14988.1.1.2.1.1.13.1
Now that we have some OID’s We can use the following CFG file to create various graphs of above data.
Including CPU Load / Temprature / Memory Usage and one simple Queue for specific User ,
just for Example.
### MIKROTIK 192.168.2.9 CPU load ###
Target[192.168.2.9_cpu]: 1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.1:public@192.168.2.9
AbsMax[192.168.2.9_cpu]: 100
MaxBytes[192.168.2.9_cpu]: 100
Title[192.168.2.9_cpu]: MIKROTIK CPU load
PageTop[192.168.2.9_cpu]: <H1>MIKROTIK CPU load</H1>
Options[192.168.2.9_cpu]: gauge,growright,nopercent, noo
YLegend[192.168.2.9_cpu]: CPU load
ShortLegend[192.168.2.9_cpu]: %
LegendI[192.168.2.9_cpu]: CPU load (percentage)
# Mikrotik PPP ACTIVE Users
Target[mtpppusers]: 1.3.6.1.4.1.9.9.150.1.1.1.0&1.3.6.1.4.1.9.9.150.1.1.1.0:public@192.168.2.9
Title[mtpppusers]: Active PPP Users on MT
PageTop[mtpppusers]: <H1> Active PPP Users on MT</H1>
MaxBytes[mtpppusers]: 300
Colours[mtpppusers]: B#8888ff,B#8888ff,B#5398ff,B#5398ff
Options[mtpppusers]: gauge,nopercent,noo,integer,growright
LegendI[mtpppusers]: Active PPP Users on MT
LegendO[mtpppusers]:
YLegend[mtpppusers]: Active PPP Users on MT
Legend1[mtpppusers]: Active PPP Users on MT
Legend2[mtpppusers]:
You can create graphs for about any thing you like. Its really powerful and I always prefer MRTG over other easy applications like CACTI or others. Y ou can modify it as you like.
More samples can be obtained from:
http://aacable.wordpress.com/2010/03/27/mrtg-graphs-samples/
I will add more MRTG details on howto monitor linux / microsoft / MIKROTIK son.
MRTG WORKING CFG EXAMPLES, JUST FOR REFERENCE
#########################
# START OF /etc/mrtg.cfg#
#########################
# AUthor: Syed Jahanzaib
# Email : aacable@hotmail.com
# Web : http://aacable.wordpress.com
WorkDir:/var/www/html/mrtg
Options[_]: growright,nobanner,logscale,pngdate,bits
Options[^]: growright,nobanner,logscale,pngdate,bits
XSize[_]: 600
YSize[_]: 200
EnableIPv6: no
RunAsDaemon: no
Interval: 5
Logformat: rrdtool
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt, /usr/share/snmp/mibs/IF-MIB.txt, /usr/share/snmp/mibs/UCD-SNMP-MIB.txt, /cfg/mib.txt
#LoadMIBs: /cfg/mib.txt
PageFoot[^]: <i>Page managed by <a href="mailto:aacable@hotmail.com">SYED JAHANZAIB</a></i>
AddHead[_]: <style type="text/css"> <!-- a { color: #263F66; text-decoration: none; } a:hover { color: #785B41; text-decoration: none; } body { color: black; font: 8pt Verdana, Geneva, Arial, Helvetica, sans-serif; } h1 { font: bold 16pt Verdana, Geneva, Arial, Helvetica, sans-serif; color: #342A21; } h2 { color: #666666; font: bold 12pt Verdana, Geneva, Arial, Helvetica, sans-serif; } h3 { color: black; font: bold 9pt Verdana, Geneva, Arial, Helvetica, sans-serif; } table { border: 0; } td { background-color: #E7DDD3; border: 0px solid #FFFFFF; color: Black; font: 8pt Verdana, Geneva, Arial, Helvetica, sans-serif; vertical-align: top; } th { background-color: #735A4A; color: White; font: 11px Verdana, arial, geneva, helvetica, sans-serif; border: 0; font-weight: bold; text-align: left; } --> </style>
Background[_]: #F6F1EE
Include: /cfg/mt.cfg
Include: /cfg/proxy.cfg
Include: /cfg/gw.cfg
Include: /cfg/rm.cfg
Include: /cfg/ping.cfg
#########################
# END OF /etc/mrtg.cfg#
#########################
### mt.cfg
######################################################################
# System: MikroTik
# Description: router
# Contact: aacable@hotmail.com
# Location: Glassline Nawabshah
######################################################################
### Interface 1 >> Descr: 'lan' | Name: 'lan' | Ip: '' | Eth: '00-0e-0c-06-7c-96' ###
Target[10.10.0.1_1]: 1:gl@10.10.0.1:
SetEnv[10.10.0.1_1]: MRTG_INT_IP="" MRTG_INT_DESCR="lan"
MaxBytes[10.10.0.1_1]: 5000000
Title[10.10.0.1_1]: Traffic Analysis for MIKROTIK PPP SERVER USER
PageTop[10.10.0.1_1]: <h1>Traffic Analysis for MIKROTIK PPP SERVER USER LAN</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>MikroTik in Glassline Nawabshah</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
<td>Description:</td>
<td>USER LAN</td>
</tr>
</table>
</div>
### Interface 2 >> Descr: 'proxy' | Name: 'proxy' | Ip: '192.168.20.1' | Eth: '00-0e-0c-06-5b-be' ###
Target[10.10.0.1_2]: 2:gl@10.10.0.1:
SetEnv[10.10.0.1_2]: MRTG_INT_IP="192.168.20.1" MRTG_INT_DESCR="proxy"
MaxBytes[10.10.0.1_2]: 12500000
Title[10.10.0.1_2]: Traffic Analysis for Mikrotik PROXY interface connected with SQUID
PageTop[10.10.0.1_2]: <h1>Traffic Analysis for Mikrotik Proxy interface connected with SQUID</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>MikroTik PPP SERVER Glassline Nawabshah</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
<td>Description:</td>
<td>PROXY interface connected with SQUID</td>
</tr>
<tr>
</table>
</div>
### Interface 3 >> Descr: 'wan' | Name: 'wan' | Ip: '111.111.111.111' | Eth: '00-13-72-93-4b-c0' ###
Target[10.10.0.1_3]: 3:gl@10.10.0.1:
SetEnv[10.10.0.1_3]: MRTG_INT_IP="111.111.111.111" MRTG_INT_DESCR="wan"
MaxBytes[10.10.0.1_3]: 12500000
Title[10.10.0.1_3]: Traffic Analysis for MIKROTIK WAN
PageTop[10.10.0.1_3]: <h1>Traffic Analysis for MIKROTIK WAN</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>MikroTik PPP SERVER Glassline Nawabshah</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
<td>Description:</td>
<td>WAN LINK </td>
</tr>
<tr>
</table>
</div>
### Interface 4 >> Descr: 'dmz' | Name: 'dmz' | Ip: '192.168.2.1' | Eth: '00-0e-0c-06-62-54' ###
Target[10.10.0.1_4]: 4:gl@10.10.0.1:
SetEnv[10.10.0.1_4]: MRTG_INT_IP="192.168.2.1" MRTG_INT_DESCR="dmz"
MaxBytes[10.10.0.1_4]: 12500000
Title[10.10.0.1_4]: Traffic Analysis for MIKROTIK DMZ/FTP
PageTop[10.10.0.1_4]: <h1>Traffic Analysis for MIKROTIK DMZ/FTP</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>MikroTik PPP SERVER Glassline Nawabshah</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
<td>Description:</td>
<td>DMZ/FTP </td>
</tr>
</table>
</div>
### MIKROTIK 10.10.0.1 CPU load ###
Target[192.168.2.9_cpu]: 1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.1:gl@10.10.0.1
AbsMax[192.168.2.9_cpu]: 100
MaxBytes[192.168.2.9_cpu]: 100
Colours[192.168.2.9_cpu]: R#ff4f27,Y#FFFF00,,R#ff4f27,Y#FFFF00
Title[192.168.2.9_cpu]: MIKROTIK PPP Server CPU load
PageTop[192.168.2.9_cpu]: <H1>MIKROTIK PPP Server CPU load</H1>
Options[192.168.2.9_cpu]: gauge,growright,nopercent, noo
YLegend[192.168.2.9_cpu]: CPU load
ShortLegend[192.168.2.9_cpu]: %
LegendI[192.168.2.9_cpu]: CPU load (percentage)
# Mikrotik PPP ACTIVE Users
Target[mtpppusers]: 1.3.6.1.4.1.9.9.150.1.1.1.0&1.3.6.1.4.1.9.9.150.1.1.1.0:gl@10.10.0.1
Title[mtpppusers]: MIKROTIK Active PPP Users on MT/PPP Server
PageTop[mtpppusers]: <H1> MIKROTIK Active PPP Users on MT/PPP Server</H1>
MaxBytes[mtpppusers]: 300
Colours[mtpppusers]: B#8888ff,B#8888ff,B#5398ff,B#5398ff
Options[mtpppusers]: gauge,nopercent,noo,integer,growright
LegendI[mtpppusers]: Active PPP Users on MT
LegendO[mtpppusers]:
YLegend[mtpppusers]: Active PPP Users on MT
Legend1[mtpppusers]: Active PPP Users on MT
Legend2[mtpppusers]:
### gw.cfg
### GW WEB
### Interface 4 >> Descr: 'eth2' | Name: 'eth2' | Ip: '111.111.111.111' | Eth: '00-13-72-93-3f-4c' ###
Target[10.10.0.4_4]: 4:gl@10.10.0.4:
SetEnv[10.10.0.4_4]: MRTG_INT_IP="111.111.111.111" MRTG_INT_DESCR="eth2"
MaxBytes[10.10.0.4_4]: 125000000
Title[10.10.0.4_4]: Traffic Analysis for GW / WEB SERVER WAN
PageTop[10.10.0.4_4]: <h1>Traffic Analysis for GW / WEB SERVER WAN</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>GW / WEB SERVER WAN</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
</table>
</div>
### Interface 5 >> Descr: 'br0' | Name: 'br0' | Ip: '10.10.0.4' | Eth: '' ###
Target[10.10.0.4_5]: 5:gl@10.10.0.4:
SetEnv[10.10.0.4_5]: MRTG_INT_IP="10.10.0.4" MRTG_INT_DESCR="br0"
MaxBytes[10.10.0.4_5]: 1250000
Title[10.10.0.4_5]: Traffic Analysis for GW / WEB SERVER BRIDGE INTERFACE
PageTop[10.10.0.4_5]: <h1>Traffic Analysis for GW / WEB SERVER BRIDGE INTERFACE</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>GW / WEB SERVER BRIDGE INTERFACE</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
<td>Description:</td>
<td>GW / WEB SERVER BRIDGE INTERFACE </td>
</tr>
</table>
</div>
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:gl@localhost+ssCpuRawSystem.0&ssCpuRawSystem.0:gl@localhost+ssCpuRawNice.0&ssCpuRawNice.0:gl@localhost
RouterUptime[localhost.cpu]: gl@localhost
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: GW/WEB SERVER CPU Load
PageTop[localhost.cpu]: <h1>GW/WEB SERVER Active CPU Load %</h1>
Colours[localhost.cpu]: R#ff4f27,Y#FFFF00,,R#ff4f27,Y#FFFF00
Unscaled[localhost.cpu]: ymwd
ShortLegend[localhost.cpu]: %
YLegend[localhost.cpu]: CPU Utilization
Legend1[localhost.cpu]: GW/WEB SERVER Active CPU in % (Load)
Legend2[localhost.cpu]:
Legend3[localhost.cpu]:
Legend4[localhost.cpu]:
LegendI[localhost.cpu]: Active
LegendO[localhost.cpu]:
Options[localhost.cpu]: growright,nopercent
# Memory Monitoring (Total Versus Available Memory in KB)
Target[gw.memory]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.5.0:gl@localhost * 1000
Title[gw.memory]: LINUX GW Free Memory in MBytes
PageTop[gw.memory]: <H1>LINUX GW Free Memory in Bytes</H1>
MaxBytes[gw.memory]: 100000000000000
ShortLegend[gw.memory]: B
YLegend[gw.memory]: MB
LegendI[gw.memory]: Free
LegendO[gw.memory]: Total
Legend1[gw.memory]: Free memory
Legend2[gw.memory]: LINUX GW Total memory
Options[gw.memory]: gauge,growright,nopercent
kMG[gw.memory]: k,M,G,T,P,X
# Memory Monitoring (Percentage usage)
Title[gw.mempercent]: LINUX GW Percentage Memory Free in (%)
PageTop[gw.mempercent]: <H1>LINUX GW Percentage Free Memory</H1>
Target[gw.mempercent]: ( .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:gl@localhost ) * 100 / ( .1.3.6.1.4.1.2021.4.5.0&.1.3.6.1.4.1.2021.4.5.0:gl@localhost )
options[gw.mempercent]: growright, gauge, nopercent, integer
Unscaled[gw.mempercent]: ymwd
MaxBytes[gw.mempercent]: 100
YLegend[gw.mempercent]: Memory %
ShortLegend[gw.mempercent]: Percent
LegendI[gw.mempercent]: Free
LegendO[gw.mempercent]:
Legend1[gw.mempercent]: LINUX GW Percentage Free Memory
Legend2[gw.mempercent]:
### GW / Web Server Harddisk DRIVE Utilization ###
Target[gw.hdd]: .1.3.6.1.2.1.25.2.3.1.6.31&.1.3.6.1.2.1.25.2.3.1.6.31:gl@localhost / .1.3.6.1.2.1.25.2.3.1.5.31&.1.3.6.1.2.1.25.2.3.1.5.31:gl@localhost * 100
Options[gw.hdd]: growright, gauge, integer, noo
MaxBytes[gw.hdd]: 100
LegendI[gw.hdd]: Total Partition Used
LegendO[gw.hdd]:
Legend1[gw.hdd]: Total Partition Used
Legend2[gw.hdd]:
Title[gw.hdd]: GW / Web Server Harddisk DRIVE Utilization
PageTop[gw.hdd]: <h1>GW / Web Server Harddisk DRIVE Utilization</h1>
Unscaled[gw.hdd]: ymwd
ShortLegend[gw.hdd]: %
YLegend[gw.hdd]: % Disk Used
</pre>
### proxy.cfg
######################################################################
# System: proxy
# Description: Linux proxy 2.6.31-23-generic-pae #75-Ubuntu SMP Fri Mar 18 19:14:10 UTC 2011 i686
# Contact: root
# Location: Unknown
######################################################################
LoadMIBs: /cfg/mib.txt
### Interface 2 >> Descr: 'eth0' | Name: 'eth0' | Ip: '192.168.20.2' | Eth: '00-0e-0c-06-63-f8' ###
Target[192.168.20.2_2]: 2:gl@192.168.20.2:
SetEnv[192.168.20.2_2]: MRTG_INT_IP="192.168.20.2" MRTG_INT_DESCR="eth0"
MaxBytes[192.168.20.2_2]: 1250000
Title[192.168.20.2_2]: Traffic Analysis for SQUID PROXY -- LAN going to Mikrotik Proxy Interface
PageTop[192.168.20.2_2]: <h1>Traffic Analysis for SQUID PROXY -- LAN going to Mikrotik Proxy Interface</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>SQUID proxy LAN</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
</table>
</div>
### Interface 3 >> Descr: 'eth1' | Name: 'eth1' | Ip: '111.111.111.111' | Eth: '00-07-e9-1f-e2-61' ###
Target[192.168.20.2_3]: 3:gl@192.168.20.2:
SetEnv[192.168.20.2_3]: MRTG_INT_IP="111.111.111.111" MRTG_INT_DESCR="eth1"
MaxBytes[192.168.20.2_3]: 1250000
Title[192.168.20.2_3]: Traffic Analysis for SQUID PROXY -- WAN Connected With Cyber Router
PageTop[192.168.20.2_3]: <h1>Traffic Analysis for SQUID PROXY -- WAN Connected With Cyber Router</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>SQUID proxy WAN</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
</table>
</div>
#LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[proxycpu]: .1.3.6.1.2.1.25.3.3.1.2.769&.1.3.6.1.2.1.25.3.3.1.2.768:gl@192.168.20.2
RouterUptime[proxycpu]: gl@192.168.20.2
MaxBytes[proxycpu]: 100
Title[proxycpu]: PROXY SERVER CPU Load
PageTop[proxycpu]: <h1>PROXY SERVER Active CPU Load %</h1>
Colours[proxycpu]: R#ff4f27,Y#FFFF00,,R#ff4f27,Y#FFFF00
Unscaled[proxycpu]: ymwd
ShortLegend[proxycpu]: %
YLegend[proxycpu]: CPU Utilization
Legend1[proxycpu]: PROXY SERVER Active CPU in % (Load)
Legend2[proxycpu]:
Legend3[proxycpu]:
Legend4[proxycpu]:
LegendI[proxycpu]: Active
LegendO[proxycpu]:
Options[proxycpu]: growright, nopercent, pngdate
Target[cacheRequestHitRatio]: .1.3.6.1.4.1.3495.1.3.2.2.1.9.5&.1.3.6.1.4.1.3495.1.3.2.2.1.9.60:gl@192.168.20.2:3401
MaxBytes[cacheRequestHitRatio]: 100
AbsMax[cacheRequestHitRatio]: 100
Title[cacheRequestHitRatio]: Request Hit Ratio @ GLASSLINE PROXY SERVER
Options[cacheRequestHitRatio]: absolute, gauge, noinfo, growright, nopercent
Unscaled[cacheRequestHitRatio]: dwmy
PageTop[cacheRequestHitRatio]: <h1>Request Hit Ratio @ GLASSLINE PROXY SERVER</h1>
YLegend[cacheRequestHitRatio]: %
ShortLegend[cacheRequestHitRatio]: %
LegendI[cacheRequestHitRatio]: Request Hit Ratio (5min)
LegendO[cacheRequestHitRatio]: Request Hit Ratio (60min)
Legend1[cacheRequestHitRatio]: Request Hit Ratio
Legend2[cacheRequestHitRatio]: Request Hit Ratio
Target[cacheRequestByteRatio]: .1.3.6.1.4.1.3495.1.3.2.2.1.10.5&.1.3.6.1.4.1.3495.1.3.2.2.1.10.60:gl@192.168.20.2:3401
MaxBytes[cacheRequestByteRatio]: 100
AbsMax[cacheRequestByteRatio]: 100
Title[cacheRequestByteRatio]: Byte Hit Ratio @ GLASSLINE PROXY SERVER
Options[cacheRequestByteRatio]: absolute, gauge, noinfo, growright, nopercent
Unscaled[cacheRequestByteRatio]: dwmy
PageTop[cacheRequestByteRatio]: <h1>Byte Hit Ratio @ GLASSLINE PROXY SERVER</h1>
YLegend[cacheRequestByteRatio]: %
ShortLegend[cacheRequestByteRatio]:%
LegendI[cacheRequestByteRatio]: Byte Hit Ratio (5min)
LegendO[cacheRequestByteRatio]: Byte Hit Ratio (60min)
Legend1[cacheRequestByteRatio]: Byte Hit Ratio
Legend2[cacheRequestByteRatio]: Byte Hit Ratio
# PROXY Memory Monitoring (Total Versus Available Memory in KB)
Target[proxy.memory]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.5.0:gl@192.168.20.2 * 1000
Title[proxy.memory]: SQUID PROXY Server Free Memory in MBytes
PageTop[proxy.memory]: <H1>SQUID PROXY Server Free Memory in Bytes</H1>
MaxBytes[proxy.memory]: 100000000000000
ShortLegend[proxy.memory]: B
YLegend[proxy.memory]: MB
LegendI[proxy.memory]: Free
LegendO[proxy.memory]: Total
Legend1[proxy.memory]: Free memory
Legend2[proxy.memory]: SQUID PROXY Server Total memory
Options[proxy.memory]: gauge,growright,nopercent
kMG[proxy.memory]: k,M,G,T,P,X
# PROXY Memory Monitoring (Percentage usage)
Title[proxy.mempercent]: SQUID PROXY Server Percentage Memory Free in (%)
PageTop[proxy.mempercent]: <H1>SQUID PROXY Server Percentage Free Memory</H1>
Target[proxy.mempercent]: ( .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:gl@192.168.20.2 ) * 100 / ( .1.3.6.1.4.1.2021.4.5.0&.1.3.6.1.4.1.2021.4.5.0:gl@192.168.20.2 )
options[proxy.mempercent]: growright, gauge, nopercent, integer
Unscaled[proxy.mempercent]: ymwd
MaxBytes[proxy.mempercent]: 100
YLegend[proxy.mempercent]: Memory %
ShortLegend[proxy.mempercent]: Percent
LegendI[proxy.mempercent]: Free
LegendO[proxy.mempercent]:
Legend1[proxy.mempercent]: SQUID PROXY Server Percentage Free Memory
Legend2[proxy.mempercent]:
### SQUID PROXY Server Harddisk DRIVE Utilization ###
Target[proxy.hdd1]: .1.3.6.1.2.1.25.2.3.1.6.31&.1.3.6.1.2.1.25.2.3.1.6.31:gl@192.168.20.2 / .1.3.6.1.2.1.25.2.3.1.5.31&.1.3.6.1.2.1.25.2.3.1.5.31:gl@192.168.20.2 * 100
Options[proxy.hdd1]: growright, gauge, integer, noo
MaxBytes[proxy.hdd1]: 100
LegendI[proxy.hdd1]: Total Partition Used
LegendO[proxy.hdd1]:
Legend1[proxy.hdd1]: Total Partition Used
Legend2[proxy.hdd1]:
Title[proxy.hdd1]: SQUID PROXY Server System Harddisk-1 DRIVE Utilization
PageTop[proxy.hdd1]: <h1>SQUID PROXY Server System Harddisk-1 DRIVE Utilization</h1>
Unscaled[proxy.hdd1]: ymwd
ShortLegend[proxy.hdd1]: %
YLegend[proxy.hdd1]: % Disk Used
### SQUID PROXY Server CACHE 500 GB Harddisk DRIVE Utilization ###
Target[proxy.hdd2]: .1.3.6.1.2.1.25.2.3.1.6.33&.1.3.6.1.2.1.25.2.3.1.6.33:gl@192.168.20.2 / .1.3.6.1.2.1.25.2.3.1.5.33&.1.3.6.1.2.1.25.2.3.1.5.33:gl@192.168.20.2 * 100
Options[proxy.hdd2]: growright, gauge, integer, noo
MaxBytes[proxy.hdd2]: 100
LegendI[proxy.hdd2]: Total Partition Used
LegendO[proxy.hdd2]:
Legend1[proxy.hdd2]: Total Partition Used
Legend2[proxy.hdd2]:
Title[proxy.hdd2]: SQUID PROXY Server CACHE 500 GB HDD Utilization
PageTop[proxy.hdd2]: <h1>SQUID PROXY Server CACHE 500 GB HDD Utilization</h1>
Unscaled[proxy.hdd2]: ymwd
ShortLegend[proxy.hdd2]: %
YLegend[proxy.hdd2]: % Disk Used
<pre>
### rm.cfg
### Interface 2 >> Descr: 'eth0' | Name: 'eth0' | Ip: '10.10.0.2' | Eth: '00-07-e9-0f-14-3e' ###
Target[10.10.0.2_2]: 2:gl@10.10.0.2:
SetEnv[10.10.0.2_2]: MRTG_INT_IP="10.10.0.2" MRTG_INT_DESCR="eth0"
MaxBytes[10.10.0.2_2]: 125000000
Title[10.10.0.2_2]: Traffic Analysis for RADIUS SERVER LAN
PageTop[10.10.0.2_2]: <h1>Traffic Analysis for RADIUS SERVER LAN</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>RADIUS SERVER</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
<tr>
<td>Description:</td>
<td>RADIUS SERVER LAN</td>
</tr>
</table>
</div>
### Interface 3 >> Descr: 'eth1' | Name: 'eth1' | Ip: '111.111.111.111' | Eth: '00-14-22-2e-6e-fe' ###
Target[10.10.0.2_3]: 3:gl@10.10.0.2:
SetEnv[10.10.0.2_3]: MRTG_INT_IP="111.111.111.111" MRTG_INT_DESCR="eth1"
MaxBytes[10.10.0.2_3]: 125000000
Title[10.10.0.2_3]: Traffic Analysis for RADIUS SERVER WAN
PageTop[10.10.0.2_3]: <h1>Traffic Analysis for RADIUS SERVER WAN</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>RADIUS SERVER WAN</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>aacable@hotmail.com</td>
</tr>
</table>
</div>
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[Radius.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:gl@10.10.0.2+ssCpuRawSystem.0&ssCpuRawSystem.0:gl@10.10.0.2+ssCpuRawNice.0&ssCpuRawNice.0:gl@10.10.0.2
RouterUptime[Radius.cpu]: gl@10.10.0.2
MaxBytes[Radius.cpu]: 100
Title[Radius.cpu]: RADIUS/BILLING SERVER CPU Load
PageTop[Radius.cpu]: <h1>RADIUS/BILLING SERVER Active CPU Load %</h1>
Colours[Radius.cpu]: R#ff4f27,Y#FFFF00,,R#ff4f27,Y#FFFF00
Unscaled[Radius.cpu]: ymwd
ShortLegend[Radius.cpu]: %
YLegend[Radius.cpu]: CPU Utilization
Legend1[Radius.cpu]: RADIUS/BILLING SERVER Active CPU in % (Load)
Legend2[Radius.cpu]:
Legend3[Radius.cpu]:
Legend4[Radius.cpu]:
LegendI[Radius.cpu]: Active
LegendO[Radius.cpu]:
Options[Radius.cpu]: growright,nopercent
### RADIUS BILLING Server Harddisk DRIVE Utilization ###
Target[radius.hdd]: .1.3.6.1.2.1.25.2.3.1.6.31&.1.3.6.1.2.1.25.2.3.1.6.31:gl@10.10.0.2 / .1.3.6.1.2.1.25.2.3.1.5.31&.1.3.6.1.2.1.25.2.3.1.5.31:gl@10.10.0.2 * 100
Options[radius.hdd]: growright, gauge, integer, noo
MaxBytes[radius.hdd]: 100
LegendI[radius.hdd]: Total Partition Used
LegendO[radius.hdd]:
Legend1[radius.hdd]: Total Partition Used
Legend2[radius.hdd]:
Title[radius.hdd]: RADIUS BILLING Server Harddisk DRIVE Utilization
PageTop[radius.hdd]: <h1>RADIUS BILLING Server Harddisk DRIVE Utilization</h1>
Unscaled[radius.hdd]: ymwd
ShortLegend[radius.hdd]: %
YLegend[radius.hdd]: % Disk Used
### ping.cfg
# 10.10.0.1 MIKROTIK PPP SERVERPING GRAPH
Title[mikrotik.ping]: MIKROTIK PPP SERVER PING RTT / Pkt LOSS Report
PageTop[mikrotik.ping]: <H1>MIKROTIK PPP SERVER PING RTT / Pkt LOSS Report</H1>
Target[mikrotik.ping]: `/cfg/zping.sh 10.10.0.1`
Colours[mikrotik.ping]: R#f75712,G#04bf27,G#70ff53,R#70ff53
MaxBytes[mikrotik.ping]: 100
AbsMax[mikrotik.ping]: 100
Options[mikrotik.ping]: growright,nopercent,gauge
LegendI[mikrotik.ping]: Pkt LOSS
LegendO[mikrotik.ping]: Active Round Trip Time
YLegend[mikrotik.ping]: RTT
Legend1[mikrotik.ping]: Pkt LOSS
Legend2[mikrotik.ping]: Active RTT
# 10.0.0.1 MIKROTIK HOTSPOT+DHCP+DNS PING GRAPH
Title[mthotspot.ping]: MIKROTIK HOTSPOT+DHCP+DNS PING RTT / Pkt LOSS Report
PageTop[mthotspot.ping]: <H1>MIKROTIK HOTSPOT+DHCP+DNS PING RTT / Pkt LOSS Report</H1>
Target[mthotspot.ping]: `/cfg/zping.sh 10.0.0.1`
Colours[mthotspot.ping]: R#f75712,G#04bf27,G#70ff53,R#70ff53
MaxBytes[mthotspot.ping]: 100
AbsMax[mthotspot.ping]: 100
Options[mthotspot.ping]: growright,nopercent,gauge
LegendI[mthotspot.ping]: Pkt LOSS
LegendO[mthotspot.ping]: Active Round Trip Time
YLegend[mthotspot.ping]: RTT
Legend1[mthotspot.ping]: Pkt LOSS
Legend2[mthotspot.ping]: Active RTT
# 10.10.0.2 RADIUS SERVER PING GRAPH
Title[radius.ping]: RADIUS BILLING SERVER PING RTT / Pkt LOSS Report
PageTop[radius.ping]: <H1>RADIUS BILLING SERVER PING RTT / Pkt LOSS Report</H1>
Target[radius.ping]: `/cfg/zping.sh 10.10.0.2`
Colours[radius.ping]: R#f75712,G#04bf27,G#70ff53,R#70ff53
MaxBytes[radius.ping]: 100
AbsMax[radius.ping]: 100
Options[radius.ping]: growright,nopercent,gauge
LegendI[radius.ping]: Pkt LOSS
LegendO[radius.ping]: Active Round Trip Time
YLegend[radius.ping]: RTT
Legend1[radius.ping]: Pkt LOSS
Legend2[radius.ping]: Active RTT
# 192.168.20.2 PROXY SERVER PING GRAPH
Title[proxy.ping]: PROXY SERVER PING RTT / Pkt LOSS Report
PageTop[proxy.ping]: <H1>PROXY SERVER PING RTT / Pkt LOSS Report</H1>
Target[proxy.ping]: `/cfg/zping.sh 192.168.20.2`
Colours[proxy.ping]: R#f75712,G#04bf27,G#70ff53,R#70ff53
MaxBytes[proxy.ping]: 100
AbsMax[proxy.ping]: 100
Options[proxy.ping]: growright,nopercent,gauge
LegendI[proxy.ping]: Pkt LOSS
LegendO[proxy.ping]: Active Round Trip Time
YLegend[proxy.ping]: RTT
Legend1[proxy.ping]: Pkt LOSS
Legend2[proxy.ping]: Active RTT
# 111.111.111.111 CYBER.NET Router PING GRAPH
Title[cyber.ping]: CYBER.NET Router PING RTT / Pkt LOSS Report
PageTop[cyber.ping]: <H1>CYBER.NET Router PING RTT / Pkt LOSS Report</H1>
Target[cyber.ping]: `/cfg/zping.sh 111.111.111.111`
Colours[cyber.ping]: R#f75712,G#04bf27,G#70ff53,R#70ff53
MaxBytes[cyber.ping]: 100
AbsMax[cyber.ping]: 100
Options[cyber.ping]: growright,nopercent,gauge
LegendI[cyber.ping]: Pkt LOSS
LegendO[cyber.ping]: Active Round Trip Time
YLegend[cyber.ping]: RTT
Legend1[cyber.ping]: Pkt LOSS
Legend2[cyber.ping]: Active RTT
# Google PING GRAPH
Title[google.ping]: GOOGLE.COM PING RTT / Pkt LOSS Report
PageTop[google.ping]: <H1>GOOGLE.COM PING RTT / Pkt LOSS Report</H1>
Target[google.ping]: `/cfg/norping.sh google.com`
Colours[google.ping]: R#f75712,G#04bf27,G#70ff53,R#70ff53
MaxBytes[google.ping]: 1000
AbsMax[google.ping]: 1000
Options[google.ping]: growright,nopercent,gauge
LegendI[google.ping]: Pkt LOSS
LegendO[google.ping]: Active Round Trip Time
YLegend[google.ping]: RTT
Legend1[google.ping]: Pkt LOSS
Legend2[google.ping]: Active RTT
### norping.sh
#!/bin/sh
PING="/bin/ping"
ADDR="$1"
DATA=`$PING -c2 $ADDR -q `
LOSS=`echo $DATA | awk '{print $18 }' | tr -d %`
# echo $DATA | awk -F/ '{print $5 }'
if [ $LOSS = 100 ];
then
echo 500
echo 0
else
echo 0
echo $DATA | awk -F/ '{print $6 }'
fi
### zping.sh</pre>
#!/bin/sh
PING="/bin/ping"
ADDR="$1"
DATA=`$PING -c2 -s50000 $ADDR -q `
LOSS=`echo $DATA | awk '{print $18 }' | tr -d %`
# echo $DATA | awk -F/ '{print $5 }'
if [ $LOSS = 100 ];
then
echo $LOSS
echo 0
else
echo 0
echo $DATA | awk -F/ '{print $6 }'
fi
24.851000
67.008300