Update support for ServersCheck (#12546)

This commit is contained in:
Jellyfrog 2021-02-22 11:22:19 +01:00 committed by GitHub
parent 75a0a5e374
commit 1f68b7b0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 2494 additions and 1552 deletions

View File

@ -0,0 +1,6 @@
modules:
os:
hardware: .1.3.6.1.2.1.1.5.0
hardware_regex: '/Sensor Gateway: (?<hardware>.*)/'
version: ServersCheck::product.productversion.0
version_regex: '/Release (?<version>.*)/'

View File

@ -1,6 +1,7 @@
os: serverscheck
text: ServersCheck
type: network
type: environment
nobulk: true
discovery:
-
sysObjectID:

View File

@ -21,4 +21,4 @@
* @copyright 2017 Neil Lathwood
* @author Neil Lathwood <gh+n@laf.io>
*/
$pre_cache['serverscheck_control'] = snmpwalk_group($device, 'control', 'SERVERSCHECK-MIB');
$pre_cache['serverscheck_control'] = snmpwalk_group($device, 'control', 'ServersCheck');

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
"hardware": null,
"features": null,
"os": "serverscheck",
"type": "network",
"type": "environment",
"serial": null,
"icon": "serverscheck.svg",
"location": "<private>"

View File

@ -0,0 +1,151 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.17095",
"sysDescr": "Temperature & Sensor Gateway",
"sysContact": "<private>",
"version": "2.11",
"hardware": null,
"features": null,
"os": "serverscheck",
"type": "environment",
"serial": null,
"icon": "serverscheck.svg",
"location": "<private>"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "humidity",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.10.0",
"sensor_index": "sensor3name",
"sensor_type": "serverscheck",
"sensor_descr": "X105Y013 down Humid",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 48.75,
"sensor_limit": 70,
"sensor_limit_warn": null,
"sensor_limit_low": 30,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "humidity",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.18.0",
"sensor_index": "sensor5name",
"sensor_type": "serverscheck",
"sensor_descr": "X108Y013 top Humid",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 45.54,
"sensor_limit": 70,
"sensor_limit_warn": null,
"sensor_limit_low": 30,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.2.0",
"sensor_index": "sensor1name",
"sensor_type": "serverscheck",
"sensor_descr": "X105Y013 back Temp",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 26.44,
"sensor_limit": 46.44,
"sensor_limit_warn": null,
"sensor_limit_low": 16.44,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.6.0",
"sensor_index": "sensor2name",
"sensor_type": "serverscheck",
"sensor_descr": "X105Y013 down Temp",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 21.88,
"sensor_limit": 41.88,
"sensor_limit_warn": null,
"sensor_limit_low": 11.88,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.14.0",
"sensor_index": "sensor4name",
"sensor_type": "serverscheck",
"sensor_descr": "X108Y013 top Temp",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 23.63,
"sensor_limit": 43.63,
"sensor_limit_warn": null,
"sensor_limit_low": 13.63,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
}
],
"state_indexes": []
},
"poller": "matches discovery"
}
}

View File

@ -0,0 +1,28 @@
1.3.6.1.2.1.1.1.0|4|Temperature & Sensor Gateway
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.17095
1.3.6.1.2.1.1.3.0|67|28478744
1.3.6.1.2.1.1.4.0|4|<private>
1.3.6.1.2.1.1.5.0|4|<private>
1.3.6.1.2.1.1.6.0|4|<private>
1.3.6.1.4.1.17095.1.1.0|4|Temperature & SensorGateway
1.3.6.1.4.1.17095.1.2.0|4|Release 2.11
1.3.6.1.4.1.17095.3.1.0|4|X105Y013 back Temp
1.3.6.1.4.1.17095.3.2.0|4|26.44
1.3.6.1.4.1.17095.3.3.0|4x|00
1.3.6.1.4.1.17095.3.4.0|4x|00
1.3.6.1.4.1.17095.3.5.0|4|X105Y013 down Temp
1.3.6.1.4.1.17095.3.6.0|4|21.88
1.3.6.1.4.1.17095.3.7.0|4x|00
1.3.6.1.4.1.17095.3.8.0|4x|00
1.3.6.1.4.1.17095.3.9.0|4|X105Y013 down Humid
1.3.6.1.4.1.17095.3.10.0|4|48.75
1.3.6.1.4.1.17095.3.11.0|4|DOWN
1.3.6.1.4.1.17095.3.12.0|4|19/02/2021,10:48:45
1.3.6.1.4.1.17095.3.13.0|4|X108Y013 top Temp
1.3.6.1.4.1.17095.3.14.0|4|23.63
1.3.6.1.4.1.17095.3.15.0|4x|00
1.3.6.1.4.1.17095.3.16.0|4x|00
1.3.6.1.4.1.17095.3.17.0|4|X108Y013 top Humid
1.3.6.1.4.1.17095.3.18.0|4|45.54
1.3.6.1.4.1.17095.3.19.0|4|WARNING
1.3.6.1.4.1.17095.3.20.0|4|21/02/2021,21:47:58