Commit Graph
17185 Commits
Author SHA1 Message Date
Tony MurrayandGitHub a44dc7bd28 fix bugs introduced to address-search (#7138) 2017-08-10 09:07:39 -05:00
Tom SealeyandNeil Lathwood 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 LathwoodandGitHub aca772511b Update ees.yaml to use correct overview graphs (#7137)
* Update ees.yaml

* Update ees.yaml
2017-08-09 19:17:31 +01:00
Tony MurrayandGitHub 3ca6f84013 fix: bug in ipv62snmp function (#7135)
typo compressed instead of uncompressed
Tidied up the function and added unit tests.
2017-08-09 08:47:35 -05:00
Tony MurrayandGitHub ece0488d96 fix: missed call to removed is_ip function (#7132) 2017-08-08 16:23:03 -05:00
Neil LathwoodandGitHub 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
Tony MurrayandNeil Lathwood 1098529c62 fix: Check session directory is writable before install.php (#7103)
Drop pear check.
A few html/bootstrap cleanups too.
2017-08-08 20:26:03 +01:00
Aldemir AkpinarandNeil Lathwood b31188c762 fix: Raritan CPU temperature discovery (#7130) 2017-08-08 20:17:03 +01:00
Tony MurrayandGitHub 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 LathwoodandGitHub 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
Tony MurrayandGitHub 649795df86 tests: Tests for errors in mib files (#7030)
* tests: Tests for errors in mib files

* Some additional mib test

* Use groups to exclude mib tests from the default test run

* Enable per-mib tests too

* Refactor tests for easy filtering with @dir or @file (relative to mib_dir)
2017-08-07 11:32:13 -05:00
sfiniandNeil Lathwood 4e56ee17b8 newdevice: Added detection for Alteon OS
* Create radware.yaml

Add Support for radware/Alteon application Switch

* Update radware.yaml

Remove comment

* Update radware.yaml

remove comment

* Create radware.snmprec

* Add files via upload

* Update radware.svg

* Update and rename radware.yaml to alteonos.yaml

Change os, group

* Rename radware.snmprec to alteonos.snmprec

* Removed mib-dir
2017-08-04 20:16:46 +01:00
Neil LathwoodandGitHub 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
Tony MurrayandGitHub 0d36244eda Fix string quoting in snmp trim (#7120) 2017-08-04 08:03:03 -05:00
Neil LathwoodandGitHub e6274720a7 fix: Strip " and / from snmpwalk_cache_oid() (#7063)
* fix: Strip " and / from snmpwalk_cache_oid()

* updated trim()

* Remove redundant trim()
2017-08-04 07:55:13 +01:00
Lorenzo ZafraandNeil Lathwood 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 LathwoodandGitHub 0ff847a9b3 newdevice: Added detection for NEC Univerge devices
newdevice: Added detection for NEC Univerge devices
2017-08-03 19:01:01 +01:00
Neil LathwoodandGitHub 779ed8bc3d fix: Fixed Raspberry Pi sensors support
fix: Fixed Raspberry Pi sensors support
2017-08-03 17:11:08 +01:00
Neil LathwoodandGitHub be4a4cd5cf webui: Update avaya-ers to use ifName for displaying
changed avaya-ers.yaml to show ifName in WebUI
2017-08-03 17:09:52 +01:00
Tom SealeyandGitHub dc1b68d743 changed yaml to show ifName in WebUI
ERS ifDescr is far to long and makes lists of ports unwieldy.
Changing it to ifName gives the same info, but in a shorter form.
2017-08-03 15:53:35 +01:00
Neil LathwoodandGitHub 573ccd415c fix: Added missing get_group_list() to ldap-authorization auth method
Added get_group_list() to ldap-authorization. The function was copied…
2017-08-02 22:45:52 +01:00
Neil LathwoodandGitHub 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
Neil LathwoodandGitHub 5d135b5283 newdevice: Added CPU temperature for QNAP devices
Updated qnap.inc.php to include CPU temps
2017-08-02 22:02:50 +01:00
AndyRapandGitHub 4d14d5b1aa Update qnap.inc.php
Tested on QNAP TS-653 Pro, TS-851 and TS-859
2017-08-02 21:04:22 +01:00
AndyRapandGitHub bc72a487ad Update qnap.inc.php 2017-08-02 20:37:07 +01:00
laf 51f703ea04 newdevice: Added detection for NEC Univerge devices 2017-08-02 20:17:47 +01:00
EtzandTony Murray 115515f966 fix: Service warning/critical alert rules (#7105)
Name and rule statements were swapped.
2017-08-02 09:20:45 -05:00
Nick Ramser 2e2e046a81 Remove blank line at the end of the file. 2017-08-02 08:32:43 -04:00
Neil LathwoodandGitHub a435c7c2f6 Update vlans.inc.php 2017-08-02 07:59:36 +01:00
Neil LathwoodandGitHub c3627ec4e7 Merge pull request #7085 from murrant/device-status-event
fix: Add device status reason to up messages.
2017-08-01 21:49:15 +01:00
Nick Ramser 4acf4eafd7 Added get_group_list() to ldap-authorization. The function was copied from ldap.inc.php 2017-08-01 16:16:52 -04:00
Tom SealeyandGitHub 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 SealeyandGitHub 01fca2ebd5 fixed more formatting errors 2017-08-01 10:35:14 +01:00
Tom SealeyandGitHub bd0e003e27 fixed code formatting errors 2017-08-01 10:25:07 +01:00
Tom SealeyandGitHub 6619450d56 adding RC-VLAN-MIB 2017-08-01 10:10:35 +01:00
Tom SealeyandGitHub d344629eda added check for Avaya-ERS OS 2017-08-01 10:09:47 +01:00
Tom SealeyandGitHub 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
Neil LathwoodandGitHub afa5b6fd00 Merge pull request #7093 from tslytsly/patch-1
fixed typo
2017-07-31 21:01:09 +01:00
Tom SealeyandGitHub 6a908affc8 fixed typo 2017-07-31 13:26:17 +01:00
Neil LathwoodandGitHub 92116804d5 Merge pull request #7092 from laf/1.30-changelog-5
Added Changelog for v1.30
2017-07-30 17:23:02 +01:00
Neil LathwoodandGitHub 7eb1bf0391 Added Changelog for v1.30 (#7091) 2017-07-30 16:32:59 +01:00
laf 2bf3fd8905 Added Changelog for v1.30 1.30 2017-07-30 09:31:34 +01:00
Lorenzo ZafraandNeil Lathwood f66d73de89 refactor: Use ifName if ifDescr is blank
* Add if statement for ROS os when querying remote port id for LLDP map

* Apply ifDescr fix in ports polling instead.
2017-07-29 12:09:15 +01:00
Lorenzo ZafraandNeil Lathwood 9a84a53a3f newdevice: Added ROS support for state sensors and system temps
* Added support for RS910 and added state sensors and temperature sensor

* Update ros.yaml
2017-07-29 11:44:02 +01:00
Tom SealeyandNeil Lathwood 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
Yacine BenamsiliandNeil Lathwood de6af21131 fix correction of the echo of the opentsdb function to debug (#7086)
* feat: ADD co field for Opentsdb

* Update opentsdb.inc.php

* Update OpenTSDB.md

* Update opentsdb.inc.php

add d_echo for debugging

* Delete 200.sql

* Update OpenTSDB.md

* Update db_schema.yaml

* Update opentsdb.inc.php

* Update opentsdb.inc.php
2017-07-27 20:09:31 +01:00
Neil LathwoodandGitHub fc2041caaf api: Added api routes for eventlog, syslog, alertlog, authlog (#7071) 2017-07-27 19:56:38 +01:00
Tony Murray f1fd01f276 Add device status reason to up messages. 2017-07-27 08:27:52 -05:00
djamp42andNeil Lathwood cd006d1842 newdevice: Added additional PBN detection
* PBN AIMA3000

Add Support for PBN AIMA3000

* Add PBN AIMA3000 detection

Add PBN AIMA3000 detection
2017-07-27 08:46:54 +01:00
laf b840f8f315 updated sensors to use pre-cache 2017-07-26 21:39:19 +01:00