[mrtg] Connected Users - Cisco Aironet 1200

Richard Gliebe richard.gliebe at fhv.at
Mon May 10 08:16:51 CEST 2010


Hi all,

We are running MRTG 2.14.7-2ubuntu3 on a Ubuntu 8.04.3 LTS Box.

We currently graph the interfaces from our Cisco Aironet 1200 APs.
It works as it should.

Now, I also want to graph the connected Users to the radios interfaces.

Are there some templates available? Or does somebody done this already?

The goal should be, to include everything (traffic and connected users) 
in one cfg file for one AccessPoint.

Monitoring the connected Users is already done in nagios, like this.

[...]
# some other parameters
Host=$1
Comm=<public>


MibIfDescr=.1.3.6.1.2.1.2.2.1.2.1
ConnMib=.1.3.6.1.4.1.9.9.273.1.1.2.1.1.1
Warn=$2
Crit=$3

# Nagios Output and EXIT codes

Conn=`snmpget -v1 -c$Comm $Host $ConnMib | awk '{ print $4 }'`
Radio0=`snmpget -v1 -c$Comm $Host $MibIfDescr | awk '{ print $4 }'`

if [ $Conn -le $Crit -a $Conn -ge $Warn ]
   then
     echo "WARNING: Connections $Radio0: `echo $Conn`"
     exit $STATE_WARNING
   else
     if [ $Conn -gt $Crit ]
       then
         echo "CRITICAL: Connections $Radio0: `echo $Conn`"
         exit $STATE_CRITICAL
       else
         echo "Connections $Radio0 OK: `echo $Conn`"
         exit $STATE_OK
     fi
fi

# EOF
[...]

many thanks
Richard



More information about the mrtg mailing list