mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added detection for proxmox devices (#7543)
* initial proxmox detection * minor changes * fixed detection * change sysdescr
This commit is contained in:
1
html/images/logos/proxmox.svg
Normal file
1
html/images/logos/proxmox.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.0 KiB |
1
html/images/os/proxmox.svg
Normal file
1
html/images/os/proxmox.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 121 KiB |
28
includes/definitions/proxmox.yaml
Normal file
28
includes/definitions/proxmox.yaml
Normal 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 /'
|
@@ -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";
|
||||
|
2
tests/snmpsim/proxmox.snmprec
Normal file
2
tests/snmpsim/proxmox.snmprec
Normal 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
|
Reference in New Issue
Block a user