2216 Commits

Author SHA1 Message Date
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
f158a56774 fix incorrect getOsSetting arguments (#7339)
Missed calls when the function definition changed.
2017-09-14 00:43:14 -05:00
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
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
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
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
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
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
da0dcda409 newdevice: Updated state sensor code for Netonix 2017-09-03 21:08:57 +01:00
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
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
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
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
b5d24a533a fix: Fixed the empty() vlan detection check (#7241) 2017-08-28 20:24:43 +01:00
061add5eb1 fix: Re-added changes for #6959 removed by accident in #7128 (#7240) 2017-08-28 13:44:24 -05:00
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
701813f3ad fix: Comware dBm Limits && Comware Sensor Descr (#7216) 2017-08-24 15:08:42 -05:00
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
6bab347335 newdevice: Added FDB and ARP support for edgeswitch devices (#7199) 2017-08-22 20:55:39 +01:00
65c6240c2a newdevice: Added additional sensor support for Sentry4 devices (#7198) 2017-08-22 20:52:27 +01:00
e1ffdedb6b newdevice: Added additional vlan support for Juniper devices (#7203) 2017-08-22 20:52:01 +01:00
31c641e97a fix: Use Correct Comware dBm Limits (#7207) 2017-08-22 20:42:41 +01:00
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
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
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
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
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
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
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
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
b31188c762 fix: Raritan CPU temperature discovery (#7130) 2017-08-08 20:17:03 +01:00
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
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
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
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
779ed8bc3d fix: Fixed Raspberry Pi sensors support
fix: Fixed Raspberry Pi sensors support
2017-08-03 17:11:08 +01:00
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
4d14d5b1aa Update qnap.inc.php
Tested on QNAP TS-653 Pro, TS-851 and TS-859
2017-08-02 21:04:22 +01:00
bc72a487ad Update qnap.inc.php 2017-08-02 20:37:07 +01:00
a435c7c2f6 Update vlans.inc.php 2017-08-02 07:59:36 +01:00
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
01fca2ebd5 fixed more formatting errors 2017-08-01 10:35:14 +01:00
bd0e003e27 fixed code formatting errors 2017-08-01 10:25:07 +01:00
d344629eda added check for Avaya-ERS OS 2017-08-01 10:09:47 +01:00
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
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
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
b19116abe6 newdevice: Added CiscoSB DOM Support (#7072) 2017-07-23 19:35:30 +01:00
64909849ee feature: Add CiscoSB Port Suspended Status Info (#7064) 2017-07-22 21:50:45 +01:00