Commit Graph

2353 Commits

Author SHA1 Message Date
Tony Murray
3dba5cd39d newdevice: Support Avtech RoomAlert 32E/W and RoomAlert 11E (#7614)
* newdevice: support Avtech RoomAlert 32E/W
Move avtech discovery to yaml, took a bit of trickery

* More flexibility when checking pre-cached data
A little cleanup

* Add support for RoomAlert 32E/W external and wish temp sensors
Add RoomAlert 11E support (just temp sensors)
Updated ROOMALERT32E-MIB
2017-11-04 21:25:13 +00:00
tomarch
100995294e device: Update hwg-ste and add hwg-ste-plus support (#7610)
* update hwg-ste and add hwg-ste-plus support

* remove humidity graph over
2017-11-04 21:18:02 +00:00
Tony Murray
54b476c769
fix: devices detected as ibmtl or generic (#7618)
* fix: devices detected as ibmtl
Guess at the sysObjectID, please report if you have devices that should be ibmtl and are no longer detected.
Add output of os in discovery.

* Always load all os for discovery.  Should be cached most of the time.
2017-11-03 16:10:24 -05:00
Tony Murray
0d07f85257 feature: Allow snmpget in os discovery yaml (#7587)
* feature: Allow snmpget in os discovery yaml

Re-submit after release

* Remove extra trim in discovery and in snmp_get.
also trim() always returns a string, so is_string() check is a waste of cpu cycles.
2017-11-02 12:41:18 +00:00
Chris A. Evans
47b999cebd device: Change Ironware mempools NetIron checking logic from sysObjectID to sysDescr (#7602)
* Changed the NetIron checking logic from sysObjectID to sysDescr

* updated method of checking sysDescr in ironware mempool files

* Update ironware-dyn.inc.php
2017-11-01 21:41:15 +00:00
Neil Lathwood
b2c5d069a7
fix: Updated hpe iPdu to remove power and fix load values (#7596) 2017-10-31 21:08:26 +00:00
Neil Lathwood
a71c33fb63
newdevice: Added Temp and Humidity support for ServersCheck devices (#7588) 2017-10-31 20:32:18 +00:00
Zmegolaz
e74b1c3e51 Fix: discovery.php -h all stops working after ping only device (#7593)
* Temporary array per device in discovery.

* Return at the beginning of discover_device() if snmp_disable.
2017-10-31 08:26:25 -05:00
Tony Murray
426916dbe4
Revert "feature: Allow snmpget in os discovery yaml (#7558)" (#7576)
This reverts commits:
193db02475
b73c4e9d6e
a93bb6635d
2017-10-29 14:04:26 -05:00
Tony Murray
7e05fff615
fix: lldp find_port_id finds not the most correct port (#7564)
Order statements to give some results precedence over others.
Union the results but limit 1 so we can stop when we get the first result.
Checking if variables doesn't work very well without the device_id
2017-10-29 13:37:39 -05:00
Zmegolaz
f8d7ccfe0d feature: Support for up/down detection of ping only devices.
* Added support for ping only devices.

* Renamed sql-schema/206 to 207.

* Discovery tried to detect the OS when it shouldn't.

* Updated db_schema.yaml

* Added ping icon.

* Don't show unused graphs and tabs when SNMP is disabled.

* Allow the user to specify OS of ping only devices.

* Removing custom OS now changes it to 'ping'.

* Removed unnecessary use of mres().

* UI select box for SNMP enable/disable.

* Hide device_ping_perf if ping is disable on device.

* Fixed SNMP settings update status messages.

* Added functionality to add ping only devices via the web ui.

* Added ping only option to addhost.php

* Added ping only support to snmp-scan.py

* Moved sql 208 to 211

* Fixed scrutinizer issues.

* Fixed broken ossearch.

* Added ping only support to the API.

* Updated API doc.

* Added (optional) to OS and hardware description. Hid Port Settings, Applications, Modules, Storage, Processors, Memory and Components from the edit menu

* Style fix.

* Updated ping icon.

* clean() instead of mres(). More escaping. Better help in snmp-scan.py and addhost.php

* Fixed scrutinizer issue.

* Always try SNMP in snmp-scan.py, new option for it in addhost.php. Slice instead of chunk in ajax_ossuggest.php. Other minor style changes.

* Updated sql modifications to insert the new column in the same place as in db_schema.yaml.
2017-10-27 22:59:25 -05:00
Tony Murray
b73c4e9d6e refactor: Allow os discovery deferral (#7561)
Defer some os till last, generic or slow ones. (linux, freebsd, ibmtl)
last file standing is ubnt.inc.php
2017-10-27 21:55:14 +01:00
Tony Murray
193db02475 feature: Allow snmpget in os discovery yaml (#7558)
* feature: Allow snmpget in os discovery yaml
Convert all remaining os except airos.

Affected OS: asuswrt-merlin, ddnons, dsm, extrahop, huaweiups, ibmtl, pcoweb, pktj, qnap, remoteeye4, sentry3, sentry4, tomato

There should be not change in detection.

* Fix, asuswrt-merlin and tomato with snmpsim.  May not have been an issue with actual devices because of -Oa leading " was a bit odd.

* missed file
2017-10-26 20:48:33 +01:00
Aldemir Akpinar
f18f5eb3b9 newdevice: Fixed Moxa cpu polling, add support for EDS-G508E and power (#7477)
* Fix Moxa cpu polling problem, also add support for EDS-G508E, and power graphs

* Dynamic discovery support for EDS-G508E-T and IKS-6726A-2GTXSFP-T

* fixes as requested

* Added another snmp_cache_multi_oid and fixed a typo

* Revert back to old file name
2017-10-26 11:41:50 +01:00
Neil Lathwood
e751206f74 newdevice: Added more detection for IgniteNet FusionSwitch (#7384)
* newdevice: Added more detection for IgniteNet FusionSwitch

* fixed current graphs descr

* small updates

* small updates recommended by murrant
2017-10-25 08:10:02 -05:00
TomEvin
2e54108197 newdevice: Moved Riverbed temp/state into yaml (#7535)
Riverbed Temperature and State discovery move to Yaml and fixed State display
2017-10-24 22:22:12 +01:00
Tony Murray
f01cf38a3a fix: lldp discovery change local port resolution (#7443)
* fix: lldp discovery change local port resolution
dot1dBasePortIfIndex seems to skip some ports in certain configurations on Cisco devices.
Add quirk for Calix devices that return different port labels than they actually are.

* bdcom uses NMS-LLDP-MIB too.

* use dot1dBasePort to look up ifIndex if we can.
2017-10-24 08:21:32 +01:00
crcro
2a15da2228 fix: Ignore OEM ipmi sensors that returns unreadable values (#7518)
* fix for OEM ipmi server that doesn't return hreshold

* escape chars, typo
2017-10-20 16:43:27 +01:00
Tony Murray
186ff42ef8 newdevice: Updated Unifi AC HD detection (#7516)
* fix Unifi AC HD detection
dot11manufacturerName.5 doesn't exist, only .30-.33

* add unit test
2017-10-19 08:07:00 +01:00
Chris A. Evans
04bb65b762 newdevice: Added Brocade IronWare interface dBm sensor support (#7434)
* Added IronWare iface dBm sensor and related OID pr~e-cache

* fixed syntax violations

* added return_num() function and modified ironware dbm sensor to use it

* Update functions.php

* Update ironware.inc.php
2017-10-17 17:36:49 +01:00
tomarch
c643d13cb5 newdevice: Added vpn state and flash usage for zywall usg (#7500) 2017-10-17 17:09:52 +01:00
tomarch
1318e5871c newdevice: Added support for Eaton ATS devices (#7448)
* eaton-ats: add definition, voltage, frequency and state

* eaton-ats: missing snmprec file

* fix some syntax error

* fix some syntax error, again

* exclude eaton-ats from eaton-mgeups definition

* change eaton-ats definition

* move state and output voltage to yaml syntax

* Update eaton-mgeups.yaml
2017-10-15 21:06:11 +01:00
Tony Murray
2f2234da70 fix: cdp matching incorrect ports (#7491)
Need either remote device_id or mac_address to find a port, otherwise, we might match an incorrect port.
2017-10-15 19:49:28 +01:00
Martin Zatloukal
f48cff0f1b newdevice: Added support for Racom RAy devices (#7466) 2017-10-15 19:31:44 +01:00
Neil Lathwood
6b44ac784a newdevice: Added support for Huawei OceanStor devices 2017-10-12 19:55:25 +02:00
sfini
3381b401f9 newdevice: Added Support for ApsoluteOS / Defense Pro Hw (#7440)
* Add Support for ApsoluteOS  / Defense Pro Hw

* apsoluteos.snmprec

* Create apsoluteos.yaml

* Create apsoluteos.inc.php

* Create apsoluteos.inc.php

* Create test

* mibs

* Delete test

* Update apsoluteos.yaml

* Update apsoluteos.inc.php

* Update apsoluteos.inc.php

* Create radwaremib.txt

* Update apsoluteos.yaml

* Update apsoluteos.yaml

* Delete BGP4-MIB.mib

* delete mib dir

delete

* CHANGE NAME
2017-10-10 14:18:47 +01:00
TomEvin
b45b2be695 Update hpe-ilo.inc.php (#7465) 2017-10-10 13:31:34 +01:00
TomEvin
c8b677779d newdevice: Added HPE ILO4 storage, memory and additional sensors
* HPE ILO4 enhance

Added Storage, Memory pools, new status (Array Controller, Logical Drive)

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete hpe.ilo.inc.php
2017-10-09 20:24:20 +01:00
tomarch
c927e6d68c newdevice: Updated Zyxelnwa to add storage, mempools and wireless support
* zyxelnwa: add storage, mempools and wireless

* zyxelnwa: add storage, mempools and wireless

* Update Zyxelnwa.php

* zyxelnwa: add MIB and use snmp-get
2017-10-07 21:17:51 +01:00
Tony Murray
f92449e637 fix: issues with recent discovery refactor (#7437)
fix find_port_id() deleting all variables when device_id was given
improve find_port_id() to find ports where only a number is given
fix orphan deletion count
fix insert and update of links with strings where int are required
2017-10-06 08:53:16 -05:00
tomarch
d46df1770e device: Added Dlink dap2660 add processors and mempools (#7428)
* update zywall.yaml ; use sysDescr_regex_except

* Cleanup technicolor

* newdevice: technicolor TG650S and TG670S

* Devices: Add cpu and mem for dlinkap

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Update dlinkap.inc.php

* Delete dlinkap.inc.php
2017-10-04 20:54:55 +01:00
Tony Murray
c0b267b49c refactor: Discovery protocols re-write (#7380)
* refactor: discovery protocols re-write
extract more code to make it easier to read
use snmpwalk_group
walk lldpRemTable instead of lldpRemoteSystemsData
Optimize discover_device to reduce dns lookups of bad dns names
Make discovery_by_ip behavior consistent between cdp and lldp
move can_skip_discovery to discovery functions

Tested lldp, cdp, and ospf.

* always discover links even if the remote device isn't in system
Fix discover_link always updating

* fix style

* fix update, not fetching id

* increase platform length.  Most devices use sysDescr here, which is max length 255

* remove orphaned links

* update db_schema.yaml
2017-10-04 08:16:23 +01:00
Tony Murray
738067e622 fix: rfc1628 state sensor translations (#7416) 2017-10-02 15:08:02 +00:00
Neil Lathwood
592e8aca4c newdevice: Added sensor detection for APC In Row RD devices (#7385)
* newdevice: Added sensor detection for APC In Row RD devices

* Update apc.yaml

* Update apc.yaml

* Update cooling.inc.php

* Update pressure.inc.php
2017-09-29 21:13:27 +01:00
Tony Murray
39804b047d refactor: rfc1628 sensor tidy up (#7341)
* refactor: rfc1628 tidy up
reduce the amount of snmp calls

* Did not finish re-writing rfc1628 load

* fix type in bypass power oid

* remove testing changes
2017-09-19 20:12:04 +01:00
Neil Lathwood
aef79535f4 newdevice: Added support for A10 ACOS devices (#7327)
* newdevice: Added support for A10 ACOS devices
2017-09-17 21:33:09 +02:00
Neil Lathwood
4ad8faecdc refactor: Added detection of vlan name changes (#7348) 2017-09-16 21:19:54 -05:00
Tony Murray
b4d804f2ac fix: rfc1628 runtime - allow os quirks (#7340)
* fix: rfc1628 runtime - allow os quirks
Also, properly divide values at discovery
Remove accidental debug output
2017-09-14 21:55:07 +01:00
Tony Murray
f158a56774 fix incorrect getOsSetting arguments (#7339)
Missed calls when the function definition changed.
2017-09-14 00:43:14 -05:00
Neil Lathwood
b3567041dd newdevice: Added support for SmartOptics M-Series (#7314)
* newdevice: Added support for SmartOptics M-Series

* added os polling file
2017-09-13 21:12:56 -05:00
Tony Murray
98786c0ea7 feature: Allow ignore_mount, ignore_mount_string, ignore_mount_regex per OS (#7304)
* feature: Allow ignore_mount, ignore_mount_string, ignore_mount_regex at OS level

* Change the storage settings to override global instead of merge.
Add documentation
2017-09-13 19:43:21 +01:00
Neil Lathwood
e0040b2831 newdevice: Added support for Toshiba RemotEye4 devices (#7312)
* newdevice: Added support for Toshiba RemotEye4 devices

* small updates thanks to kate

* Update new-os.php

* Update new-os.php
2017-09-12 22:27:06 -05:00
Tony Murray
b18c41b1a9 refactor: Use the Config class includes/discovery (#7299)
* refactor: use the Config class includes/discovery

* fix issue with $config variable not accessible in include-dir.inc.php

* improved whitespace

* Tidy up discovery_by_ip
2017-09-11 21:26:41 +01:00
Neil Lathwood
455c72156d newdevice: Added support for Saf Integra Access points (#7292)
* newdevice: Added support for Saf Integra Access points

* Split SAF Integra models out

* added polling files

* Update saf-integra-b.yaml

* Update saf-integra-w.yaml
2017-09-08 15:22:03 -05:00
Neil Lathwood
f7e14df90e newdevice: Updated Arista entity-physical support to use high/low values from device (#7156)
* fix: Fixed the high/low thresholds for Arista devices

* final updates

* push threshold changes

* more updates

* another update

* updated entity-sensor for current value calc

* hoping final update
2017-09-07 08:49:32 -05:00
Andrew Holmes
da0dcda409 newdevice: Updated state sensor code for Netonix 2017-09-03 21:08:57 +01:00
Tony Murray
7b262a6851 refactor: Improve yaml state discovery (#7221)
* feature: Improve yaml state discovery
Handle state values that are returned as strings instead of int
Synchronize state values for existing state translations so we can change them without creating a new translation and losing historical data
More extensive/verbose yaml discovery phpunit tests
dbBulkInsert, use the first entry instead of requiring the first entry to be at index 0

* Update sensor state documentation
re-order values for better readability
remove os check
Use snmpwalk_group since it is more flexible

* Add some more debug output in dynamic discovery
2017-09-03 19:58:39 +01:00
sfini
b85269f00e newdevice: Added Support for Radware / AlteonOS OS/Mem/Proc (#7220)
* Added Support for Radware / AlteonsOS OS/Mem/Proc

* Discovery processors alteonos.inc.php

* Delete alteonos.inc.php

* file for discovery mempools

* File for discovery  processors alteonos.inc.php

* file for polling mempools alteonos.inc.php

* Update alteonos.inc.php
2017-09-01 21:06:38 +01:00
Søren Rosiak
21283f4a5b fix: Fixed Comware Processor Discovery && Hardware Info (#7206)
* fix: Fix Comware Processor Discovery && Hardware Info

* Remove old info.
2017-09-01 21:01:01 +01:00
Tony Murray
21deb96d52 fix: Fixed Avtech sensor discovery (#7244)
$valid is no longer a global as it once was
2017-08-29 19:37:24 +01:00
Neil Lathwood
b5d24a533a fix: Fixed the empty() vlan detection check (#7241) 2017-08-28 20:24:43 +01:00
Neil Lathwood
061add5eb1 fix: Re-added changes for #6959 removed by accident in #7128 (#7240) 2017-08-28 13:44:24 -05:00
Tony Murray
c8436d2a4f
fix: issues with Geist Watchdog
miss-named variable in sensor pre-caching
internal humidity and temperature was discovered twice
humidity was mis-spelled in yaml discovery
temperature and current had incorrect divisor in yaml

remove redundant fahrenheit to celsius function

fixes #7236
2017-08-28 13:00:29 -05:00
Søren Rosiak
701813f3ad fix: Comware dBm Limits && Comware Sensor Descr (#7216) 2017-08-24 15:08:42 -05:00
Neil Lathwood
53b3d5ff5f newdevice: Stop discoverying frequencies on Raritan devices that do not exist + added voltage (#7195)
* fix: Stop discoverying frequencies on Raritan devices that do not exist

* updated to include voltage as well

* Updated incorrect OID for voltage
2017-08-22 23:01:06 +01:00
Neil Lathwood
6bab347335 newdevice: Added FDB and ARP support for edgeswitch devices (#7199) 2017-08-22 20:55:39 +01:00
Neil Lathwood
65c6240c2a newdevice: Added additional sensor support for Sentry4 devices (#7198) 2017-08-22 20:52:27 +01:00
Neil Lathwood
e1ffdedb6b newdevice: Added additional vlan support for Juniper devices (#7203) 2017-08-22 20:52:01 +01:00
Søren Rosiak
31c641e97a fix: Use Correct Comware dBm Limits (#7207) 2017-08-22 20:42:41 +01:00
Carsten Schöne
b132686fd4 newdevice: Improved fans/temp detection for Brocade VDX devices
* This change allows discovery/polling of all sensors (fans and temperatures) from Brocade VDX devices
instead of only the first few. This is tested with VDX 6740, 6740T, 8770-4, 8770-8.

* Update nos.inc.php

* Update nos.inc.php
2017-08-21 08:12:42 +01:00
Andrew Holmes
0ba372221f fix: Cambium ePMP CPU reporting fix (#7182)
* Commit merge to branch for Cambium CPU fix (#1)

* Remove division by 10

Removes unnecessary division by 10 from poller file; this is handled by processor_precision in the main include.

* Correct processor_precision

Adjusted processor precision divider from 100 to 10 (as sysCPUUsage.0 reports from 0-1000 as 0-100.0%)

* Delete cambium-cpu.inc.php

With the change to the discovery file (processor_precision set to the correct value of 10) this file is not required.
2017-08-21 08:02:51 +01:00
Neil Lathwood
25d79ce9d7 newdevice: Added further sensor support for Geist Watchdog (#7143)
* newdevice: Added further sensor support for Geist Watchdog

* relaxed if check
2017-08-19 20:22:23 +01:00
Neil Lathwood
806f5cce74 newdevice: Added additional sensor support for Cisco ONS (#7096)
* newdevice: Added additional sensor support for Cisco ONS

* updated discovery yaml + added mibs
2017-08-13 20:21:55 +01:00
Zucht
a062350cbd Fix RPI frequency/voltage sensors (#7144)
* Update linux.inc.php

Fix RPI sensors

* Update linux.inc.php

Fix RPI sensors
2017-08-12 14:55:33 +01:00
Tom Sealey
4e4a9d919e Update avaya-ers.inc.php (#7139)
noticed that I didn't rename the array on line 46. 
If we don't need to declare it here then it can be deleted.
2017-08-10 17:14:51 +01:00
Tom Sealey
34a070f524 newdevice: Added fan and temp sensor state discovery Avaya ERS
* newdevice: Added support for Emerson energy systems (#7128)

* newdevice: Added support for Emerson energy systems

* added missing test

* Update ees.yaml

Added Avaya ERS fan and temp state discovery

* removed some left over debug code

Update avaya-ers.inc.php
2017-08-10 11:24:11 +01:00
Neil Lathwood
40f25aa17a fix: Fixed Raspberry Pi sensors (#7131)
* fix: Fixing Raspberry Pi sensors

* Update linux.inc.php

* Update linux.inc.php

* Update linux.inc.php
2017-08-08 21:31:22 +01:00
Aldemir Akpinar
b31188c762 fix: Raritan CPU temperature discovery (#7130) 2017-08-08 20:17:03 +01:00
Tony Murray
1d777693e1 feature: New IP parsing classes. Removes usage of Pear Net_IPv4 and Net_IPv6. (#7106)
* Refactor remove use of pear Net_IPv4 and Net_IPv6

Caution, I added tests to test the functionality of the new functions, but I'm not 100% certain the replaced usages match 100%.  Please test.

Left usage in generate-iplist.php because I'm not sure the use of that script, so I didn't want to implement additional functionality to support it.

Add support for ipv6 fo ipInNetwork() function

Add phpdocs to functions
Remove accidental inclusion

Use binary operations instead of string for networKFromIp()
Tidy up binary operations in ipInNetwork()

tidy parsing cidr network

Change to a class based implementation.

Update phpdocs.
Fully catch exceptions for hex parsing.

Fix mistake.

support older phpunit versions

Fix php shifting to negative with php 5

* Fix graph authorization. Uncaught exception and checking an ipv4 against an ipv6 network == fail.

* Also remove colons from hex strings.

* Fix typo in bgp polling
Two passes of removing invalid characters from hex strings. (That way we don't mangle valid IPs)
2017-08-08 14:14:58 -05:00
Neil Lathwood
d8140467ae newdevice: Added support for Emerson energy systems (#7128)
* newdevice: Added support for Emerson energy systems

* added missing test

* Update ees.yaml
2017-08-08 07:58:57 +01:00
Neil Lathwood
707b6c6954 feature: Added support to cisco sensors to link them to ports + macro/docs for alerting (#6959)
* feature: Added support to cisco sensors to link them to ports + macro/docs for alerting

* renamed sql
2017-08-04 19:37:50 +01:00
Lorenzo Zafra
b8398d32b0 newdevice: Added additional sensors for Microsemi PowerDsine PoE Switches (#7114)
* Added power, voltage and temperature sensors for microsemi powerdsine poe switch

* Use MIB, switch to yaml discovery

* Revert "Use MIB, switch to yaml discovery"
2017-08-04 07:47:49 +01:00
Neil Lathwood
779ed8bc3d fix: Fixed Raspberry Pi sensors support
fix: Fixed Raspberry Pi sensors support
2017-08-03 17:11:08 +01:00
Neil Lathwood
7a36200b24 newdevice: Added VLAN discovery support for Avaya ERS devices
Added basic VLAN disco support for Avaya-ERS switches
2017-08-02 22:42:16 +01:00
AndyRap
4d14d5b1aa Update qnap.inc.php
Tested on QNAP TS-653 Pro, TS-851 and TS-859
2017-08-02 21:04:22 +01:00
AndyRap
bc72a487ad Update qnap.inc.php 2017-08-02 20:37:07 +01:00
Neil Lathwood
a435c7c2f6 Update vlans.inc.php 2017-08-02 07:59:36 +01:00
Tom Sealey
52f1b53a05 subtracting 1 from the $port_id value in the egress_ids loop
This is to fix an off by one error.
The ERS reports VLAN membership using a bitmask, but the MSB is always 0.
So using the `q_bridge_bits2indices` function results in the reported ports membership being +1 wrong.
The best fix for this would be to create a new function exactly the same as `q_bridge_bits2indices` which subtracts the 1 before returning the array. 
I tried this, but it broke my install :)
Not sure how to add to the `functions.inc.php` file without breaking it.
2017-08-01 11:20:27 +01:00
Tom Sealey
01fca2ebd5 fixed more formatting errors 2017-08-01 10:35:14 +01:00
Tom Sealey
bd0e003e27 fixed code formatting errors 2017-08-01 10:25:07 +01:00
Tom Sealey
d344629eda added check for Avaya-ERS OS 2017-08-01 10:09:47 +01:00
Tom Sealey
9f65a3c1d7 created avaya-ers.inc.php
Avaya do not use the Q-Bridge MIB for Vlans.
They also store untagged vlan info in 2 seperate ways:
rcVlanPortDefaultVlanId stores the actual native VLAN or PVID per switch port.
rcVlanPortPerformTagging tells us the ports tagging mode, this can be true (all tagged or trunk), false (no tagging or access), 3 (only tag the PVID) or 4 (untag the PVID and tag everything else).
Due to how these bits of information are presented, for each VLAN ID we then need to loop through all the ports checking if their PVID matches the VLAN ID and if the tagging mode is false or 4. If both are true we add that port to the list of untagged ports for that VLAN.
2017-08-01 10:08:49 +01:00
Tom Sealey
f8b795ec95 newdevice: Removed check for switch model or firmware version for Avaya ERS switches
* Added mempool support for Avaya ERS 3500

* Added mempool support for Avaya ERS 3500

* removed check for  firmware version

* removed check for switch model or firmware version

* removed check for switch model or firmware version

* removed check for switch model or firmware version

* adding @laf suggested changes

* made changes as suggested by @laf

* removed blank line

* removed blank line

* added the snmpwalk back

need this, or it's pointless
2017-07-29 11:20:36 +01:00
laf
b840f8f315 updated sensors to use pre-cache 2017-07-26 21:39:19 +01:00
Tom Sealey
d765330d16 newdevice: Added support for temp and processor discovery on Avaya ERS3500
* added support for Avaya ERS 3500 switches

Tested and working with single 3500 and stack of 5 3500

* added support for ERS3500 switches

tested on ERS 3500, both single and stack of 5
2017-07-23 19:54:43 +01:00
Søren Rosiak
b19116abe6 newdevice: Added CiscoSB DOM Support (#7072) 2017-07-23 19:35:30 +01:00
Søren Rosiak
64909849ee feature: Add CiscoSB Port Suspended Status Info (#7064) 2017-07-22 21:50:45 +01:00
Neil Lathwood
75ea45d275 changed the way snmpwalk is done for yaml sensors (#7069) 2017-07-22 15:03:11 +01:00
laf
04b0c43dc1 fix: Fixed Raspberry Pi sensors support 2017-07-22 00:00:04 +01:00
Tony Murray
123a90feab feature: Log event if device polling takes too long (#7065)
Move $device_time closer to end of poll_device(), and simplify
remove some unused variables
simplify $device_time in discover_device() too
2017-07-21 23:01:59 +01:00
Neil Lathwood
d1e8458b31 newdevice: Updated powerwalker sensor discovery to use custom mib (#7020) 2017-07-20 12:01:16 +01:00
Neil Lathwood
da7550f55f device: Added additional sensors support for HP ILO4 (#7053)
* device: Improved HP ILO4 support

Added HP ILO4 temperature (HDD, motherboard), power, state (powersupply, HDD, Fans, memory slots) sensors support.
Tested with HP ProLiant ML350p Gen8-Gen9

* actual MIB file!
2017-07-19 22:06:59 +01:00
Neil Lathwood
c40825f233 fix: Use the correct high/high warn thresholds for junos dbm sensors (#7056) 2017-07-18 19:47:00 -05:00
Tony Murray
97828eceba device: Added FDB support for IOS-XE devices (#7044) 2017-07-17 19:01:37 +01:00
InfraTeam
579bfd4c3e newdevice: Added additional sensors for APC IRRP100 Air Conditionner series (#7006)
* Added detection for Hirschmann Railswitch

* Update AUTHORS.md

I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Synchro Fork

* Synchro Fork

* Added additional sensors for APC IRRP100 Air conditionner series

* Updated apc.yaml

@laf I modified the yaml file according to your comment. I forgot the index line in a few definitions...

* Rollback hirschmann.inc.php to original file

* Roolback to original hirschmann.inc.php file

* Updated apc.yaml file to include data section

* Update apc.yaml

* Update apc.yaml

* Updated apc.inc.php after @laf requests

Modified $current calculation, including $multiplier in place of static value and added 'PowerNet-MIB' as an argument of the snmp_get function (detached from OID writing)

* missing new line

* reverted hirschmann updates

* reverted hirschmann updates
2017-07-15 11:44:56 +01:00
Søren Rosiak
fd140888ab newdevice: Added CPU / Mem support for HPE MSM (#7026)
* newdevice: Improve HPE MSM Support

fix #6972

* remove unneeded polling file

* Update to use numerical OID
2017-07-14 21:06:22 +01:00
Neil Lathwood
83cb39a7fd fix: Netbotz state sensors using wrong value (#7027)
* fix: Netbotz state sensors using wrong value

* actual fix
2017-07-13 19:02:26 -05:00
FTBZ
138fd2923a fix: Fixed Rittal LCP sensor divisors (#7014)
* Better values for some graphs

* Change definition order

* Update rittal-lcp.yaml
2017-07-13 18:23:55 +01:00
Tony Murray
c874fc5b1e fix: Standardise UPS divisors (#6942)
Set default divisors for all devices and remove per-os overrides for them.
We should only use per-os overrides for non-standard behavior.

High possibility for breakage here if devices not listed here have non-standard behavior.
2017-07-13 18:09:56 +01:00
Tony Murray
2bf99c65a0 fix: no data for yaml discovery (#7010)
fixes: #7008
2017-07-11 16:02:38 -05:00
Neil Lathwood
d30e5660f9 feature: Added ability specify options for sensors yaml discovery (#6985)
* feature: Added ability specify options for sensors yaml discovery

* travis fix for new line + skip_values_* -> skip_value_*
2017-07-10 16:27:46 -05:00
djamp42
394c4393a4 newdevice: Add Calix AXOS/E5-16F Detection (#6926)
* Add Calix AXOS/E5-16F Detection

* Update calix.yaml

* Create calix_e5-16f.snmprec

* Split out Calix to AXOS

* Delete axos.inc.php
2017-07-05 21:21:48 +01:00
Tony Murray
b56c6b6adf fix: fdb tables multiple IPs and IPs from other devices adding extra rows (#6930)
Fix missing IPs because the ARP entries are on different port_id
Update arp discovery to use snmpwalk_group() additional fix in that function
Fix removal of arp entries
Fix a debug output type in fdb discovery
2017-07-04 22:27:43 +01:00
TomEvin
a1fffa4e8f fix: Fixed state sensor values for fabos (#6947)
The state of the sensors was a value (#1-4) not an actual state (nominal, faulty etc.) on UI.

Tested device:
Brocade 300 Switch (Brocade FabricOS v6.4.1)
2017-07-04 11:41:38 +01:00
Neil Lathwood
afcc2b5e2d newdevice: Added more sensor support for raritan devices (#6929)
* newdevice: Added more sensor support for raritan devices

* Updated PDU-MIB

* Added more hover graphs to overview
2017-07-03 16:04:01 -05:00
Tony Murray
eb1014a657 device: Updated Gamatronic ups use sysObjectID for os discovery (#6940) 2017-07-03 19:43:11 +01:00
Tony Murray
14ed767edb fix: a couple of issues with the yaml state sensor discovery (#6912) 2017-06-29 21:12:51 +01:00
Tony Murray
e8dd72e8db feature: Support fdb table on generic devices (#6902)
* feature: support fdb table on generic devices
refactored code to use snmpwalk_group
refactored ajax table code to use joins and reduce extra queries
add indexes for device_id and port_id, drop primary index
Make all columns sortable
Fix a few other small issues

* Add index for vlan_id since that field can be searched by the user

* fix whitespace

* Rename 197.sql to 198.sql

* set row count for table
2017-06-29 21:03:56 +01:00
Neil Lathwood
bda5a4343e fix: Fixed auto discovery for lldp not adding new hosts (#6919) 2017-06-29 19:29:33 +01:00
Neil Lathwood
a4b905e3f6 fix: Fixed netman voltage and load divisor values (#6905)
* fix: Fixed netman voltage and load divisor values

* Update to perform more checks
2017-06-29 07:23:39 -05:00
Neil Lathwood
aa64eb99ac fix: Fixed the index for sentry3 current + updated mibs (#6911) 2017-06-28 19:46:15 -05:00
Neil Lathwood
929d7ece56 fix: Fixed checks for $entPhysicalIndex/$hrDeviceIndex being numeric (#6907) 2017-06-28 16:03:35 -05:00
Tony Murray
d47b58bf6d newdevice: Changed Solaris and Allied discovery to yaml (#6900)
Add SunOS to callback sanitize
2017-06-28 07:53:25 +01:00
Neil Lathwood
b8d8d79a0a newdevice: Added memory detection, fixed cpu polling (#6896)
* newdevice: Added memory detection, fixed cpu polling

* Added new line

* Fix temperature entPhysicalIndex too

* Edited the wrong spot :0
2017-06-28 00:54:14 -05:00
Neil Lathwood
8b806a857a newdevice: Added Cpu/Mem support for dnos and ftos devices and updated detection (#6897) 2017-06-27 23:58:57 -05:00
Neil Lathwood
5e32474d26 feature: Added support for sensors to be discovered from yaml (#6859)
* feature: Added support for sensors to be discovered from yaml

* added discovery definitions

* Updated docs, more code updates + tests

* removed the oid_name use

* pre-set variable from scrut output

* small updates as per comments in pr

* Allow index in descr

* Added ability to skip values

* Check for numeric values

* small update of oid name
2017-06-26 23:27:57 +01:00
Søren Rosiak
5d5d3816ef fix: Make various Cisco sensor descriptions start with upper case (#6891) 2017-06-26 21:40:50 +01:00
Tony Murray
bf0df7266a feature: Added fdb discovery module (#6887)
revert the context_name changes to snmp.inc.php and use the same method as other parts of the code
2017-06-26 13:58:17 +01:00
Neil Lathwood
54365985a6 Revert "feature: fdb tables (#6616)" (#6886)
This reverts commit 81ddab86af.
2017-06-25 07:04:04 +01:00
Lorenzo Zafra
81ddab86af feature: fdb tables (#6616)
* feature: FDB TABLES for ios and timos

* Fixed coding style issues

* renamed fdb.sql to 191.sql

* fixed travisCI issue

* FDB table discovery working on IOS

* Fixed bug: failing to insert fdb entries into database

* Fix phpcbf issue

* moved sql schema

* rename sql schema

* Add (tentative) FDB support for HP Comware switches

* build schema

* schema changes

* run build schema.......

* FBD Table discovery working on HP ComWare

* FBD Table discovery working on HP ComWare

* Add FDB support for HP Comware

* Discovery regex fix, tested and works for cisco 3750, 2960, 6509

* Use vlan_id instead of raw vlan. Remove Nokia implementation as vlans are not being discovered for it at the moment.

* Use vlan_id instead of vlan.

* Add debug messages, comware support

* Sorry.. phpunit isnt working for me

* Use a file structure instead of if statement per OS

* Make inserts to vlan table if entry does not exist.

* Rename sql schema file

* Use existing context name

Improve output and database synchronization

Remove chromephp and if ios

rename sqlfile

add comware back

update schema

* Delete TIMETRA-CHASSIS-MIB

* Delete TIMETRA-FILTER-MIB

* change index to bigint to be safe
2017-06-24 22:07:31 -05:00
dnapper
02a7949c5e newdevice: Added Support for Benu OS (#6857)
* Added Basic OS support for Benu

* Benu OS take 2

* Benu OS take 3

* Benu round 4 - this time for real

* added benu sensors

* reamed to benuos, renamed mibs, sensor rewrite pending

* upated sensors to use snmp_get_multi

* rename yaml

* rename yaml

* updated mempool discover to use multi get, fixed whitepaces, removed old commented out code from polling

* changed detection from sysDescr to sysObjectId

* Update benuos.yaml

* Update benuos.inc.php

* Update benuos.inc.php

* Update benuos.inc.php

* Update benuos.inc.php
2017-06-22 21:45:18 +01:00
Tony Murray
90aa485149 refactor: discovery code cleanups (#6856)
* Use foreach $key => value

* use get_port_by_ifIndex
get rid of the rest of the array_keys()

* improve hex_to_ip() function, add tests, use in more places

* Simplify can_skip_discovery logic
2017-06-22 21:08:20 +01:00
Neil Lathwood
19cdf8f684 newdevice: Added support for Schneider PowerLogic (#6809) 2017-06-13 16:20:12 -05:00
FTBZ
3a62c83642 newdevice: Added additional sensors to Axis camera (#6827)
newdevice: Added additional sensors to Axis camera (#6827)
2017-06-13 21:37:01 +01:00
Mark Guzman
a5cf0b720a newdevice: Added Quanta lb6m device support (#6816)
newdevice: Added Quanta lb6m device support (#6816)
2017-06-13 21:30:00 +01:00
Neil Lathwood
5c58cc011a newdevice: Added support for processor and memory for 3com devices (#6823) 2017-06-13 08:11:09 +01:00
Neil Lathwood
32fa059c98 newdevice: Added state sensors to HP Procurve (#6814) 2017-06-12 19:37:25 +01:00
Neil Lathwood
51ccec94c5 fix: Strip " from rPi temp sensor discovery (#6815) 2017-06-10 17:46:00 +01:00
Neil Lathwood
d5384f9256 fix: Updated Raspberry Pi Temp sensor discovery (#6804) 2017-06-08 22:11:42 -05:00
Neil Lathwood
1d70d3e96a newdevice: Added detection for Atal Ethernetprobe (#6778)
* newdevice: Added detection for Atal Ethernetprobe

* updated to ethernetprobe2

* added temp and humidity sensors
2017-06-08 19:05:10 +01:00
SLMitch
7bd23946ad remove 'Wrong Type' string when we ask LocalAS to switch (#6745)
* remove 'Wrong Type' string when we ask LocalAS to switch (bug with at least Dell ON Switch)

* Only remove the MIB
2017-06-08 08:01:17 +01:00
Søren Rosiak
d5dd5c2da5 newdevice: Add Cisco ASR, Nexus, etc. PSU State sensor (#6790) 2017-06-06 22:47:39 +01:00
Søren Rosiak
cbe476ad2f fix: Fix bad Cisco dBm discovery on some IOS versions (#6789) 2017-06-06 22:46:29 +01:00
drid
f7c5aee25b newdevice: Added C.H.I.P. power monitor (#6763)
newdevice: Added C.H.I.P. power monitor (#6763)
2017-06-04 19:27:00 +01:00
CZ
f784228e93 newdevice: Added support for Adva FSP150CC and FSP3000R7 Series (#6696)
* ADVA device support
- sensors for temperature, voltage, current and dbm
- ADVA mibs for FSP150CC and FSP3000R7

* sysObjectId - changed to level above instead of two entries

* OS for FSP150 and FSP3000R7 now in two seperate OS definitions
- split the files
- removed sysObjectId check for each
- removed hardcoded sensor limits
- removed more generic MIBs

* standardized variables / corrected declarations

* added missing MIB, style check code

* - corrected 'current' readings by adding $devisor
- changed rrdfile names to sensorname+$index
- moved LLDP-V2 mibs to main mib directory
2017-06-02 21:07:55 +01:00
Neil Lathwood
924137ebd8 fix: Updated the arista initial current value for dbm sensors (#6771)
* fixed spelling mistake in process_config

* fix: Updated the arista initial current value for dbm sensors
2017-06-02 07:29:49 -05:00
Maciej Kaczkowski
528350177d newdevice: Arris C4c (#6662)
* newdevice:  Arris C4c, convert arris.png to arris.svg, added temperature sensors

* removed debug

* converted snmp_walk to snmpwalk_cache_oid_num

* added test, fixed formatting

* fixed logo

* removed height and width from logo

* revert arris.svg
2017-06-01 18:46:13 -05:00
ospfbgp
f8aadf227b newdevice: Added Avaya VSP Temperature Support (#6692)
* Avaya VSP Temperature Support

Avaya VSP Operating System Software Temperature Support

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

New code for VSP Temperatures

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

I have unset my 1 snmp_walk

* small update to variable names and use
2017-05-31 21:45:54 +01:00
Chris A. Evans
8c8d591d67 newdevice: Add basic support for CradlePoint WiPipe Cellular Broadband Routers (#6695)
* Add basic support for CradlePoint Ceullular Broadband Rotuers

 	new file:   html/images/os/cradlepoint.png
 	new file:   includes/definitions/wipipe.yaml
 	new file:   includes/discovery/sensors/dbm/wipipe.inc.php
 	new file:   includes/discovery/sensors/pre-cache/wipipe.inc.php
 	new file:   includes/discovery/sensors/state/wipipe.inc.php
 	new file:   includes/polling/os/wipipe.inc.php

* Added snmprec test file

* Updated definitions file

* Updated copyright blocks and comments

* Added WIPIPE-MIB#

*  	renamed:    tests/snmpsim/wipipe.smmprec -> tests/snmpsim/wipipe.snmprec

*  	copied:     html/images/os/cradlepoint.png -> html/images/logos/cradlepoint.png
 	modified:   html/images/os/cradlepoint.png
 	modified:   includes/definitions/wipipe.yaml
 	modified:   includes/discovery/sensors/pre-cache/wipipe.inc.php
 	modified:   includes/polling/os/wipipe.inc.php

* Changes requested by laf

 	modified:   includes/discovery/sensors/dbm/wipipe.inc.php
 	modified:   includes/discovery/sensors/pre-cache/wipipe.inc.php
 	modified:   includes/polling/os/wipipe.inc.php

* Reworked devFWUpgradeStatus state sensor
 	modified:   includes/discovery/sensors/state/wipipe.inc.php

* Fixed hardware/OS version detection
 	modified:   includes/polling/os/wipipe.inc.php

* moved mib file to correct location
2017-05-31 21:45:31 +01:00
Neil Lathwood
d48be5f507 newdevice: Added detection for Cisco EPC devices (#6690)
* newdevice: Added detection for Cisco EPC devices

* updated test file

* added dbm support

* added snr support
2017-05-23 10:28:44 -05:00
ospfbgp
407c0a4470 newdevice: Added state support FAN, Power Supply Avaya VSP (#6693)
* Add state support FAN, Power Supply Avaya VSP

Adding FAN and Power Supply support for Avaya VOSS(VSP operating systems platform)

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

$index has been changed to rcChasFanOperStatus.$index and rcChasPowerSupplyOperStatus.$index in discover_sensor and create_sensor_to_state_index

* Update avaya-vsp.inc.php

its always the details.  nice to have another pair of eyes. :-)
2017-05-23 08:42:46 +01:00
Nick Peelman
77c5b1e304 newdevice: Added TiMOS temperature and power supply state sensors. (#6657)
* Add TiMOS temperature and power supply state sensors.

* Refactor the sensor discovery, making it a little cleaner

* Discover TiMOS device serial number
Pull proper hardware OID instead of parsing sysDescr

* Make the style gods happy

* Refactoring for some of the requested changes

* Break out the arrays into variables as scrutinizer requests...

* Fix missing semicolon
2017-05-22 17:59:38 +01:00
superflip99
3faee6c7c5 newdevice: Added additional sensor state sysCmSyncStatusId for F5
* New sensor state sysCmSyncStatusId for F5 OS added

* removed comments
2017-05-19 21:54:58 +01:00
Chris A. Evans
e28eb690fe Fixed various issues with MRV OptiDriver sensor detection. (#6682)
modified:   discovery/sensors/dbm/mrv-od.inc.php
	modified:   discovery/sensors/pre-cache/mrv-od.inc.php
	modified:   discovery/sensors/state/mrv-od.inc.php
2017-05-19 09:03:26 +01:00
Chris A. Evans
8565417dfe new device: Added basic support for MRV OptiDriver Optical Transport Platform (#6656)
* Committer: Chris A. Evans <thecityofguanyu@outlook.com>

Add basic support for MRV OptiDriver Optical Transport Platform
 * OS Detection
 * Sensors
  * Chassis temperature
  * State
   * Tx/Rx Optical Interface Power
   * Power Supply
   * Fan

*  	renamed:    includes/definitions/mrv-optidriver.yaml -> includes/definitions/mrv-od.yaml
 	new file:   includes/discovery/sensors/dbm/mrv-od.inc.php
 	deleted:    includes/discovery/sensors/dbm/mrv-optidriver.inc.php
 	renamed:    includes/discovery/sensors/pre-cache/mrv-optidriver.inc.php -> includes/discovery/sensors/pre-cache/mrv-od.inc.php
 	renamed:    includes/discovery/sensors/state/mrv-optidriver.inc.php -> includes/discovery/sensors/state/mrv-od.inc.php
 	new file:   includes/discovery/sensors/temperature/mrv-od.inc.php
 	deleted:    includes/discovery/sensors/temperature/mrv-optidriver.inc.php
 	renamed:    includes/polling/os/mrv-optidriver.inc.php -> includes/polling/os/mrv-od.inc.php

*  	modified:   includes/discovery/sensors/dbm/mrv-od.inc.php

  Added missing ')' in the if conditionals.

*   Requested changes
 	modified:   includes/definitions/mrv-od.yaml
 	modified:   includes/discovery/sensors/state/mrv-od.inc.php
 	modified:   includes/discovery/sensors/temperature/mrv-od.inc.php
 	modified:   includes/polling/os/mrv-od.inc.php
 	removed extensions from all new mib files

* Add snmprec file to satisfy test units
	new file:   tests/snmpsim/mrv-od.snmprec
2017-05-18 22:04:40 +01:00
Neil Lathwood
895801d855 newdevice: Added more health information for APC units (#6619)
* fix: Fixed apc state support emsOutput

* newdevice: Added more health information for APC devices

* update schema file

* schema file renamed
2017-05-17 22:41:53 +01:00
Tony Murray
8d1b7d5493 fix: fix marking invalid ports as deleted in discovery (#6665)
There seem to be other issues in this file, such as $ports_l is never defined...
2017-05-17 22:25:47 +01:00
Neil Lathwood
e223ec3ff2 newdevice: Added support for Geist PDU (#6646) 2017-05-16 23:39:35 -05:00
Søren Rosiak
c40b762e23 feature: Update Juniper MSS Support (#6565)
* feature: Improve Juniper MSS Support

Add the following sensors
- Processor
- Mempool
- State

* Use snmp_get_multi

* updated mibs dir
2017-05-16 22:22:46 +01:00
Marcus Pink
5b9623d8d4 newdevice: Added detection for HPE RT3000 UPS (#6638)
* newdevice: HPE RT3000 UPS

* newdevice: HPE RT3000 UPS

* changed polling to snmp_get_multi_oid, fixed divisor for load and voltage

* fixed blank line in functions.inc.php
2017-05-16 21:42:10 +01:00
Neil Lathwood
4d0832e412 refactor: Updated vlan discovery to support JunOS (#6597) 2017-05-13 23:06:14 +01:00
Maciej Kaczkowski
cef1b723f8 newdevice: Added support for Terra sti410C (#6598)
* newdevice: Added support for Terra sti410c

* newdevice: tests for Terra sti410c

* renamed sti410c to terra, added support for sti440 and recognition for sda410C, sta410C, saa410C, sdi410C, sai410C, ttd440, ttx410C, tdx410C, sdi480

* fixed terra.svg and access to sysDescr
2017-05-13 09:15:23 +01:00
NerdBlender
a368a73825 newdevice: Added 3 Phase APC UPS Support issue #2733 & #5504 (#5558)
* Added 3 Phase APC UPS Support issue #2733

* Added 3 Phase APC UPS Support issue #2733 - v2

* Added 3 Phase APC UPS Support issue #2733 - v3

* Added 3 Phase APC UPS Support issue #2733 - v3

* Added 3 Phase APC UPS Support issue #2733 - v3.1

* Added 3 Phase APC UPS Support issue #2733 - v3.2

* Added 3 Phase APC UPS Support issue #2733 - v3.3

* Added 3 Phase APC UPS Support issue #2733 - v3.4

* Added 3 Phase APC UPS Support issue #2733 - v4

* Added 3 Phase APC UPS Support issue #2733 - v4.1

* Update apc.yaml
2017-05-05 13:16:46 +01:00
FTBZ
6c555c6fb5 fix: Fixed load divisor for eaton-mgeups (rfc1628) (#6566) 2017-05-03 22:38:43 +01:00
FTBZ
c772a36142 newdevice: Added CPU sensor for Cisco WLC (#6562) 2017-05-03 15:48:59 +01:00
Neil Lathwood
568a2bf21d Added more sensors for Exalt ExtendAir devices (#6531) 2017-05-03 15:24:57 +01:00
Olivier Beytrison
0dcc1d18c5 Fix GE UPS voltage factor (#6558) 2017-05-03 14:30:40 +01:00
Kako Pedreros
233f8e83b4 newdevice: Added CPU and Memory pool for BDCom Switchs (#6523)
* Added feature CPU and Memory monitoring on BDCom switchs

* Added feature CPU and Memory monitoring on BDCom switchs, plus pre-commit check

* Added mib files, and modification given by laf

* Replaced png logo with a svg version. Modification in the validation of processor discovery.

* Replaced png logo with a svg version. Modification in the validation of processor discovery + added files.
2017-05-03 00:04:44 +01:00
Olivier Beytrison
2f5a1742c3 newdevice: Added detection for GE UPS (#6549) (#6553)
* Add support for GE UPS (#6549)

* rename OS and remove sysDescr regex
2017-05-02 15:20:28 +01:00
Tony Murray
4c0412b14d feature: Wireless Sensors Overhaul (#6471)
* feature: Wireless Sensors
Includes client counts for ios and unifi
Graphing could use some improvement.
Alerting and threshold ui not implemented

WIP: starting OO based wireless sensors.

Class based functionality working
remove old functional files
add schema file

discovery needs to be enabled, not polling

fix up schema

fix Unifi discovery not returning an array

Add some debug when discovering a sensor.
Fix style.

Add missing semicolin

Add a null object (Generic) for OS.
Fill out some phpdocs

Re-organized code
Each sensor type now has it's own discovery and polling interface
Custom polling tested with Unifi CCQ

Left to do:
Implement UI (Graphs and Custom thresholds)
Alerting
Testing

Fix event message text

Remove runDiscovery and runPolling from OS, they are unused and don't belong there.

Cleanups/docs

Missed this file.

Remove the requirement to fetch the current value to check validity.
Do that automatically if current is not specified
A few cleanups here and there

First pass at graphing.
device_ and wireless_ graphs added.

Add RouterOS support

Singleton OS instance isn't required right now.
Remove that to allow some memory to be freed.

Add wireless to the device list metrics.
Make all metrics clickable

Tweak graphs a bit

Implement limit configuration page.
Use sensors page as common code instead of duplicating.
Clean up some javascript interactions:  Allow enter on values to save. Cancel if update is not needed. Enable the clear custom button after setting a custom value.
Add some wireless alert rules to the library.

Add documentation.

Add unifi client counts by ssid in addition to radio.
Optimize Sensor polling a bit.

Add HP MSM clients support (for full controller)
Fix function accessibility

Formalize the discovery and poller interfaces.

Add Xirrus clients and noise floor
move module interfaces to a more appropriate place.
push caching code up to os, unsure about this do to the limitations

No point in selectively enabling wireless discovery.  We only discover if the device supports something.

Add RSSI, Power, and Rate.
Add these sensors for Ubnt Airos.
Clean up some copyrights.

Reduce the amount of files need to add new types.
Leave graph files for consistency and to allow customization.

Remove the old wifi clients graph completely.
ciscowlc should have improved counts (total and per-ssid)

Schema didn't get added.

Impelement the rest of the AirOS sensors
Reformat and re-organize the Airos.php class.

Add several UBNT AirFiber sensors

A few fixes add links to the section headers

Add HP MSM mibs.

* Schema file got dropped in rebase.

* Add wireless menu to view sensors across all devices.
Icons in the menu need help :/

* Add HeliOS, Mimosa, and Siklu support
Sensors added SNR + Noise

* Add power and utilization to Unifi

* Update polling to prefetch all sensor data in a few snmp requests as possible

* Add Extendair: tx+rx power, aggregate rate, frequency

* Add a check for duplicate sensors in discovery.  Just print an error for now.

* Add Bit Error Ratio (named error-ratio to allow for bit error rate to be added if needed)
Fix an incorrect link in the wireless sensors table

* Add error rate and change all bps and Hz to use si units

* Fixes to limits and frequency display

* Fix overview graph frequency display
A few decimal place tweaks

* Don't allow switching sensor and wireless-sensor graphs, it doesn't work.
Change individual distance graphs to use si units

* Go through the OS and make sure I got all the sensors I can (probably missed some still)
Because pollWirelessChannelAsFrequency() is generic and a little complex, so pull it up to OS.
Message to help developers adding supports that don't return an array from discover functions.

* Fix some issues

* Remove noise and signal for now at least
A couple more fixes
Add a notification

* Oopsie

* Bonus AirFiber sensors
2017-05-01 23:49:11 -05:00
Neil Lathwood
72a0d8202a newdevice: Added further health support for Netbotz devices (#6529) 2017-04-30 16:32:39 +00:00
Neil Lathwood
e7e5d51b30 newdevice: Added support for Exalt ExtendAir (#6524) 2017-04-29 15:58:06 +00:00
Tony Murray
374a4041af fix: inconsistent device discovery (#6518)
There were two or more separate $device arrays during discovery. When one was updated, others were not.
Combine those all.
Make sure the new os is loaded if the os changed.
2017-04-28 22:50:00 +01:00
Neil Lathwood
6b5faa75dd newdevice: Added more health sensors (#6517) 2017-04-27 22:17:58 -05:00
Neil Lathwood
4c42c91ba8 newdevice: Added support for Tycon Systems TPDIN units (#6506) 2017-04-27 22:16:41 -05:00
Neil Lathwood
e6fa8dbd13 newdevice: Added basic detection for Packetflux SiteMonitor (#6498)
* newdevice: Added basic detection for Packetflux SiteMonitor

* added missing file

* updated to include some health sensors
2017-04-27 22:14:52 -05:00
Nick Peelman
cdd363f29e Equallogic add disk status (#6497)
* I agree to the conditions of the Contributor Agreement
contained in doc/General/Contributing.md.

* Extends the work done by @Peter2121 on #3519 to include disk statuses as individual sensors.

* Making changes as requested by @laf.

* Fix a typo from the variable renaming flurry.

* small updates
2017-04-26 23:08:35 +01:00
FTBZ
2aa4145a26 fix: APC/MGE UPS sensors divisor for load and voltage (#6509)
* fix: APCMGE sensors divisors

* Add missing SNMP SIM file

* Add OS test for snmprec file
2017-04-26 08:35:07 -05:00
Neil Lathwood
66b7077a01 fix: Updated ipv4/ipv6 discovery to exclude IPs with invalid port_ids (#6495)
* fix: Updated ipv4/ipv6 discovery to exclude IPs with invalid port_ids

* Update the valid IP sql queries to include addresses without a port

* Fix arp-table too.
2017-04-25 21:28:25 +01:00
Tony Murray
43914fbc7f newdevice: Eaton/MGE UPS reorganization (#6388)
* Eaton UPS cleanup

* newdevice: Eaton/MGE UPS cleanup

MGE split Galaxy (and Upsilon) to apc-mgeups
All others to eaton-mgeups
Remove mge ups from eatonups os.
Remove powerware it is a duplicate of eatonups

* Add rfc1528 for both mgeups os

* Update overview graphs
2017-04-24 14:04:05 +01:00
Neil Lathwood
720177965b newdevice: Added support for C&C Commander Plus units (#6478) 2017-04-22 08:13:07 -05:00
Neil Lathwood
21a70dcb8a newdevice: Added basic detection for Geist Watchdog (#6467)
* newdevice: Added basic detection for Geist Watchdog

* Added further support

* Added more health sensors
2017-04-22 08:11:21 -05:00
Neil Lathwood
3ff8b269f5 newdevice: Added support for enLogic PDUs (#6464) 2017-04-22 08:07:37 -05:00
Neil Lathwood
b27e200a6c newdevice: Added support for Eltex OLT devices (#6457) 2017-04-22 08:05:17 -05:00
Neil Lathwood
f418a80a5e Added mem/cpu support for TiMOS (#6483) 2017-04-22 07:58:52 -05:00
Neil Lathwood
d77186ddc6 Added missing slot info in for Enterasys memory (#6481)
* fix: Updated enterasys mempools disco/polling to support multiple ram devices

* added slot information
2017-04-20 14:46:24 +01:00
Neil Lathwood
75d62aa068 fix: Updated enterasys mempools disco/polling to support multiple ram devices (#6458) 2017-04-19 10:56:32 -05:00
Tony Murray
eebf0d263a refactor: move ios detection to yaml using new sysDescr_except (#6456)
* refactor: move ios detection to yaml using new sysDescr_except

* Add IOS-XE too

* Add Catalyst 4500 test data, it needs IOS-XE for proper detection.
2017-04-19 11:02:29 +01:00
remydb
0e6b42fc05 Fix duplicate dBm readings for single-lane optics (#6460) 2017-04-19 10:42:10 +01:00
Tony Murray
c88c677a16 refactor: only run pre-cache for the current OS (#6453)
Change powerwalker to use the $pre_cache array
2017-04-18 22:26:58 +01:00
cahluor
2ced131cf5 Updated logging within discover_new_device() to record device that attempted to discover device
Updated logging within discover_new_device() to record device that attempted to discover device
2017-04-18 21:43:55 +01:00
Søren Rosiak
66a3a54879 fix: Cisco Entity Sensor Threshold's returns 0 (#6440) 2017-04-17 19:39:46 -05:00
Tony Murray
0885813ba3 refactor: move siklu os detection to yaml (#6431) 2017-04-17 22:00:48 +01:00
Tony Murray
e521b39a7d refactor: move rfc1628_compat into os yaml (#6424) 2017-04-17 21:57:27 +01:00
Neil Lathwood
295d0b405d Revert "newdevice: improve IOS-XE detection" (#6436)
* Revert "improve callback serial number regex (#6435)"

This reverts commit 2f881e3d80.

* Revert "fix: vlan port mappings not removed (#6423)"

This reverts commit 924b751be4.

* Revert "missed file deletion (#6430)"

This reverts commit 801a563c10.

* Revert "refactor: move Engenius discovery to yaml (#6428)"

This reverts commit fa731f3826.

* Revert "refactor: move cometsystem-p85xx (#6427)"

This reverts commit 01477a15f4.

* Revert "refactor: move the rest of avaya os detection to yaml (#6426)"

This reverts commit 8a8edb7d6d.

* Revert "refactor: move aos discovery to yaml (#6425)"

This reverts commit 54975f64d4.

* Revert "newdevice: improve IOS-XE detection (#6429)"

This reverts commit 9c44b1a809.
2017-04-16 08:30:16 +01:00
Tony Murray
924b751be4 fix: vlan port mappings not removed (#6423)
Thanks to @diodo for supplying this fix.
2017-04-15 20:08:49 +01:00
Tony Murray
801a563c10 missed file deletion (#6430) 2017-04-15 07:25:10 -05:00
Tony Murray
fa731f3826 refactor: move Engenius discovery to yaml (#6428) 2017-04-15 08:11:51 +01:00
Tony Murray
8a8edb7d6d refactor: move the rest of avaya os detection to yaml (#6426)
Detection should be improved for these OS.
2017-04-15 08:10:15 +01:00
Tony Murray
54975f64d4 refactor: move aos discovery to yaml (#6425)
Untangle ArubaOS/AOS-W a bit.
Test data well supported by stats.
OmniStack LS, feels odd, but leaving it as AOS.
2017-04-15 08:09:14 +01:00
Tony Murray
9c44b1a809 newdevice: improve IOS-XE detection (#6429)
PPC_LINUX_IOSD or X86_64_LINUX_IOSD means IOS-XE, Drop the X86_64_ as that gives us full coverage.
Drop IOS-XE usage for detection.  Allows us to migrate ios detection to yaml.
2017-04-15 07:46:09 +01:00
Neil Lathwood
d0c87400f3 newdevice: Added detection and sensor support for EMC OneFS v8 (#6416)
* newdevice: Added detection and sensor support for EMC OneFS v8

* Improve discovery
2017-04-14 21:25:24 -05:00
Neil Lathwood
78c77ac637 fix: Updated enterasys proc discovery by setting correct index (#6422) 2017-04-14 19:56:35 -05:00
remydb
3884a3c2f7 newdevice: Added support for multi-lane optics on Juniper equipment (#6377)
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Poll device for optic lane info

* Add discovery for multiple lanes per optic

* Update formatting

* Update AUTHORS.md
2017-04-13 10:56:16 +01:00
Tony Murray
e005f78211 newdevice: detect more devices as Comware (#6386)
* newdevice: improve comware detection
Only some H3C Comware devices were detected as comware, detect them all.

* Update the test data

FYI, C1234 was just a nonsense string
2017-04-13 10:52:07 +01:00
Lorenzo Zafra
bd3fd64f3e newdevice: Support - ICT Digital Power Supply (#6369)
* Basic support for ICT PSU, no sensors yet.

* Added current and voltage sensors

* Fixed coding style issues

* Fixed indexes
2017-04-12 15:00:54 -05:00
Lorenzo Zafra
457f2e9744 newdevice: Support - ICT DC Distribution Panel (#6379)
* New Device Support for ICT DC Distribution Panels

* Fixed indexes, removed tests

* Supply name instead of oid to snmp_get call

* Fixed index conflict for current sensors
2017-04-12 14:37:22 -05:00
Lorenzo Zafra
c22283e218 newdevice: Added signal sensor for opengear devices (#6401) 2017-04-12 13:35:55 -05:00
Neil Lathwood
0190691061 newdevice: Added sensors + additional info for HPE iPDU (#6382)
* newdevice: Added sensors + additional info for HPE iPDU

* added trim
2017-04-07 22:19:38 -05:00
Neil Lathwood
8a2f103144 fix: Moved dnos health disco to powerconnect (#6331) 2017-04-04 13:03:44 -05:00
Neil Lathwood
1bbbaff58b refactor: Moved ifLabel -> cleanPort and updated the usage (#6288)
* refactor: Moved ifLabel -> cleanPort and updated the usage

* added list of tags allowed

* few updates as per comments from @murrant

* Added simple unit tests

* double display for javascript popover

* Remove ifNameDescr() function
Fix realtime port page

* remove accidental temp code

* Remove double display calls in ajax tables
2017-04-04 08:08:23 +01:00
Neil Lathwood
ae73109159 fix: Fixed CPU/Mem polling for Cyberoam-UTM devices (#6315) 2017-04-01 22:17:08 +01:00
Neil Lathwood
a776ad5c8a refactor: Update ucd-diskio discovery to use index + descr as unique identifies #4670 (#6270) 2017-03-28 01:42:56 -05:00
InfraTeam
bc14b9137e newdevice: Added detection for Hirschmann Railswitch #6161 (#6207)
* Added detection for Hirschmann Railswitch

* Update AUTHORS.md

I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes (old states and temperatures directories removal)

* fix for PR 6207 : state fileupdated
2017-03-23 14:36:25 -05:00
Tony Murray
e7057ecea5 feature: Application auto discovery (#6143) 2017-03-22 14:59:39 +00:00
Tony Murray
31dfe62965 fix: do not discover non-existent frequency sensors (#6199) 2017-03-15 09:15:27 +00:00
Neil Lathwood
004556dc01 fix: fix Liebert humidity and temp sensors #6196 (#6198)
* fixed liebert humidity and temp sensors #6196

* fix temperature and humidity
2017-03-14 22:20:17 -05:00
Tony Murray
b2afa147c6 Liebert temperature sensor in the old directory (#6191) 2017-03-13 23:06:41 +00:00
Søren Rosiak
becab43087 fix: Wrong NetBotz file location (#6188)
woops
2017-03-13 15:43:45 -05:00
Søren Rosiak
745eb7b120 feature: Add APC NetBotz State Sensor Support (#6167) 2017-03-12 22:28:34 +00:00
Tony Murray
4ae4847a60 fix: Change rfc1628 'state' (est. runtime and on battery) to runtime (#6158)
* fix: Change rfc1628 'state' (est. runtime and on battery) to runtime

* Fix up the graph error ( : in ds name).
Change seconds on battery to minutes so the value is in minutes

* wrong scale for limits

* Don't use snmp_walk
2017-03-12 21:44:24 +00:00
FTBZ
9c43fbd76b fix: Adding state sensor support for RFC1628 UPS (#6153)
* Adding state sensor support for RFC1628 UPS

* added runtime for rfc1628

* Delete rfc1628.inc.php
2017-03-12 14:55:13 -05:00
Tony Murray
ea5a4b3586 fix: attempt to fix several bugs with sensor limits and incorrect detection (#6176) 2017-03-12 14:56:56 +00:00
Tony Murray
6993bd122c fix: sensors not being removed from database (#6169) 2017-03-12 00:03:04 +00:00
Neil Lathwood
38cebc5fd7 feature: Added better BGP support for Arista (#6046)
* feature: Added better BGP support for Arista
2017-03-11 23:16:49 +00:00
Xavier Beaudouin
fa29839d36 newdevice: Added Coriant support (#6026)
* Added Coriant TNMS MIB and MEF (Metro Ethernet Forum) MIB

* Coriant Logo

* Added Basic Librenms Support and MEF support

* Forgot snmpsim

* Better like this

* Spaces !

* Renamed sql file

* Space

* Fix spaces

* svgo optimized logo

* Removed modules that are by default to 0

* Added sysDescr as requested

* Fix conflict file

* Setting right severity id in the discovery log_event()

* Since MEF-EVC can be used on other devices than Coriant's one, lets this be used by the poller/discovery itself

* Fixed spaces

* Rename 173.sql to 174.sql

* Moved logo from os/  to logos/
Addd Icon

* Fix name

* minimize file

* Change l/w to viewbox and minify

* Renamed mef-evc to mef on request from @laf

* Rename 174.sql to 175.sql
2017-03-11 07:30:31 -06:00
Neil Lathwood
48022fb873 newdevice: Added additional sensors for Liebert / Vertiv #5369 (#6123) 2017-03-11 07:09:13 -06:00
FTBZ
1d80a0d2a6 fix: Fix Generex voltage sensor divisor (#6156)
* Fix Generex votage sensor divisor and add an exclusion option

* Allow OID to be used to figure out if we need to change the divisor.

* Missed current and found bugs while I was there.

* Use returns swap oid logic
2017-03-09 21:47:58 -06:00
Neil Lathwood
255d5fb598 newdevice: Added state support for HP servers #5113 (#6124) 2017-03-09 16:05:01 -06:00
Søren Rosiak
faf5517362 newdevice: Improved APC NetBotz Support (#6157)
* initial

* woops

* remove quote
2017-03-09 15:40:39 -06:00
FTBZ
6f2ba2b45b Fix Generex load sensor divisor (#6155) 2017-03-09 14:10:25 -06:00
Tony Murray
b4c93cf9e6 Netonix, properly set default fanspeed limits (#6144)
Fans can stop if they are unneeded.
2017-03-09 08:07:18 +00:00
Neil Lathwood
ecc5b5f5db Update sensor_type (#6108) 2017-03-06 16:37:12 -06:00
Neil Lathwood
339cda3775 fix: Old / duplicate sensors would never be removed, this is fixed by setting the $type correctly #6044 (#6079) 2017-03-06 15:39:56 +00:00
Neil Lathwood
198ec806b3 fix: Refactor ipoman cache code to use pre-cache in sensors #5881 (#5983)
* fix: Refactor ipoman cache code to use pre-cache in sensors #5881

* added missing file
2017-03-06 15:36:53 +00:00
David Bell
2a211e86dc newdevice: Added extrahop detection (#6097) 2017-03-06 14:11:10 +00:00
David Bell
a02b987fdf newdevice: Added state detection for Dell TL4k #2752 2017-03-05 11:56:04 +00:00
pblasquez
680ef0645f newdevice: Added support for F5 Traffic Management Module memory 2017-03-03 20:38:59 +00:00
VVelox
5805a55483 newdevice: Added support for Cyberpower PDU (#6013) 2017-03-03 18:40:33 +00:00
VVelox
57f27fbad2 newdevice: Added support for Digipower PDU (#6014) 2017-03-03 14:26:21 +00:00
Neil Lathwood
aa24fb62be fix: Do not try and only include files once when they are needed again! #5881 (#6053) 2017-03-01 17:06:11 -06:00
Søren Rosiak
1f59322c2d feature: HPE Comware Processor Discovery (#6029)
* feature: HPE Comware Processor Discovery

* fix format

* Use database entPhysical info

* Remove database check
2017-03-01 14:21:02 -06:00
FTBZ
e0bfad015e fix: Adding state sensor support for Synology DSM (#5991)
* Adding state sensor support for Synology DSM

* Removing UPS MIB file

* Removing spaces and returns

* Adding spaces...

* removing blank line

* Removing unnecessary cache_multi
2017-02-25 11:52:45 +00:00
Søren Rosiak
0ec02360d9 feature: Add Eaton UPS Charge Sensor (#6001) 2017-02-25 11:19:23 +00:00
David Bell
3e01de724f newdevice: Add CPU and memory for Entera devices #5974
* Add CPU and memory for Entera devices

* Renaming file for consistency

* split -> explode

* Added graphs to overview page, changed oid used for CPU, and added storage

* Remove uneeded code

* Fixed storage
2017-02-23 23:01:56 +00:00
David Bell
3512b19e2b feature: Update LLDP discovery to use IP address if discovery_by_ip is enabled #5872
* Update LLDP discovery to use IP address if discovery_by_ip is enabled

* Update as per laf's suggetions

* Fix indentation

* Updated with Laf's suggestion

* Add more debugging

* Trim MAC address

* Remove debug statements
2017-02-23 22:47:58 +00:00
David Bell
29d19c6be7 Update SEOS processor OID (#5967) 2017-02-21 14:05:32 +00:00
David Bell
847587244f newdevice: Added SEOS CPU discovery #5917 2017-02-20 23:54:07 +00:00
Neil Lathwood
ced759105e fix: Updated qnap sensor code to be more generic #5910 (#5925)
* fix: Updated qnap sensor code to be more generic #5910

* small change to check for valid data

* small code change
2017-02-17 14:43:30 +00:00
Neil Lathwood
38168832a6 refactor: Centralise device up/down check and use in disco #5862 (#5897)
* refactor: Centralise device up/down check and use in disco #5862

* Remove extra indentation
2017-02-15 15:22:09 +00:00
Neil Lathwood
cc51a68f85 feature: Optional partial port polling (#5805)
* feature: Added ability to switch port polling mode

* update, speed things up slightly by walking certain tables

* more fixes

* updates

* updates

* update to exclude ports that are down

* wrong variable used

* update to set previous port status when null

* small update to port disco
2017-02-14 17:26:07 -06:00
Neil Lathwood
b4da5de452 refactor: Centralised the updating of device logo #5873 (#5874) 2017-02-14 12:56:16 +00:00
Neil Lathwood
1e2ab73239 tidy up some more eventlog things (#5885)
* tidy up some more eventlog things

* update sql file
2017-02-14 12:06:01 +00:00
Richard Mayhew
e4f48e661e Add additional eventlog severity levels (#5879) 2017-02-13 22:32:02 +00:00
Richard Mayhew
5bfd23e7eb webui: New eventlog severity classification (#5830)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* New event log severity model

* Fixed spaces vs tabs

* Learning the format requirements

* Learning the format requirements

* Moved the colours in to the stylesheet

* change SQL file to stop conflicting

* refactor log_event so severity isn't last, but reference is.

* keep having to move the file due to new PR conflicts

* Revert "keep having to move the file due to new PR conflicts"

This reverts commit f3030e7218.

* extended support to dashboard and eventlog page

* formatting
2017-02-12 22:41:05 +00:00
Neil Lathwood
3944185379 update tripplite divisor for certain versions #5364 (#5794) 2017-02-10 18:38:51 -06:00
Neil Lathwood
5e2ef216f9 newdevice: Added further QNAP Turbo NAS detection #5229 (#5804)
* newdevice: Added further QNAP Turbo NAS detection #5229

* reverted to us linux.inc.php for detection

* removed last sysMfgName reference
2017-02-09 09:00:08 +00:00
Neil Lathwood
f7d65d0ee2 device: Added proc and mem support TPLink JetStream devices #5462 (#5817) 2017-02-09 08:46:59 +00:00
Neil Lathwood
d2d8b05987 device: Added proc, mem and sensor support for FabricOS #5295 (#5815) 2017-02-09 08:13:19 +00:00
Neil Lathwood
c3a9bcc1b3 device: Added further support for Zynos / Zyxell devices #5292 (#5814)
* device: Added further support for Zynos / Zyxell devices #5292

* correct year
2017-02-09 08:12:10 +00:00