14674 Commits

Author SHA1 Message Date
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
Tony Murray
1d0294f82d fix: Fixed normal user access to performance tab (#8150) 2018-01-25 20:55:37 +00:00
dnapper
772ecac36d Updated LTM discovery to fix route domain ID breaking the hex to stri… (#8146)
* Updated LTM discovery to fix route domain ID breaking the hex to string IPv4 conversion

* fixed whitespaces

* fixed whitespaces
2018-01-25 13:28:40 -06:00
Tony Murray
a98ab6363b fix: Fixed arp-tables duplicate data (#8147)
Truncating the table here, because we could have a massive amount of duplicate rows which could cause php oom.
2018-01-24 20:51:00 +00:00
tukezor
0a6f113f5a device: Improved FortiManager support (#8102)
Modified with suggested changes

Test data for FortiOS
2018-01-24 09:37:27 +00:00
Chip Gwyn
f2088a505a fix: Palo Alto HA Alert Rule references non-existent column in sensors table (#8138)
column in the sensors table.  However there is no "type" column.  This should be "sensor_type".  This is indicated
by the error in the logs:

`MySQL Error: Unknown column 'sensors.type' in 'where clause' (SELECT * FROM devices,sensors WHERE (( sensors.device_id = devices.device_id ) && devices.device_id = '102') && (devices.os = "panos" & sensors.type = "panSysHAState"  &&  sensors.sensor_current = "1"  &&  sensors.sensor_prev = "2"  ))
`

Updated the rule to reference the correct column.
2018-01-24 09:18:28 +00:00
Kevin Krumm
ddc40fcea2 docs: fix syslog-ng config (#8136)
reported by jaager on discord.
2018-01-23 07:43:18 -06:00
Neil Lathwood
87ce23bccd fix: Specify table name for list_devices sql query (#8132) 2018-01-22 21:10:39 +00:00
Tony Murray
6878df8c12 Prep for composer changes (#8075)
* Prep for composer changes

* Update composer.json, composer.lock and a small update to phpmailer and Yaml

* Prevent accidental `composer update` runs

* Add  --no-interaction to daily.sh
2018-01-22 08:16:37 -06:00
mattie47
fbca432296 device: Fix awplus $hardware for certain products (#8123)
awplus.inc.php uses snmpgetnext for $hardware.

This works well for 99% of products however chassis
product SBx8100 does not show the chassis as the first product.

This adds an exception to follow for this product
2018-01-22 07:45:48 +00:00
Søren Rosiak
14b2419248 refactor: Move more state sensors to yaml (#8016)
* refactor: Move more state sensors to yaml

* Fix errors..

* Update comware.yaml

* Update ddnos.yaml

* Update dell-ups.yaml

* Update mimosa.yaml

* Update waas.yaml

* added some test data for comware and dell-ups

* added mimosa test data

* re-saved comware test data

* set arp-table sort order.
remove unneeded modules from mimosa

* remove arp-table it doesn't work yet

* remove deleted sensors and mempools (which have no snmp data)
2018-01-21 15:43:19 -06:00
Neil Lathwood
10e5873f55 small fix for test unit docs (#8122) 2018-01-21 20:23:55 +00:00
blizko
7b918cb61d fix: Pushover message fix to enable templates (#8118) 2018-01-21 20:16:55 +00:00
Rémy Jacquin
e12e6720f8 api: Added add_service_for_host endpoint to API (#8113)
* Add add_service_for_host endpoint to API

Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Change permissions to allow users to modify device

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
2018-01-21 19:56:57 +00:00
Tony Murray
8a9fc7783d only tail the snmpsimd.log (#8121)
so we see failures, but it isn't massive.
2018-01-21 13:36:21 -06:00
Kevin Krumm
cf2411934b docs: add value sensors and temperature template (#8120) 2018-01-21 11:44:28 -06:00
Tony Murray
6a29762690 arp-table test module order (#8119) 2018-01-21 09:50:05 -06:00
Søren Rosiak
dc0c4ac276 feature: Add Checkpoint Gaia Sensor (#8088)
* feature: Add Checkpoint Gaia Sensor
fixes #7956

* added test data for gaia

* re-saved the gaia test data

* saved test data for just os and sensors

* Fix state sensor index order
2018-01-21 08:55:07 -06:00
Tony Murray
f7941797b6 Fix testing state sensor index dumping order. (#8117)
Add netonix state sensor test data
2018-01-21 07:43:10 -06:00
Andrew Holmes
89c1c2e810 Added five characters to unifi poller OS def to fix bug introduced in #8005 (#8114) 2018-01-21 07:41:13 -06:00
Nick Peelman
9ee96bda76 Add Synology Hardware/Version/Serial detection (#8087)
* Add Synology Hardware/Version/Serial detection

Fixes #7957

* Add DSM test data for hardware/version/serial

* updated to use snmp_get_multi_oid and save more test data

* added json data

* re-saved json data for dsm

* Update dsm.json

* Update dsm_ds916.json

* Update dsm_ds214.json
2018-01-21 01:13:33 -06:00
Hans Erasmus
99f8728688 Added Dlink MIBS, memory polling and temp polling for some devices (#8076)
* Added Dlink MIBS, memory polling and temperature polling for some devices

* Added Dlink MIBS, memory polling and temp polling for some devices

* Update dlink.yaml

Changed values as per laf's request.

* Update dlink.inc.php

Updated date

* Update dlink.inc.php

Deleted line as per laf's request.
2018-01-21 00:29:22 -06:00
Neil Lathwood
61c9035074 fix: Handle escaping output within bootgrid form (#8108) 2018-01-20 22:26:31 -06:00
Misha Komarovskiy
36fe6c83dc fix: Bgp-peers junos empty afi-safi names (#8083)
* fix: Bgp-peers junos empty afi-safi names

* fix discovery of all names
* fix polling rrd names assignment

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

* Update tests data for junos bgp-peers safi update

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-20 21:21:39 -06:00
Tony Murray
e53b6f2ef2 Fix tests. (#8116) 2018-01-20 21:06:21 -06:00
mattie47
71b44407b9 Improve legacy Allied Telesis hardware support (#8071)
* devices: Improved Legacy Allied Telesis hardware support #8071

This  patch covers:

Improved SNMPrec test coverage for Allied telesis devices

allied.yaml
	- Increased device exception OID list.
		-  This list of devices are running RADLAN OS, and should not be triggered by allied.yaml
	- Minor bug fixes

allied.inc.php
	- Added updated support for Alliedware devices
		-  Version
		-  Features
		-  Hardware
		-  Serial
	- Added support for Allied Telesis Websmart switches
		-  Version
		-  Hardware
	- Added support for Alliedware Plus version 2 OS devices
		-  Hardware
		-  Version
		-  Serial
	- Simplified polling to use snmp_get_multi_oid
	- Minor bug fixes

radlan.yaml
	- Updated device support for 8000S and 8000GS.
		-  Specified device object IDs
			-  Added an exclusion also for OIDs in allied.yaml
		-  Changed icon and group to alliedtelesis

radlan.inc.php
	- Updated support for devices identifying as radlan OS.

awplus.yaml
	- Added comment to remove the sysObjectID_except list.
	- Minor bug fixes

* added json test data to be used for unit test

* re-saved allied websmart test data
2018-01-20 20:30:53 -06:00
Tony Murray
494c29aefa Split save-test-data.php into two scripts, allow mass update (#8115)
* Add mass update to save-test-data.
Fail when snmpsim doesn't start and try to give a hint.

* Split save-test-data.php into two scripts

One for updating snmprec files.
One for updating db dump files.
2018-01-20 20:22:47 -06:00
Neil Lathwood
47cb01424f fix: Stop including disabled ports in traffic overview (#8107) 2018-01-19 08:04:01 -06:00
mattie47
2b1d63c0ef Update Test-Units.md (#8093)
Fixed name of save-test-data.php script.
2018-01-18 21:12:43 +00:00
Tony Murray
88b4e31912 refactor: Refactored bgp-peers (#7972)
* bgp-peers update
Use IP parsing library more effectively.
Fix update issue
Include comware bgp-peers test data
deeper refactoring
Allow JunOS fallback to BGP4-MIB, some models only use that.
Add junos bgp4 data
Actually update all bpg data in the poller

* fix arista data. refactor some to prevent missing data from mucking things up

* refactor to use $oid_map for BGP4-MIB too

* A few comments to break up teh file a bit

* Junos bgp data an a quick revert for now.

* small cleanup

* fix ios bgp polling, add test data

* check the correct variable
2018-01-18 20:54:38 +00:00
FTBZ
c80f9726c8 feature: Added new EER and Water Flow Rate sensors (#8104)
* Add new EER sensor

* remove bad RRD option

* add waterflow sensor

* add test data result

* added test json data
2018-01-18 20:50:19 +00:00