Commit Graph
13993 Commits
Author SHA1 Message Date
Aldemir AkpinarandNeil Lathwood 34d0fc3199 refactor: Ability to edit default alert template (#7121)
* newfeature: ability to edit default alert template

* Fix style errors

* Added missing db query

* Removed unnecessary code, and added faq section

* Minor documentation about default alert template. And put back wrongly removed lines

* Fixing the silly old mistakes... again
2017-08-12 20:21:13 +01:00
EtzandNeil Lathwood 0ebf436d47 refactor: Replace escapeshellcmd with Purifier in service checks (#7118)
* fix: issue #4934

Required for service checks, which include multiple quotes or regex.

Proposed patch tested, works.

* fix: issue #4934

Required for service checks, which include multiple quotes or regex.

Proposed patch tested, works.
2017-08-12 20:19:12 +01:00
ZuchtandNeil Lathwood 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
Cory HillandNeil Lathwood 25ec0be8d3 newdevice: Added support for Trango Apex Lynx OS (#7142)
* Added discovery support for Trango Apex Lynx OS

* Add discovery support for Trango Apex Lynx OS

* Add discovery support for Trango Apex Lynx OS
2017-08-11 23:09:07 +01:00
Søren RosiakandNeil Lathwood a84392cff6 newdevice: Added dry contact state support for AKCP devices
* feature: Add AKCP dry contact state support

fix #7100

* Updated to use yaml
2017-08-11 23:05:18 +01:00
RobJEandNeil Lathwood cdf8021843 snmp exec support (#7126)
* I agree to the conditions of the Contributor Agreement contained in
doc/General/Contributing.md.

* add support for snmpd exec
2017-08-11 22:11:02 +01:00
kedearianandNeil Lathwood 38cb8ab5db docs: Allow host renames with selinux enforcing for CentOS installs
* Allow host renames with selinux enforcing

you have to change the fcontext of /opt/librenms/rrd/ to allow read/write.

* Update Installation-CentOS-7-Nginx.md

Changed to add semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/rrd(/.*)?' to complete the selinux change.

* Update Installation-CentOS-7-Apache.md
2017-08-11 09:34:21 +01:00
Tom SealeyandNeil Lathwood 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
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