PipoCanaja d4f32a250e Support for Alcatel OmniPCX (#9375)
* device: support for Alcatel OmniPCX Server

* device: support for Alcatel OmniPCX Server - add test data

* rename

* Add a new versatile type of sensor, without unit - doc extension

* tests data updated for omnipcx

* new count test after funny rebase

* clean

* tests

* index in yaml file ...

* Update omnipcx.json

* try to add pbx state

* Change function snmpwalk_cache_oid to allow snmpvalue without index

* testdata

* Adapt the discovery_schema (to allow a non_indexed oid)

* Update snmp.inc.php
2019-01-22 17:34:45 -06:00

54 lines
2.4 KiB
YAML

mib: ALCATEL-NMC-PROXY-AGENT-MIB:A4400-RTM-MIB:A4400-CPU-MIB
modules:
sensors:
state:
data:
-
oid: pbxState
value: pbxState
num_oid: '.1.3.6.1.4.1.637.64.4400.1.2'
descr: 'Pbx State'
state_name: pbxState
index: 'pbxState'
states:
- { descr: Normal , graph: 0, value: 5 , generic: 0 }
- { descr: Critical , graph: 0, value: 1 , generic: 2 }
- { descr: Major , graph: 0, value: 2 , generic: 2 }
- { descr: Minor , graph: 0, value: 3 , generic: 1 }
- { descr: Warning , graph: 0, value: 4 , generic: 1 }
- { descr: Indeterminate , graph: 0, value: 0 , generic: 3 }
-
oid: pbxRole
value: pbxRole
num_oid: '.1.3.6.1.4.1.637.64.4400.1.4.{{ $index }}'
descr: 'Pbx Role'
index: 'pbxRole{{ $index }}'
state_name: pbxRole
states:
- { descr: Main , graph: 0, value: 1 , generic: 0 }
- { descr: Standby , graph: 0, value: 2 , generic: 0 }
- { descr: Active PCS , graph: 0, value: 3 , generic: 0 }
- { descr: Inactive PCS , graph: 0, value: 4 , generic: 0 }
- { descr: Unknown , graph: 0, value: 0 , generic: 3 }
count:
data:
-
oid: setsInService
value: setsInService
num_oid: '.1.3.6.1.4.1.637.64.4400.1.7.{{ $index }}'
descr: 'Pbx Sets in service'
index: 'setsInService{{ $index }}'
low_limit: 0
high_limit: 100000
group: 'Sets'
-
oid: setsOutOfService
value: setsOutOfService
num_oid: '.1.3.6.1.4.1.637.64.4400.1.8.{{ $index }}'
descr: 'Pbx Sets out of service'
index: 'setsOutOfService{{ $index }}'
low_limit: 0
high_limit: 100000
group: 'Sets'