Commit Graph

14704 Commits

Author SHA1 Message Date
Alan Gregory
977796382d StoneOs improvements (#8155)
* Added snmp mibs from vendor (https://www.hillstonenet.com)

* Added memoery discovery and pool

* Added serial and os version discovery.

* Added cpu discovery.

* Added temperature and power sensors

* Added test data.

* Fix yaml format.

* Pass mib name as parameter.

* Pass mib name as parameter.

* Use numeric OID

* User snmp_get_multi_oid

* Use snmp_get_multi_oid

* Remove default extension from vendor.

* Update test data.

* Renamed some mibs + changed oid in disco proc

* Updated json test data

* Update processor discovery to yaml
2018-02-07 23:28:46 -06:00
Tony Murray
f6ad067af4 airos processor and sensor fixes (#8227) 2018-02-07 23:24:20 -06:00
axemann
f6cc671bb0 Add OPNsense support (#8199)
* Add OPNsense support

* Add OPNsense support (#8196)

* Revert unix.inc.php, move polling to opnsense.inc.php

* Revert unix.inc.php

* Update opnsense.inc.php
2018-02-07 23:17:35 -06:00
crcro
bfcc15aaa8 webui: fix services display (#7993)
* fixed display bug when only one host had services

* small cleanup, renamed vars as laf change request

* message display wrongly removed, integrated back

* missed one changed line by #8030
2018-02-07 21:20:27 -06:00
Tony Murray
6bbe5038e8 fix linkify to work with with ip addresses (#8226)
* fix linkify to work with with ip addresses

* update tests
2018-02-07 20:48:18 -06:00
Tony Murray
8abe508cfd Cisco Processor update (#8216)
Fix issues with newer devices by updating CISCO-PROCESS-MIB
Detect individual cores on supported processors
2018-02-07 20:47:56 -06:00
Tony Murray
7a2e5f4e40 Update to phpunit 5 (#8217)
remove array_column it is no longer needed
2018-02-07 20:45:56 -06:00
Tony Murray
f43e23e15a Restore vendor contents even if composer is not available (#8223)
* Restore vendor contents even if composer is not available
Leave the code in both places for safety.

* Instruct users to use the wrapper instead of straight up composer...
2018-02-07 20:45:18 -06:00
dragans
547451974d Update librenms.logrotate (#8220)
* Update librenms.logrotate

- Change path /opt/librenms/logs/*log so that logrotate catches http logs (access_log and error_log).
- Added SU parameter to rotate files with librenms user, as it was throwing insecure permissions error without it.
- Added CREATE parameter to create new log files as librenms user.

* Update librenms.logrotate
2018-02-07 13:44:17 -06:00
Misha Komarovskiy
26ce852c95 device: Add XOS X480 and X650 desc and tests (#8206)
* device: Add XOS X480 and X650 desc and tests

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* device: add XOS x480 and x650 test data

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Add missing hardware string in test data
2018-02-06 23:47:56 -06:00
Rémy Jacquin
19a17ed348 Allow administrators to edit devices sysName (#8149)
* Allow administrators to edit devices sysName
Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Fix html/pages/device/edit/device.inc.php identation
Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Revert "Allow administrators to edit devices sysName"

This reverts commit 11b127b082.

* Moved sysName editing to snmp tab

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
2018-02-06 23:35:00 -06:00
Tony Murray
e97c3bcb0c Fix awplus typo (#8215) 2018-02-06 22:42:07 -06:00
Tony Murray
913d6dc641 refactor: Update awplus to new processor discovery (#8204)
* Update awplus to new processor discovery
Have no test data, so this needs testing.

* Updated YamlTest to include data as optional param for processors
2018-02-06 22:28:14 +00:00
Tony Murray
226f420608 device: Airos added CPU, GPS, and Temp health sensors (#8203)
For devices that support it
https://community.ubnt.com/t5/airMAX-Frequently-Asked/airMAX-Where-can-I-find-the-latest-MIB-for-airOS/ta-p/1294379
2018-02-06 21:27:23 +00:00
Tony Murray
5141fc4872 refactor: Share code between all mysql based authorizers (#8174)
* Share code between all mysql based authorizers
I plan to update the mysql password encryption and this will allow the code to be changed in a single location.
It also reduces a lot of duplication.

* Fix tests, I suspect reauthenticate will work for these...
Do not allow password updates for several authorizers
2018-02-06 21:20:34 +00:00
Tony Murray
f706d0ab41 fix: Fixed cbgp peers data on some devices (#8208)
* IOSXR snmprec data (unsorted)

* iosxr sorted

* Fix cbgp peers data on some devices

* fix formatting
2018-02-06 21:06:44 +00:00
Andrew Steen
a2acccd531 Add QFX5110-48S4Q to rewrites.php (#8201) 2018-02-06 14:06:12 -06:00
Tony Murray
e940f0b39c Add some wireless test data (#8210)
saf lumina, saf phoenix, airos, airos-af, unifi uap
2018-02-06 14:05:46 -06:00
Tony Murray
9b9fb121ab Remove dependencies from the repository, update install docs (#6920)
After vendor is un-indexed restore the contents so things keep working.
2018-02-06 08:17:44 -06:00
Tony Murray
fa1d9e9238 Fix incorrect processor unique index query (#8202) 2018-02-05 23:02:57 -06:00
Tony Murray
3ddeb1dbc5 fix: Switch detached head for daily updates (#8194)
If HEAD is detached, switch to master.
(Detached head is ok for the release version)
2018-02-05 21:20:06 +00:00
bergroth
b834d2d4b4 fix: Removed div by 100. Junos SNMP value was not 0.01 resolution (#8198) 2018-02-05 20:48:32 +00:00
Tony Murray
11147d3bbf Major Processors rewrite (#8066)
* Extract DiscoveryItem and move some things to better places.
Extract model class
Fix up model construction.  I have problem with construction...
Makeshift model working.  Switch constructor to factory.  discover() and create()
Support legacy discovery.
Remove uneeded custom pollers
Remove netonix custom detection as we try ucd on all os now.
Add a few yaml procs.  Fix a couple things.
More processor discovery conversions
Move Calix e7 to standard hrProcessorLoad, but it doesn't fully implement the HR-MIB, move things around to make it work.
Add a few yaml procs.  Fix a couple things. Correct some stupid mib stuff.
Move more, drop php 5.3
Add netscaler which uses string indexes.  Port fiberhome to yaml and use skip_values
More conversions.  BroadcomProcessorUsage Trait
Serveriron and Ironware share some mibs.  Create a common abstract os for them.
Add yaml support for mib specification in each data entry
Make legacy discover_processor() set 0 for hrDeviceIndex

Untangle Dell switch OS processors

Use use shared OS for groups if they don't have a specific group.
fix silly mib mistake

Make index optional

Move HR and UCD to Traits and out of Processor.

* forgot to update the fortiswitch index

* Make sgos and avaya-ers match the old index.

* fix comware test data

* fix merge errors

* fix dsm and remove pointless empty modules

* file not found exception is in the wrong place.

* Updated processor development docs
2018-02-05 07:39:13 -06:00
Richard Mayhew
d9e366398e Mikrotik MIB - 5-JAN-2018 (#8195)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* Updated Mikrotik MIB - 5-JAN-2018
2018-02-05 08:26:36 +00:00
FTBZ
eb72a5394e feature: Copy all email alerts to default contact (#8178)
* feature: Copy all email alerts to default contact

* change in SQL and add check as requested

* Rename 233.sql to 234.sql

* tab removing
2018-02-05 08:25:24 +00:00
Tony Murray
dc2883f59d Use composer wrapper in pre-commit (#8192) 2018-02-03 22:40:15 +00:00
Tony Murray
609676a9f8 Move InfluxDB to vendor and update dependencies. (#8184)
Update all dependencies

Updated event-dispatcher too far
2018-02-02 22:57:31 -06:00
Tony Murray
41f0689d58 fix: Fixes FusionSwitch portname in description for sensors (#8188)
* fix FusionSwitch portname

* Add tests
2018-02-02 16:00:35 +00:00
dnapper
a347e7c8d3 F5 gtm support (#8161)
* initial

* commited correct version of f5-ltm-inc.php

* cleaned up comments

* cleaned up formating for travis

* split GTM discovery from LTM discovery module

* removed blank line at EOF

* updated per comments
2018-02-01 23:35:23 -06:00
Neil Lathwood
8163112c72 docs: Changelog 1.36 (#8186) 2018-02-01 21:20:44 +00:00
iTeV
54dac46f6c docs: Changed err-msg to message for API docs (#8182) 2018-02-01 19:52:38 +00:00
SLMitch
34ee5169e8 support Brocade 6610 description (#8185) 2018-02-01 12:15:25 -06:00
Tony Murray
947e53d8cc fix: Fix arp-tables updates (#8180)
* Fix arp-tables updates
Little more complete fix this time.
Don't allow context_name to be nullable...

* update schema file
2018-02-01 09:50:32 +00:00
Kevin Krumm
8a917683ca docs: Added memory alert template (#8176)
basic memory alert template.
2018-01-31 21:55:17 +00:00
Kevin Krumm
5384d1ca15 docs: Fix for alert template port utilization (#8175)
* docs: fix for alert template port utilization

Alert Template for port utilization. Fix from jdtp ;)

* changed to hostname
2018-01-30 21:16:18 +00:00
Kevin Krumm
8000e8a01a docs: fix FAQ for device warn (#8173)
* docs: fix FAQ for device warn

It was missing the time part.  :)

* Update FAQ.md
2018-01-29 18:47:29 -06:00
Florian Beer
44d5a592f1 webui: Update badge background for selected pagemenu item (mono.css) (#8157)
* Update badge background for selected pagemenu item

This brings the background color in line with the user notification number badge background in the upper right corner.
The previous background was too bright for mono.css to properly read the white menu item text.

* CSS cache busting

Change last two digits to 42, because reasons.
2018-01-29 21:58:45 +00:00
Tony Murray
b2762d9fa7 refactor: Prevent function collisions with Laravel (#8166)
Make function call compatible
drop insensitive starts_with and ends_with for now as they aren't needed.
2018-01-29 21:58:21 +00:00
Tony Murray
1ee7d51f7a Poll sensors as enum values instead of labels. (#8162)
Most of the time they should be polled as values anyway, but sometimes the mib might get loaded...  If we set -Oe, then we always get the numeric value of the poller.
All sensors should get a numeric value anyway.

We still have to handle state sensors that return string values though.
2018-01-29 21:01:11 +00:00
Neil Lathwood
925b7f83dc fix: daily.sh Updated to resolve release version issues (#8172) 2018-01-29 15:00:33 -06:00
Kevin Krumm
a7fe7191ae docs: Fix for syslog-ng config in the docs (#8160)
* fix for syslog-ng config

I guess it didn't copy over correctly the last fix. It was reported to not be working I tested this and seems to be okay now at the time. It was showing 00:00 00 0000

* Update Syslog.md
2018-01-29 20:56:04 +00:00
Tony Murray
d63fbd0902 newdevice: Added detection for Vivotek Cameras (#8165)
Fixes: #8159
2018-01-29 20:51:08 +00:00
Leandro Maciel
06aa3b23f2 change is_file to rrdtool_check_rrd_exists. (#8169) 2018-01-29 09:52:22 -06:00
Tony Murray
20335bce5d Fix collect-snmp-data.php when the os is generic. (#8164) 2018-01-29 07:50:56 -06:00
Adam Bishop
92e1048940 fix: Make consistent with other authorisers (#8151)
Discussed in #7601
1.36
2018-01-27 06:57:40 -06:00
Leandro Maciel
e95308208f fix: Changed is_file to rrdtool_check_rrd_exists in php-fpm and squid applications graphs. (#8152)
* changed is_file to rrdtool_check_rrd_exists

* changed is_file to rrdtool_check_rrd_exists

* changed is_file to rrdtool_check_rrd_exists

* changed is_file to rrdtool_check_rrd_exists

* changed is_file to rrdtool_check_rrd_exists
2018-01-26 20:52:52 +00:00
Lutz Willek
881e0fe4c1 docs: Changed check_mk service from xinetd to systemd (#8101)
* changed check_mk service from xinetd to systemd

* added xinetd section
2018-01-26 20:51:45 +00:00
FTBZ
2755763758 device: Added suspended state to PAN OS (#8125)
* device: add suspended state to PAN OS

* remove bad rules, solution in other PR
2018-01-25 21:08:22 +00:00
Tony Murray
f1a2e8d3b4 Exclude some modules when collecting all modules (#8124) 2018-01-25 21:07:10 +00:00
Tony Murray
37c3c5c88f fix composer GPL string (#8148)
Fixes an error from packagist:
License "GPL-3.0" is a deprecated SPDX license identifier, use "GPL-3.0-only" or "GPL-3.0-or-later" instead
2018-01-25 20:59:13 +00:00