newdevice: Added detection for proxmox devices (#7543)

* initial proxmox detection

* minor changes

* fixed detection

* change sysdescr
This commit is contained in:
tomarch
2017-10-27 22:14:26 +02:00
committed by Neil Lathwood
parent 8a051aa295
commit db3d9dc4ab
5 changed files with 33 additions and 1 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 121 KiB

View File

@@ -0,0 +1,28 @@
os: proxmox
type: server
group: unix
text: proxmox pve
icon: proxmox
ifXmcbc: 1
ifname: 1
over:
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_ucd_memory, text: 'Memory Usage' }
- { graph: device_storage, text: 'Storage Usage' }
poller_modules:
bgp-peers: 0
ospf: 0
stp: 0
discovery_modules:
applications: 1
bgp-peers: 0
stp: 0
vmware-vminfo: 0
libvirt-vminfo: 0
processor_stacked: 1
discovery:
-
sysObjectId:
- .1.3.6.1.4.1.8072.3.2.10
sysDescr_regex:
- '/ PVE /'

View File

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

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux some.host.name 4.9.0 #1 SMP PVE Mon Dec 12 14:44:53 CST 2016 x86_64
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10