############################################################################## # interface-genericsnmp.template v20030204 by gvolk@gvolk.com # # The following is a mrtg template that can be used in conjunction with # cfgmaker for automatically building configs for monitoring some basic # SNMP mibII interface-based variables. It should work on any snmp mibII # compliant interface. # Usage: cfgmaker --if-template=interface-genericsnmp.template public@host # # This template is available under the GNU GPL. For more information, please # see http://www.gnu.org/copyleft/gpl.html. # # # Version History: # 20030204 - Initial Release # # Modified by Jo HoSeok 2005-05-13 laday@chol.com # Original Templates: http://mrtg.gvolk.com # This Templates: http://www.solanara.net/downloads/interface-genericsnmp.template if ($if_ok) { my $target_name = $target_name . "-octets"; my $directory_name = $directory_name . ""; $head_lines .= <$router_name $if_ref Transmits
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description: Input & Output Bits
Resource:ifInOctets & ifOutOctets
ECHO } if ($if_ok) { my $target_name = $target_name . "-unicastpkts"; my $directory_name = $directory_name . ""; $head_lines .= <$router_name $if_ref Unicast Packets
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description: Input & Output Unicast Packets
Resource:ifInUcastPkts & IfOutUcastPkts
ECHO } if ($if_ok) { my $target_name = $target_name . "-nonunicastpkts"; my $directory_name = $directory_name . ""; $head_lines .= <$router_name $if_ref Non Unicast Packets
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description: Input & Output Non Unicast Packets
Resource:ifInNUcastPkts & IfOutNUcastPkts
ECHO } if ($if_ok) { my $target_name = $target_name . "-inoutdiscards"; my $directory_name = $directory_name . ""; $head_lines .= <$router_name $if_ref Discards
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description: Input & Output Discards
Resource:ifInDiscards & ifOutDiscards
ECHO } if ($if_ok) { my $target_name = $target_name . "-inouterrors"; my $directory_name = $directory_name . ""; $head_lines .= <$router_name $if_ref Errors
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description: Input & Output Errors
Resource:ifInErrors & ifOutErrors
ECHO } if ($if_ok) { my $target_name = $target_name . "-outqlen"; my $directory_name = $directory_name . ""; $head_lines .= <$router_name $if_ref Output Queue Length
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description: Output Queue Length
Resource:ifOutQLen
ECHO }