Commit Graph

14804 Commits

Author SHA1 Message Date
Tony Murray
72752fa2d0 Use one sql query to fetch device alert rules (#8391)
* Use one sql query to fetch device alert rules
Rename $device to $device_id to avoid confusion.  I didn't see any variable collisions.

* don't return disabled rules

* remove semi-colin
2018-03-15 16:03:45 +00:00
Tony Murray
aec567f890 Delete invalid alert maps (#8390) 2018-03-15 14:44:47 +00:00
Neil Lathwood
0aed9788e3 Fixed alerts group mapping (#8389) 2018-03-15 09:23:54 -05:00
Neil Lathwood
0ba5fa66e0 Reference the correct table for devices (#8383) 2018-03-15 11:02:43 +00:00
mattie47
0491e2edd0 device: Improve Allied Telesis Chassis product support (#8139)
* device: Improve Allied Telesis Chassis product support

Fix - Wrong Serial number was displayed
Enhancement - Show the type of Controller card in chassis

Controller card can be either CFC400, or CFC960.

Tests:
- Checked Chassis x8106, and x8112
- Checked with CFC400 and CFC960
-- Checked behaviour with/without CFC in bay 1.5

* device: Update awplus to use snmp_get_multi_oid

* update awplus device support

* device: Fix awplus snmptranslate logic error

* device: awplus chassis support improvements

* device: update awplus test data

* device: fix awplus serial number info

* device: fix awplus test data
2018-03-15 09:52:29 +00:00
Dag Bakke
2c83056663 docs: Update SNMP-Configuration-Examples to include ESX/ESXi (#8381)
* Update SNMP-Configuration-Examples.md

Added info for VMware ESX, as well as SNMPv3 for Junos

* Update SNMP-Configuration-Examples.md
2018-03-15 08:59:31 +00:00
Tony Murray
69b066ab3d Fix mib renamer script when in a different directory (#8379)
* Fix rename mibs script when in a different directory
Add count

* fix spaces
2018-03-14 23:57:18 -05:00
Tony Murray
8890010766 Disable in/not in they don't display right (#8378) 2018-03-14 20:03:58 -05:00
Neil Lathwood
b43f952e66 Updated APC PowerNet-MIB (#8377) 2018-03-14 22:29:24 +00:00
Tony Murray
2bcc76625c Module tests update: per module output, only store modules data that are run (#8355)
* Test data: don't save data for modules that were not run

* Sometimes mibs are prefixed with +

* Save output for each module and only output the errored module.
Also makes it easier to identify modules that were ran.

* Clean up json files.
Message when no module data exists.

* verbose output when phpunit --debug is used
order by for ports
avoid graphite output in tests
only load module_tables.yaml once

* use explode and strpos instead of regex since it is failing...

* Fix some warnings

* Fix whitespace
2018-03-14 22:28:01 +00:00
Neil Lathwood
66a3f82269 Fix NOT REGEXP rules (#8376)
* Fix NOT REGEXP rules

* not_regex -> not regex

* Fixed saving rules as well
2018-03-14 21:53:47 +00:00
Neil Lathwood
03076c4025 feature: Added new alert rule builder UI and rule mapping UI (#8293)
* feature: Added new alert rule builder UI

* Updated to export sql queries

* More updates

* more changes

* removed debug

* fix scrut

* Updated to include import options + various other fixes

* fix rule

* Populate name from collection rules.

* Fix default rule import
Allow new and old style rules in the collection.
Don't add new yet as I'm not sure GenSQL() is working.

* Fix GenSQL call

* Extract filter building to class so it is nicely contained in one place

* moved schema

* some fixes and tweaks

* travis fixes

* Some more features / updates

* Fix up my mistakes when adding default rules

* Use a modal for new alert (Incomplete)
Larger dialog!!
Remove page loading stuff.

Working:
Loading rules, resetting dialog, importing from collection.

Not working yet:
select width
device limited rule access? don't know what this is...

Lots of unused stuff to delete...

* reload "table" after save

* fixed editing rule

* Auto select2 width

* Reload window on save

* Restore per-device alert. Remove debug.

* Small cleanups. Rule Name first.

* Restore button to button type. Rename schema.

* Fixes: wrong command to reload window, remove extra attributes, rule is never passed

* Fixed old rule editing

* some small updates for old imports

* travis update to use trusty

* maybe travis fix

* Ability to set alert rule mappings on the rule edit screen

* pip installs one line, no quiet for deploy

* update schema def

* Fix style and some copyright headers

* fix docs missing file

* Allow new versions of snmpsim and libraries

* Parser WIP

* Fix default rules insert

* reorganize

* Legacy import first draft done

* Implement saving
Skip translation to sql for now

* Working on glues

* small rule collection fix

* Working on glues

* Working on glues

* Docs updates + small UI changes

* Parser WIP

* reorganize

* Legacy import first draft done

* Implement saving
Skip translation to sql for now

* Working on glues

* Working on glues

* Working on glues

* Add table mapping, should move to it's own class

* WIP

* Glue working!!

* Extract Schema class

* Some final touches.
revert alerts_rules.json for now.

* Finish up initial implementation
Needs more tests

* Fix a few places

* small doc updates

* Fix finding tables in grouped rules.

* remove unused code

* code format fixes

* Some quick tests for Schema
Simplified output for findRelationshipPath. Always includes start and target in the result.
This simplifies a lot of code in QueryBuilderParser.php
This also always loads the target table data now (which we want)

* Make bill_id the PRIMARY index for the bills table

* Load macros from a json file in misc instead of the database.

* Fix whitespace and wrong key for collection.

* Handle IN properly when generating SQL

* Fix glue (devices.device_id = ports.port_id) is incorrect :D
Show ALL tables we can resolve relationships for in the query builder filter.

* Remove all macros from the database
Remove insert statements, leave updates to update user's existing rules.
2018-03-14 20:25:19 +00:00
Søren Rosiak
ba4c86f4c0 webui: Added Oxidized reload node list button (#8375) 2018-03-14 20:17:08 +00:00
priiduonu
4da272f451 Sane default temperature limits for Axis cameras (#8371)
Default behaviour is to set low limit to (current temperature - 10 deg) and high limit to (current temperature + 20 deg) upon discovery. Changing that to abs values +5 and +35 deg respectively to be in realistic boundaries.
2018-03-13 20:06:40 -05:00
Tony Murray
6b68d5fce9 alerts: Added alert_id to alerts for templates (#8368)
* Add alert_id to alerts for templates
Extract alert loading to a function loadAlerts().
Alternative to #8351

* Actually add alert_id to $obj

* travis fixes
2018-03-13 22:19:57 +00:00
Dag Bakke
4c0dc5c37b Update Applications.md (#8369)
Added a hint about removing /tmp/apache-snmp if the apache-stats.py script has been run manually. If run as root, it leaves behind a file which the user running snmpd cannot overwrite. Causing snmpd to not produce apache stats.
2018-03-13 20:12:02 +00:00
Tony Murray
bacab61af2 refactor: Use composer.phar first and self-update it. (#8339)
* Use composer.phar first and self-update it.

* Ansi output for interactive shells.
If HOME isn't writable, set COMPOSER_HOME.

Simulated cron with env -i

* More verbose failures when attempting to download composer.phar.

* Change the regex again
Matches all versions here https://getcomposer.org/download/
2018-03-13 20:08:40 +00:00
priiduonu
2e66ed354f device: Added detection of Axis Network Speaker (#8336)
* Add detection of Axis Network Speaker

* tests: add test data for Axis C3003 Network Speaker detection
2018-03-13 20:04:13 +00:00
endofline
b70ff543bf webui: S.M.A.R.T visualization improvements (#8310)
* Increase description length in graphs
* Add SMART attr177, previously recorded, but not displayed
* Change the multi-graph titles to better reflect their content
* Change SMART attr numbers to a more human-friendly description
* Minor text corrections
2018-03-13 13:26:23 +00:00
theherodied
4e94e9905c Fixed backticks (#8366)
Fixed backticks for new html examples.
2018-03-13 13:24:04 +00:00
jackson-tim
f55d98ab03 device: Added Lenovo CNOS support (#8332)
* Lenovo CNOS Discovery+Logo Update

* Lenovo MIBs

* Update lenovo-cnos.yaml

Left example CPU Usage there.

* Update lenovo-cnos.yaml

* Update lenovo-cnos.yaml

* Update and rename lenovo-cnos.yaml to cnos.yaml

* Rename lenovo-cnos.yaml to cnos.yaml

* Rename Lenovo-Env-MIB.mib to LENOVO-ENV-MIB

* Rename Lenovo-Products-MIB.mib to  LENOVO-PRODUCTS-MIB

* Rename Lenovo-SMI-MIB.mib to LENOVO-SMI-MIB

* Update lenovo.svg

* Create cnos.json

* Create cnos.snmprec

* Update cnos.json

* Update cnos.yaml
2018-03-13 11:59:35 +00:00
theherodied
7946f15b44 Added two html alert template examples (#8360)
Added two html alert template examples. Asked pii100 for permission to include his and he said ok.
Included my html service alert check that includes service_message.
Added a note for html and graphs. I believe most people will find it useful on this page.
2018-03-13 11:21:27 +00:00
BlackDex
25b96c1ab3 Fixed markdown/layout of the examples (#8365) 2018-03-13 11:17:30 +00:00
sorano
533332928f Update Transports.md (#8330)
Added note to configure pushover from webgui and added notification sound example.
2018-03-12 23:44:12 -05:00
Tony Murray
e3d44c54d2 fix: Fixed etherlike graphs (#8358)
Empty rrd defintion...
2018-03-12 19:27:51 +00:00
theherodied
bbd16dd2d2 feature: Added check_graylog.inc.php for services (#8334)
* Create check_graylog.inc.php

Removes the -H being passed and provides directions.

* Update check_graylog.inc.php
2018-03-11 15:00:07 +00:00
Tony Murray
98e3014d31 Remove mcrypt, it doesn't exist in php 7.2 (#8352) 2018-03-09 22:14:37 -06:00
Paul Heinrichs
a0c2783d27 alerting: Added Philips Hue as transport (#8320)
* Add Phillips Hue Bridge as Alerting transport

* Add Comment

* Update Transport docs

* Update Phillips to Philips Add sql schema
2018-03-09 19:30:27 +01:00
Neil Lathwood
9897b5fbd4 webui: Removed unused JS causing issues with typeahead (#8307)
* webui: Removed unused JS causing issues with typeahead

* updated reference url for typeahead
2018-03-09 18:11:24 +01:00
pep-un
0e09e09f04 bug: Improve LDAP filter in the getUserlist() function (#8253)
Improve LDAP filtering to improve the speed of some pages (Dashboard and
Edit User mainly). If we don't apply this filter all the users are getted
from LDAP and used in to the loop, with 2k users (for us) the page take
more than 15 seconds to be loaded.

I have check than people still have differante access with this fix.
2018-03-09 17:58:28 +01:00
TheGreatDoc
72dffd8d95 docs: Update Installation-CentOS-7-Apache.md (#8349)
php72w-mcrypt is not used anymore
2018-03-09 17:52:26 +01:00
Isaac McDonald
769077e128 docs: Use single quotes in example SNMP community per issue 8342 (#8348) 2018-03-09 17:26:29 +01:00
Neil Lathwood
5a72714c4e fix: Fixed sysname -> sysName for device dependancy display (#8343) 2018-03-09 10:23:00 +00:00
James Andrewartha
6c3473a7f8 ewc: more WirelessSensors and processor/mempools support (#8294)
* Add Errors, NoiseFloor, RSSI, SNR and Utilization Wireless Sensors for ewc

* Enable processor/mempool support for ewc using existing enterasys implementation

* Add test data
2018-03-05 09:46:59 -06:00
Jason Ellison
84b0b32bd8 Change the column type from varchar(255) to TEXT for nagios-plugins perfdata (#8322) 2018-03-03 22:47:49 +00:00
Tony Murray
7b6e4f95c0 Library update (#8311)
* Library update
amenadiel/jpgraph 3.6.12 > 3.6.14
ezyang/htmlpurifier 4.9.3 > 4.10.0
tecnickcom/tcpdf 6.2.13 > 6.2.17

Also, make composer.lock match our composer.json to avoid a warning.

* Remove php snmp extension, we don't actually use it.
2018-03-02 19:32:09 +00:00
Arzhel Younsi
7eda8d9989 feature: Added a irc_alert_short option to only send the alert title (#8312)
* Add a irc_alert_short option to only send the alert title

* Add doc for 'irc_alert_short'
2018-03-02 17:52:47 +00:00
BlackDex
5af51fa46f webui: Added auto width and height dimensions parameters to generic image dashboard widget (#8314)
Added the ability to substituted special parameters for width and height of the Generic-image widget to be added to an Image URL.
2018-03-01 22:12:46 +00:00
Tony Murray
9459eeb55f refacotr: Use HTTPS to fetch Composer (#8309)
* use https for composer

* Fixe alternate --version output for composer
2018-02-28 20:04:44 +00:00
boudreau
68d42b065e device: Updated OIDs for Cisco FTD model 9300
* adding new device Firepower9300

* Update ftd.snmprec

* Add Connections graphs to FTD Firewall

* bad cut and paste, good catch
2018-02-28 13:15:31 +00:00
Tony Murray
31bf122d4f Error for insufficient php version during install (#8292)
Remove platform from composer.json so users get an error if their php version isn't new enough.
Add extensions to composer.json too
2018-02-28 06:47:42 +00:00
Drew Hynes
764abde504 alerting: Added Gitlab transport for alerting (#8246)
* gitlab alert transport added

* fixed SQL file and cleaned up a bit

* updated license information

* added relevant information Transports documentation

* Fixed spacing issues

* removed unnecessary text from variable

* fixed sql schema file syntax

* changed sql schema order

* fixed creation of issues for resolution events

* addressed file name conflict

* fixed spacing, again

* removed unused variable

* Update Transports.md
2018-02-27 21:21:37 +00:00
Neil Lathwood
9dac4cfa6e device: Added temp, power and state sensors to procurve os (#8281)
* device: Added temp, power and state sensors to procurve os

* changed sensor value

* updated sensors value

* updated test data
2018-02-27 20:48:16 +00:00
axemann
897081b2d3 device: Added support for APC AP9320 and fix humidity sensors (#8284)
* AOS-EMU2 add support for APC AP9320, fix humidity sensors

* Added snmprec and json

* AOS-EMU2 add support for APC AP9320, fix humidity sensors

Added snmprec and json

* Fix aos-emu2_ap9320.json
2018-02-27 20:38:50 +00:00
Chip Gwyn
bc405194db webui: Modified styles.css to make the device group menu a bit larger (#8200)
* modified styles.css to make the device group menu a bit larger.  Was 200px, set to 800px.  Makes a huge difference in reaability.

* Changed .scrollable-menu to have a max-height of 600px

Changed .scrollable-menu to have a max-height of 600px after discussion, 600 seems a good compromise for size until something better can be found.

* force css update
2018-02-27 19:52:43 +00:00
Nils Büchner
59f99f1962 api: Added routes to delete,add/edit traffic bills (#8272)
* add API calls to delete,add/edit traffic bills

* scrutinizer fixes

* app needed

* explicitly use === null

* requested changes
2018-02-27 19:51:29 +00:00
Michael Renner
b5273969a0 feature: Fetch ifAlias data for devices on the bad_ifXEntry list (#8275)
* fetch ifAlias data for devices on the bad_ifXEntry list

* add test data for SG350-10
2018-02-27 16:57:24 +00:00
Richard Mayhew
99b6dff73e webui: Removed unwanted panel graph header (#8304)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* Removed Wrong Graph Header

* Removed the route end()
2018-02-27 16:47:36 +00:00
VVelox
89d24f25a5 feature: Added application metric support to ZFS (#8269)
* add metric support and make it work

* minor gramar correction

* remove accidetnally duplicated code
2018-02-27 16:35:07 +00:00
Tony Murray
3c3fbd3731 feature: Show composer status in web validate. (#8181)
* Show composer status in web validate.
Don't duplicate in validate.php

* Create variable to check if a group has been completed.
No longer skips database checks.
Extract a base class.
Fix locate_binary and find_executable issues (mostly exposed by lack of db)

* Update Validator.php
2018-02-27 15:57:20 +00:00