Support for Avigilon Cameras

Add support for Avigilon Cameras

SNMP Walk Untitled - LibreNMS
MIBs- https://www.avigilon.com/software-downloads (search for MIBS, may require account login) I have also uploaded the MIBs to this location so a login is not required https://1drv.ms/u/s!AgyHpOu4GILhiOMAFrHd-Onom3itHQ?e=nkF0s1

1 Like

I tried to add Avigilon’s MIBS to Librenms…
When I do the SNMPWalk I get this:

####################
MIB search path: /opt/librenms/mibs
Cannot find module (AVIGILON-ROOT-MIB): At line 12 in (none)
Cannot find module (AVIGILON-CAMERA-MIB): At line 12 in (none)

AVIGILON-CAMERA-MIB::tempSensorType = INTEGER: mainSensor(1)
AVIGILON-CAMERA-MIB::tempSensorId = Gauge32: 1
AVIGILON-CAMERA-MIB::tempSensorStatus = INTEGER: ok(1)
AVIGILON-CAMERA-MIB::tempSensorValue = INTEGER: 56
AVIGILON-CAMERA-MIB::bootCount.0 = Gauge32: 201
AVIGILON-CAMERA-MIB::uptime.0 = Timeticks: (275464323) 31 days, 21:10:43.23
AVIGILON-CAMERA-MIB::ifOutBytes.0 = Counter64: 1286455123
AVIGILON-CAMERA-MIB::ifInBytes.0 = Counter64: 552272790
AVIGILON-CAMERA-MIB::ifInBandwidth.0 = Gauge32: 304000
AVIGILON-CAMERA-MIB::ifOutBandwidth.0 = Gauge32: 12033000
AVIGILON-CAMERA-MIB::ifUtilization.0 = Gauge32: 12
AVIGILON-CAMERA-MIB::ifLineSpeed.0 = Gauge32: 100000000
AVIGILON-CAMERA-MIB::storageState.0 = INTEGER: mediaNotPresent(1)
AVIGILON-CAMERA-MIB::memAvailable.0 = Gauge32: 370136
AVIGILON-CAMERA-MIB::memAvailable.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

#######

I see snmptranslate working and I have created new-os but it doesn’t work for me.

This is my file in includes/definitions/avigilon.yaml

os: avigilon
text: ‘Avigilon’
type: appliance
icon: avigilon.svg
group: avigilon
over:
- { graph: device_bits, text: ‘Device Traffic’ }
- { graph: device_processor, text: ‘CPU Usage’ }
- { graph: device_mempool, text: ‘Memory Usage’ }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.46202

Any idea??

This is the result of command

[email protected]:~$ /usr/bin/snmpget ‘-M’ ‘/opt/librenms/mibs/avigilon’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQXUte’ ‘udp:CAMERA-IP:161’ .1.3.6.1.4.1.46202

MIB search path: /opt/librenms/mibs/avigilon
Cannot find module (SNMPv2-SMI): At line 9 in /opt/librenms/mibs/avigilon/T790-AVIGILON-ROOT-MIB_4.18.0.90.txt
Did not find ‘enterprises’ in module #-1 (/opt/librenms/mibs/avigilon/T790-AVIGILON-ROOT-MIB_4.18.0.90.txt)
Unlinked OID in AVIGILON-ROOT-MIB: avigilon ::= { enterprises 46202 }
Undefined identifier: enterprises near line 11 of /opt/librenms/mibs/avigilon/T790-AVIGILON-ROOT-MIB_4.18.0.90.txt
Did not find ‘avigCommonMIB’ in module AVIGILON-ROOT-MIB (/opt/librenms/mibs/avigilon/T790-AVIGILON-CAMERA-MIB_4.18.0.90.txt)
Unlinked OID in AVIGILON-CAMERA-MIB: cameraMIB ::= { avigCommonMIB 1 }
Undefined identifier: avigCommonMIB near line 15 of /opt/librenms/mibs/avigilon/T790-AVIGILON-CAMERA-MIB_4.18.0.90.txt
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifLineSpeed ::= { ifEntry 6 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifUtilization ::= { ifEntry 5 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifOutBandwidth ::= { ifEntry 4 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifInBandwidth ::= { ifEntry 3 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifInBytes ::= { ifEntry 2 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifOutBytes ::= { ifEntry 1 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: tempSensorValue ::= { tempSensorEntry 4 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: tempSensorStatus ::= { tempSensorEntry 3 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: tempSensorId ::= { tempSensorEntry 2 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: tempSensorType ::= { tempSensorEntry 1 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: irIlluminatorStateGroup ::= { cameraMIB 13 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: memorySensorsGroup ::= { cameraMIB 12 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: mandatoryNotificationGroups ::= { cameraMIB 11 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: optionalSensorGroups ::= { cameraMIB 10 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: mandatorySensorGroups ::= { cameraMIB 9 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: cameraNotificationsGroup ::= { cameraMIB 8 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: storageSensorsGroup ::= { cameraMIB 7 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: uptimeSensorsGroup ::= { cameraMIB 6 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: notificationDescriptionGroup ::= { cameraMIB 5 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifSensorsGroup ::= { cameraMIB 4 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: temperatureSensorsGroup ::= { cameraMIB 3 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: cameraNotifications ::= { cameraMIB 2 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: cameraSensors ::= { cameraMIB 1 }
Cannot adopt OID in AVIGILON-ROOT-MIB: avigilon ::= { enterprises 46202 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: tempSensorEntry ::= { tempSensorTable 1 }
Cannot adopt OID in AVIGILON-ROOT-MIB: avigCommonMIB ::= { avigilon 1 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: alarmText ::= { cameraNotifications 3 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: alarmName ::= { cameraNotifications 2 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: alarmID ::= { cameraNotifications 1 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: cameraNotificationPrefix ::= { cameraNotifications 0 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: cameraMIB ::= { avigCommonMIB 1 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: irIlluminatorState ::= { cameraSensors 7 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: memAvailable ::= { cameraSensors 6 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: storageState ::= { cameraSensors 5 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: ifEntry ::= { cameraSensors 4 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: uptime ::= { cameraSensors 3 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: bootCount ::= { cameraSensors 2 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: tempSensorTable ::= { cameraSensors 1 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: alarmSingle ::= { cameraNotificationPrefix 3 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: alarmCleared ::= { cameraNotificationPrefix 2 }
Cannot adopt OID in AVIGILON-CAMERA-MIB: alarmNew ::= { cameraNotificationPrefix 1 }
iso.3.6.1.4.1.46202 = No Such Object available on this agent at this OID

hi @vatm01

maybe
snmpwalk -Cc -One -v1 -c XXXXX 192.168.x.y .
(note the dot on line end) will be better for anyone who want to try adding support
this walk could be then used in snmpsim