M and MSM Series
1756707 Members
2440 Online
108852 Solutions
New Discussion

Re: Monitor MSM 760 from OpsView

 
MichaelRicardo
Frequent Advisor

Monitor MSM 760 from OpsView

Hello,

Trying out OpsView Atom and does anyone know how to Monitor MSM 760 from OpsView  - Like its' status and health ,  AP/Clients isues etc

Any help appreciated,

Regards,

Michael

7 REPLIES 7
Walter001
Advisor

Re: Monitor MSM 760 from OpsView

I don't know OpsView. I'm using nagios/icinga and wrote a script. Script using snmp. Under "1.3.6.1.4.1.8744.5.23.1.2.1.1" there are statusinformations. Perhaps it helps?

MichaelRicardo
Frequent Advisor

Re: Monitor MSM 760 from OpsView

yes - thats good - opsview is nagios with different gui. let me know if you can share this.

I know nothing of monitoring and your help much appreciated.

regards, 

michael

Walter001
Advisor

Re: Monitor MSM 760 from OpsView

only bash-script, hope it helps

#! /bin/bash
OID="1.3.6.1.4.1.8744.5.23.1.2.1.1"
HOST="192.168.0.1"
EXITOK=0
ECHOOK=""
j=0

STATUS[1]="disconnected (1)"
STATUS[2]="authorized (2)"
STATUS[3]="join (3)"
STATUS[4]="firmware (4)"
STATUS[5]="security (5)"
STATUS[6]="configuration(6)"
STATUS[7]="running (7)"

declare -a status=( $(snmpwalk -v 2c -c public -Oqv $HOST ${OID}.5) )
if [ "$?" = "0" ]; then

for i in "${status[@]}"
do
case $i in
1) let "EXITOK=$EXITOK | 2" ;;
[2-6]) let "EXITOK=$EXITOK | 1" ;;
7) let "EXITOK=$EXITOK | 0" ;;
esac
done

if [ $EXITOK -gt 0 ]; then
declare -a sernr=( $(snmpwalk -v 2c -c public -Oqv $HOST ${OID}.2) )
declare -a ipaddr=( $(snmpwalk -v 2c -c public -Oqv $HOST ${OID}.4) )
declare -a name=( $(snmpwalk -v 2c -c public -Oqv $HOST ${OID}.6 | sed "s/ /_/g" ) )
declare -a location=( $(snmpwalk -v 2c -c public -OEqv $HOST ${OID}.7 | sed "s/ /-/g" ) )
declare -a group=( $(snmpwalk -v 2c -c public -Oqv $HOST ${OID}.9 | sed "s/ /_/g" ) )

for i in "${status[@]}"
do
if [ $i -lt 7 ]; then
echo ${name[$j]}${STATUS[$i]}" "${group[$j]},${location[$j]},${ipaddr[$j]}| sed "s/\"/ /g"
fi
let j++
done
else
echo ${#status[@]} Accesspoints running
fi

else
echo $status
EXITOK=1
fi
exit $EXITOK

Guillaule
Frequent Advisor

Re: Monitor MSM 760 from OpsView

Hi

 i found a script like this for nagios

https://exchange.nagios.org/directory/Addons/Active-Checks/Check-AP-%28acces-point%29-under-a-MSM-760-series-%28like-MSM765%29/details

 

but i get always the same return

/usr/lib/nagios/plugins$ sudo ./check_msm_access_point.sh -H <MSM_DNS_NAME> -C nageon -AP <AP_NAME>
CRITICAL AP Name: Serial: Location: Uptime: Contact: IP: MAC: Status:

same with snmpwalk or snmpget

/usr/lib/nagios/plugins$ snmpwalk -v 2c -c nageon <MSM_DNS_NAME> -Osq .1.3.6.1.4.1.8744.5.23.1.2.1.1.5
iso.3.6.1.4.1.8744.5.23.1.2.1.1.5 No Such Object available on this agent at this OID

 

thanks for your help

Walter001
Advisor

Re: Monitor MSM 760 from OpsView

Hello,

try an query in tree above, for instance

snmpwalk -v 2c -c nageon <MSM_DNS_NAME> -Osq .1.3 | more

and check output. The first lines are device-info. The correct device?

Guillaule
Frequent Advisor

Re: Monitor MSM 760 from OpsView

 

Hi

 thanks for your update

 yes information are ok 

iso.3.6.1.2.1.1.1.0 "MSM760 - Hardware revision B - Serial number xxxxxx- Firmware version 6.5.0.1-19720"
iso.3.6.1.2.1.1.2.0 iso.3.6.1.4.1.8744.1.48
iso.3.6.1.2.1.1.3.0 75:0:38:52.00
iso.3.6.1.2.1.1.4.0 "IT@xxxx.com"
iso.3.6.1.2.1.1.5.0 " <MSM_NAME>"
iso.3.6.1.2.1.1.6.0 "<location>"
iso.3.6.1.2.1.1.7.0 6
iso.3.6.1.2.1.2.1.0 84
iso.3.6.1.2.1.2.2.1.1.1 1
iso.3.6.1.2.1.2.2.1.1.2 2
iso.3.6.1.2.1.2.2.1.1.3 3
iso.3.6.1.2.1.2.2.1.1.4

 

i have hundred of pages with OID

regards

Guillaule
Frequent Advisor

Re: Monitor MSM 760 from OpsView

After change SNMP settings to only v1 and v2 in MSM it works again