Commit Graph

5111 Commits

Author SHA1 Message Date
deepseth
809c9ea591 feature: Added Syslog hook for ASA support (#7268)
* Added limited support for ASA using emblem logging

* Updated documentation

* Updated ASA support to cover regular and emblem logging

* Gave the variable a more suitable name

* Removed debug output
2017-09-01 18:37:01 +01:00
deepseth
2cbee2dc02 refactor: Added IOS-XR Bundle-Ether shortened/corrected forms (#7283)
* Added IOS-XR Bundle-Ether shortened/corrected forms
2017-09-01 17:14:03 +01:00
Tom Sealey
4c3562ea0f alerts: Added Slack mrkdwn support in alert messages (#7202) 2017-09-01 14:50:13 +01:00
Paul Heinrichs
6914666004 newdevice: Added support for DragonWave Horizon (#7264)
* Add Dragonwave Horizon Support

* Add snmprec and fix style issues

* Update logo and discovery oid

* Update horizon.yaml
2017-08-30 23:13:31 +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
Zmegolaz
18fb90ad25 fix: Corrected variable for timeout messages in unix-agent.inc.php (#7246) 2017-08-29 10:00:09 -05:00
Neil Lathwood
b5d24a533a fix: Fixed the empty() vlan detection check (#7241) 2017-08-28 20:24:43 +01:00
Arzhel Younsi
33c8d38e57 Use $install_dir var for auth_mechanism require_once
This PR fixes the following error that showed up after upgrading to 1.31.
```
Array ( [0] => 1 [1] => Uncaught Error: Call to undefined function init_auth() in /srv/deployment/librenms/librenms-cache/revs/8c9da11850ecbf2a949b9317d1fce75301bfd13b/includes/init.php:152 Stack trace: #0 /srv/deployment/librenms/librenms-cache/revs/8c9da11850ecbf2a949b9317d1fce75301bfd13b/html/index.php(59): require() #1 {main} thrown [2] => /srv/deployment/librenms/librenms-cache/revs/8c9da11850ecbf2a949b9317d1fce75301bfd13b/includes/init.php [3] => 152 ) 
```
it's most likeley related to the fact that we use a symlink, and $config['install_dir'] is the symlink, and $install_dir is the real folder.
2017-08-28 12:07:00 -07:00
Neil Lathwood
061add5eb1 fix: Re-added changes for #6959 removed by accident in #7128 (#7240) 2017-08-28 13:44:24 -05:00
Neil Lathwood
951e09e925 fix: issues with Geist Watchdog sensors
fix: issues with Geist Watchdog
2017-08-28 19:19:32 +01:00
Daniel Preussker
f4fd564f46 Update hddtemp.inc.php (#7232) 2017-08-28 13:10:09 -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
Tony Murray
0def643e09 feature: Notify about failed updates, block detectable bad updates (#7188)
* Feature: Notify about failed updates, block detectable bad updates
Ability to post notifications when the update fails.
Detect and roll back updates that will cause broken installs. (Needs testing)
Add severity to notifications, critical (2) notifications will display a toast.

This will be used for removing in-tree dependencies and raising the minimum php version.

* Improve naming a bit add phpdoc to new_notification
In case multiple notifications are created, remove them all.

* Remove notifications when update is disabled.

* update travis to use db testing

* added missing index
2017-08-26 21:35:39 +01:00
Neil Lathwood
932b05c38c fix: Updated dump_db_schema() to use default 0 if available (#7225)
* fix: Updated dump_db_schema() to use default 0 if available

* added removed column for testing
2017-08-26 20:23:30 +01:00
yac01
38cf424417 webui: Added ability for users to configure selectable times for graphs (#7193)
* feat:add links for librenms graph

* added widescreen config
2017-08-25 20:11:01 +01: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
e890509b3d newdevice: Added Kemp LoadMaster Version Info (#7205) 2017-08-22 20:43:28 +01:00
Søren Rosiak
31c641e97a fix: Use Correct Comware dBm Limits (#7207) 2017-08-22 20:42:41 +01:00
sbeneke
e68082d178 fix: Correct memory calculation for screenos (#7191)
correct memory calculation (SSG-140)
2017-08-21 22:56:13 +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
Daniel Preussker
d3094fa657 security: Security Patch to deal with reported vulnerabilties (#7164)
* WIP: Security Patch

* Update install.php

Styling fix

* Update install.php

* Update dbFacile.php

* Fix whitespace
2017-08-18 21:29:12 +01:00
Lorenzo Zafra
2da9ee7458 device: Added detection for Hitachi Data Systems SAN (#7160)
* Syslog test case

* revert changes on master

* newDevice: Hitachi Data Systems SAN

* Renamed mib directory

* Change discovery of sysObjectId
2017-08-18 07:58:38 +01:00
Filippo Giunchedi
7cf00eb1ce fix: Send zero for fields without values for graphite (#7176)
Fixes #7166
2017-08-17 17:20:04 +01:00
Filippo Giunchedi
0d384b8949 fix: Sanitize metric name before sending via graphite (#7173)
Fixes #7167
2017-08-17 17:18:10 +01:00
Neil Lathwood
ad6e82b3c7 fix: Fixed dump_db_schema / validate to work with newer versions of MariaDB (#7162)
* fix: Fixed dump_db_schema / validate to work with newer versions of MariaDB

* removed debug
2017-08-17 08:25:45 +01:00
Neil Lathwood
96b010a735 feature: Forced OS Cache rebuild for unit tests (#7163) 2017-08-16 13:58:10 -05:00
erotel
dc41c9d565 newdevice: Udated edgecos OS polling to include more models
* Udated edgecos OS polling V2

* Udated edgecos OS polling V2

* Udated edgecos OS polling V2
2017-08-14 14:06:25 +01:00
Neil Lathwood
8d5ae076bd newdevice: Updated AKCP sensorProbe detection (#7152) 2017-08-13 21:02:28 +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
Neil Lathwood
1e4be3bf4a refactor: Udated edgecos OS polling (#7149) 2017-08-13 13:32:35 +01:00
Neil Lathwood
3594f494eb newdevice: Added support for Gude ETS devices (#7145) 2017-08-12 20:44:42 +01:00
Aldemir Akpinar
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
Etz
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
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
Cory Hill
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 Rosiak
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
RobJE
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
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
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 Murray
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
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