Added Support for Unitrends Backup (#10411)

This commit is contained in:
jozefrebjak
2019-07-05 08:49:03 +02:00
committed by PipoCanaja
parent 55f67f42fe
commit 20b3211e7e
8 changed files with 3893 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
mib: UNITRENDS-SNMP
modules:
pre-cache:
data:
- oid:
- backupClient
- backupType
- backupTime
sensors:
state:
data:
-
oid: backupStatusString
num_oid: '.1.3.6.1.4.1.21865.1.3.10.2.1.4.{{ $index }}'
group: Backup
descr: "{{ $backupClient }} ({{ $backupType }}: {{ $backupTime }})"
state_name: backupStatusString
states:
- { value: 0, generic: 0, graph: 1, descr: 'Success' }
- { value: 1, generic: 1, graph: 1, descr: 'Warnings' }
- { value: 2, generic: 2, graph: 1, descr: 'Failed' }

View File

@@ -0,0 +1,14 @@
os: recoveryos
text: RecoveryOS
type: server
icon: unitrends
group: unix
mib_dir:
- unitrends
discovery:
-
sysObjectID: .1.3.6.1.4.1.8072.3.2.10
snmpget:
oid: .1.3.6.1.4.1.21865.1.6.1.0
op: starts
value: U

View File

@@ -1,6 +1,6 @@
<?php
if ($device['os'] == "linux" || $device['os'] == "endian" || $device['os'] == "proxmox") {
if ($device['os'] == "linux" || $device['os'] == "endian" || $device['os'] == "proxmox" || $device['os'] == "recoveryos") {
list(,,$version) = explode(" ", $device['sysDescr']);
if (strstr($device['sysDescr'], "386")|| strstr($device['sysDescr'], "486")||strstr($device['sysDescr'], "586")||strstr($device['sysDescr'], "686")) {
$hardware = "Generic x86";