mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
OID to MIB changed
This commit is contained in:
parent
932b38d086
commit
ce8b1121ec
1 changed files with 17 additions and 8 deletions
|
@ -11,6 +11,7 @@
|
||||||
# June, 1991.
|
# June, 1991.
|
||||||
#
|
#
|
||||||
# Version: v1.00 30.10.2011 First draft of the fortigate plugin
|
# Version: v1.00 30.10.2011 First draft of the fortigate plugin
|
||||||
|
# v1.01 19.01.2012 OID to MIB changed, plugins gets faster
|
||||||
#
|
#
|
||||||
# Parameters: config (required)
|
# Parameters: config (required)
|
||||||
# autoconf (optional)
|
# autoconf (optional)
|
||||||
|
@ -27,6 +28,10 @@
|
||||||
# Fortigate Activate snmp on your Fortigate firewall. Fortigate documentation
|
# Fortigate Activate snmp on your Fortigate firewall. Fortigate documentation
|
||||||
# at https://support.fortinet.com
|
# at https://support.fortinet.com
|
||||||
#
|
#
|
||||||
|
# MIB Download and copy the Fortigate MIB defintion file to
|
||||||
|
# /usr/share/snmp/mibs/FORTINET-300-MIB.txt (Filename depends on
|
||||||
|
# used Version)
|
||||||
|
#
|
||||||
# Tested with Fortinet Fortigate-50B, Firmware 3.00(MR6) on Ubuntu 10.04 LTS
|
# Tested with Fortinet Fortigate-50B, Firmware 3.00(MR6) on Ubuntu 10.04 LTS
|
||||||
# with Munin 1.4.4 installed.
|
# with Munin 1.4.4 installed.
|
||||||
#
|
#
|
||||||
|
@ -38,18 +43,22 @@
|
||||||
|
|
||||||
### Constants ------------------------------------------------------------------
|
### Constants ------------------------------------------------------------------
|
||||||
SNMPCLIENT=`basename $0 | sed 's/^snmp_//g' | cut -d "_" -f1`
|
SNMPCLIENT=`basename $0 | sed 's/^snmp_//g' | cut -d "_" -f1`
|
||||||
SNMPGET="/usr/bin/snmpget -c $community -v 2c $SNMPCLIENT"
|
MIBFILE="/usr/share/snmp/mibs/FORTINET-300-MIB.20080414.txt"
|
||||||
|
FNTYPE=`echo $MIBFILE | cut -d "." -f1 | cut -d "/" -f6`
|
||||||
|
SNMPGET="/usr/bin/snmpget -m $MIBFILE -c $community -v 2c $SNMPCLIENT"
|
||||||
|
|
||||||
|
|
||||||
### Variables ------------------------------------------------------------------
|
### Variables ------------------------------------------------------------------
|
||||||
fnSysVersion="1.3.6.1.4.1.12356.1.3.0"
|
fnSysVersion="1.3.6.1.4.1.12356.1.3.0"
|
||||||
FGTcpu="1.3.6.1.4.1.12356.1.8.0"
|
FGTcpu="$FNTYPE::fnSysCpuUsage.0"
|
||||||
fnSysVersion="1.3.6.1.4.1.12356.1.3.0"
|
fnSysVersion="$FNTYPE::fnSysVersion.0"
|
||||||
fnSysMemUsage="1.3.6.1.4.1.12356.1.9.0"
|
fnSysMemUsage="$FNTYPE::fnSysMemUsage.0"
|
||||||
fnSysSesCount="1.3.6.1.4.1.12356.1.10.0"
|
fnSysSesCount="$FNTYPE::fnSysSesCount.0"
|
||||||
fnVPNSslStatsLoginUsers="1.3.6.1.4.1.12356.9.5.1.3.1"
|
fnVPNSslStatsLoginUsers="$FNTYPE::fnVpnSslStatsLoginUsers.1"
|
||||||
fnVPNSslStatsActiveWebSessions="1.3.6.1.4.1.12356.9.5.1.5.1"
|
fnVPNSslStatsActiveWebSessions="$FNTYPE::fnVpnSslStatsActiveWebSessions.1"
|
||||||
fnVPNSslStatsActiveTunnels="1.3.6.1.4.1.12356.9.5.1.7.1"
|
fnVPNSslStatsActiveTunnels="$FNTYPE::fnVpnSslStatsActiveTunnels.1"
|
||||||
|
mibfile="/usr/share/snmp/mibs/FORTINET-300-MIB.20080414.txt"
|
||||||
|
|
||||||
UNIT=`$SNMPGET $fnSysVersion | cut -d ":" -f4 | cut -d " " -f2 | cut -d "\"" -f2`
|
UNIT=`$SNMPGET $fnSysVersion | cut -d ":" -f4 | cut -d " " -f2 | cut -d "\"" -f2`
|
||||||
SCPU=`$SNMPGET $FGTcpu | cut -d ":" -f4 | cut -d " " -f2`
|
SCPU=`$SNMPGET $FGTcpu | cut -d ":" -f4 | cut -d " " -f2`
|
||||||
SMEM=`$SNMPGET $fnSysMemUsage | cut -d ":" -f4 | cut -d " " -f2`
|
SMEM=`$SNMPGET $fnSysMemUsage | cut -d ":" -f4 | cut -d " " -f2`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue