14660 Commits

Author SHA1 Message Date
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
mattie47
1da86aa229 device: Added Allied Telesis CPU info (#8111)
Added support to poll both standalone devices and VCStacked
device's CPU info
2018-01-18 20:15:09 +00:00
Misha Komarovskiy
06c46765f2 api: Added API calls for routing and resources management (#8017)
* api: Added API call for VRF listing

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

* api: Added API call to retrive VRF by ID

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

* api: Change list_vrf permissions

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

* api: Added new api calls for routing and resources mgmt

* This commit includes list_cbgp, list_vlans,
list_ip_addresses, list_ip_networks and
get_network_ip_addresses calls

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

* fix: Correct indentation issue in get_ip_addresses

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

* api: Fix per device permissions and messages

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

* Fix identation issues

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

* api: Remove excessive result counters

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

* api: Add list_locations api call

* Get devices by location not very comfortable
without list all locations api call

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

* Spelling fix

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-18 15:43:15 +00:00
Neil Lathwood
bdf02f1bf3 fix: Fixed re-use of variables within rrdtool def build (#8097) 2018-01-17 20:39:59 +00:00
Neil Lathwood
1f03110b20 refactor: Moved routeros sensors to yaml + fixed divisors (#7946)
* move routeros fanspeed to yaml

* moved more routeros sensors to yaml

* reverted signal migration to yaml

* added routeros test data

* re-saved test data for routeros
2018-01-17 20:25:09 +00:00
Neil Lathwood
feec7da16c fix: Fixed bad queries in top device widget to stop listing all devices (#8105) 2018-01-17 16:38:48 +00:00
crcro
e81413ac61 webui: Added back devices sort by status (#8103)
* added back sort by status

* removed useless html style tags
2018-01-17 16:22:59 +00:00
Misha Komarovskiy
df731c165c refactor: Rename cisco-vrf to vrf and enable discovery for junos os (#8033)
* device: Enable cisco-vrf discovery for junos os

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

* refactor: Rename cisco-vrf module into vrf

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-17 12:09:19 +00:00
Aldemir Akpinar
76587065cc webui: New tab in "manage host dependencies" to clear all children of a parent (#8085)
* Add dependency info for api

* webui: new tab to clear children of a parent device

* Fix travis CI errors
2018-01-17 11:06:32 +00:00
Neil Lathwood
86ff67c02e removed some unused files in mib dir (#8096) 2018-01-17 10:27:22 +00:00
Zmegolaz
3740467858 Added settings validations. (#8037) 2018-01-16 22:21:21 -06:00
Paul Heinrichs
d4bd566d36 newdevice: Added Support for cambium PTP 300, 500, 600 and 800 (#7998)
* Add Support for cambium-ptp500

Added mibs for ptp500, ptp300

* ptp500 - Switch modulation to a state

* Update label on 500 to 500/300

300 and 500 use the same mibs

* Request changes

Added overhead graph's to all current ptp devices

* wrap text in quotes

* Fix discovery bug

* Ptp600 support

* PTP800 Support

* Fix ptp600 issues

* Remove meh copy and pasta

* Remove modulation from OS file

* Update value modifiers / typos

* +x rename-mibs.php

* Modify cambium mibs
2018-01-16 22:52:11 +00:00
barciella
afc6137146 Fixed documentation. This way autodiscovery with snmpv3 works (#8091) 2018-01-16 12:21:44 -06:00
Aldemir Akpinar
788c0bd6fb api: Added dependency info for devices/device api calls (#8058)
* Add dependency info for api

* Fix travis CI error

* Changed to dbFetchColumn

* Add hostnames for parent devices as well as IDs

* Merged the queries as laf suggested
2018-01-14 20:43:55 +00:00
Neil Lathwood
7a76fa7216 fix: Fixed api response for failed device renames (#8081) 2018-01-12 22:26:57 -06:00