Was looking for the experts to help here ...
I've installed PNP4Nagios and currently using the check_snmp_int plugin (http://nagios.manubulon.com/snmp_int.html) to monitor my network traffic. All is working well however, i would really like to use a cool template for it, other than the existing one and edit a few bits but i don't have any idea to script this. I know the doco is on the PNP4Nagios site but it's a bit intense to what level i'm at right now..
Here are my issues/questions:
1. Currently the graph is listing in bytes as opposed to kb which I'm looking for (as attached).
2. Is it possible to also add the 'Link Speed' as per the image attached? In fact, i'm pretty much looking for this exact tomeplate lol.
This is the existing template i want to change..
Code: Select all
<?php
#
# Copyright (c) 2006-2010 Joerg Linge (http://www.pnp4nagios.org)
# Plugin: check_snmp_int.pl (COUNTER)
#
$opt[1] = " --vertical-label \"Bytes\" -b 1000 --title \"Interface Traffic for $hostname / $servicedesc\" ";
$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:AVERAGE " ;
$def[1] .= "DEF:var2=$RRDFILE[2]:$DS[2]:AVERAGE " ;
$def[1] .= "LINE1:var1#0000FF:\"in \" " ;
$def[1] .= "GPRINT:var1:LAST:\"%7.2lf %SB/s last\" " ;
$def[1] .= "GPRINT:var1:AVERAGE:\"%7.2lf %SB/s avg\" " ;
$def[1] .= "GPRINT:var1:MAX:\"%7.2lf %SB/s max\\n\" " ;
$def[1] .= "LINE1:var2#00ff00:\"out \" " ;
$def[1] .= "GPRINT:var2:LAST:\"%7.2lf %SB/s last\" " ;
$def[1] .= "GPRINT:var2:AVERAGE:\"%7.2lf %SB/s avg\" " ;
$def[1] .= "GPRINT:var2:MAX:\"%7.2lf %SB/s max\\n\" ";
if($this->MACRO['TIMET'] != ""){
$def[1] .= "VRULE:".$this->MACRO['TIMET']."#000000:\"Last Service Check \\n\" ";
}
?>
Thanks for your time and happy holidays!
