5237 Commits
Author SHA1 Message Date
Martin ZatloukalandNeil Lathwood 8c8a2e05c6 feature: Added additional sensors for ups-nut
* Add db schema for ups-nut alerting

* Add db schema for ups-nut alerting

* Add db schema for ups-nut alerting

* Add db schema for ups-nut alerting
2017-11-23 20:37:05 +00:00
Tony MurrayandNeil Lathwood 257a314fca feature: Validate session directory is writable (#7784) 2017-11-23 08:29:10 +00:00
Neil LathwoodandTony Murray b45302bf70 newdevice: Updated Checkpoint Gaia detection and added storage (#7656)
* newdevice: Updated Checkpoint Gaia detection and added storage

* update db_schema

* added murrants discovery options

* Rename 216.sql to 217.sql
2017-11-22 23:28:33 -06:00
Tony MurrayandNeil Lathwood cfe4cecc8e Precache undefined variable $array_data (#7781)
Not sure of the implications of this but I'm pretty sure it should be $oid
2017-11-22 21:50:22 +00:00
Tony MurrayandNeil Lathwood 0dee809607 fix: Discovery os changes weren't properly reflected if os changed (#7779) 2017-11-22 21:48:28 +00:00
Tony MurrayandNeil Lathwood 6371e47fea fix: Fixed precache data (#7782)
Missed one pre-cache data layout
fixes: #7777
2017-11-22 21:42:19 +00:00
Tony MurrayandNeil Lathwood 67e83cc2ea fix: Reduce chance of incorrect os detection (#7776)
I think using the strict check was causing some of our odd incorrect os detection.  The previous php code was not using a strict check, so revert to that.
2017-11-22 08:18:55 +00:00
Neil LathwoodandTony Murray ccbe3ea2e3 fix: Use correct entity columns for sensors (#7775)
* fix: Use correct entity columns for sensors

* updated schema

* Update custom rules too
2017-11-21 22:41:22 -06:00
Tony MurrayandGitHub d10047c32e fix: bgp-peers fails when ip parsing fails (#7773)
Don't try to call ->getFamily() if we didn't parse an IP
2017-11-20 18:46:15 -06:00
Neil LathwoodandTony Murray ba51dc263e refactor: Only update sensor/bgp tables when values are changed (#7707)
* refactor: Only update sensor table when sensor values are changed

* included bgp peers in as well

* updated with comments from github
2017-11-20 12:37:02 -06:00
mcq8andNeil Lathwood c9728a1f71 refactor: Refactored authorizers to classes (#7497)
* Refactored authorizers to classes

* Merge changes for #7335

* ! fix php 5.3 incompatibility

* Update ADAuthorizationAuthorizer.php

* Fix get_user -> getUser

* Rename AuthorizerFactory to Auth, fix interface missing functions

* Add phpdocs to all interface methods and normalize the names a bit.

* Re-work auth_test.php AD bind tests to work properly with the new class.
Reflection is not the nicest tool, but I think it is appropriate here.
Handle exceptions more nicely in auth_test.php

* Restore AD getUseList fix

Not sure how it got removed

* fix auth_test.php style
2017-11-18 10:33:03 +00:00
Tom HaywardandNeil Lathwood b42c7de486 refactor: Better default temperature sensor limits (#7754)
* fix: use typical Mikrotik operating range for default temperature sensor limits.

* fix: Use static offsets for default temperature limits. Previous scaling did not work well for small or negative values.
2017-11-17 14:07:50 +00:00
Søren RosiakandNeil Lathwood b6e6ab53d4 fix: Fix typo in Cisco sensor disco (#7731) 2017-11-16 21:33:55 +00:00
Søren RosiakandNeil Lathwood 37d005ebd8 fix: Do not add invalid Cisco senors seen in IOS 15.6(3)M1 (#7629)
* fix: Do not add invalid Cisco senors seen in IOS 15.6(3)M1

* Fixes

* More fixes..
2017-11-16 21:18:10 +00:00
Tony MurrayandGitHub 864ee84e80 fix: enexus do not disable the os discovery module (#7745)
and other modules it is pointless to disable
2017-11-16 00:31:14 -06:00
Neil LathwoodandGitHub 47a36b1ce6 fix: Fixed bgpPeers_cbgp discovery for junos (#7743) 2017-11-15 23:29:46 +00:00
Søren RosiakandNeil Lathwood 600b2f3324 device: Added additional APC rPDU2 Sensors (#7490)
* feature: Improve APC rPDU2 Sensor Discovery

* Move to yaml

* Skip state sensors that are not there..
2017-11-15 20:10:08 +00:00
Søren RosiakandGitHub e6ba1ee79c Merge pull request #7741 from murrant/two_gets_getHostOS
fix: revert to two gets for sysDescr and sysObjectID
2017-11-15 18:54:30 +01:00
Tony Murray d59695f08e fix: revert to two gets for sysDescr and sysObjectID
Some devices don't like asking for them in one get for some reason.
2017-11-15 11:26:25 -06:00
FTBZandNeil Lathwood 5443112dbb device: Added sensor state support for HWg STE2 and added new logos (#7729)
* device: Changing HWg STE2 to YAML and adding new logos

* small logo change

* add again all modules

* change indexes

* update index for state
2017-11-15 11:04:07 +00:00
Tony MurrayandNeil Lathwood 9a03b24457 fix: Fixed Brocade ironware processor precision (#7730) 2017-11-15 08:13:23 +00:00
tomarchandNeil Lathwood ac6341671d device: Added humidity sensors for hwg-ste devices (#7728) 2017-11-15 08:08:45 +00:00
Chris A. EvansandTony Murray 64aed60f09 newdevice: Add OS detection and temperature sensor support for Asentria SiteBoss (#7655)
* Initial commit. OS definition/polling, temp sensor discovery/polling, MIBs, logo, snmprec test

* replaced logo with 32x32, shortened sysObjectID in definitions, modifided sensor discovery

* fix syntax error caught by inspection

* requested chases to siteboss temp discovery file, removal of siteboss temp polling file

* converted temp sensor to yaml and added better support to skip values

* updated to use pre_cache with index
2017-11-14 08:35:32 -06:00
Neil LathwoodandTony Murray 8e61c6394a feature: Added support for setting php memory_limit in config.php (#7704) 2017-11-14 08:17:01 -06:00
Tony MurrayandNeil Lathwood 29fc07f018 mib_dir consistency (#7700)
* mib_dir consistency
also, all the snmpget mib_dir lines were unneeded.

* re-add mib_dir for now, can remove the redundancy later if I come up with something.

* fix tests
2017-11-13 20:45:00 +00:00
Tony MurrayandGitHub 46582898fc newdevice: initial detection for Arris Cable Modem devices (#7677)
* newdevice: initial detection for Arris Cable Modem devices

* Add Arris MIBs
2017-11-13 08:13:58 -06:00
Neil LathwoodandGitHub 0c49e9b023 device: Removed unused poller/discovery modules for Arista EOS (#7709) 2017-11-12 20:00:25 +00:00
Tony MurrayandNeil Lathwood 5ad28c9202 feature: Track rrdtool time for poller (#7706)
* feature: track rrdtool time for poller

* Removed var_dump()
2017-11-11 19:44:25 +00:00
Tony MurrayandNeil Lathwood 301af24ace fallback to snmpgetnext if db is unavailable (#7698)
running tests without DBTEST=1 for example.
2017-11-10 12:52:31 +00:00
Jonathan LassoffandNeil Lathwood fe8d011dce refactor: Allow setting the target shorthost length. (#7453)
* Create a target shorthost length. Addresses #7452.

* Update defaults.inc.php
2017-11-09 20:47:52 +00:00
Tony MurrayandNeil Lathwood 3f27357951 fix: Geist Watchdog temperature conversion (#7697)
fixes: #7419
2017-11-09 20:46:35 +00:00
Tony MurrayandNeil Lathwood 76a35f2e14 device: Fix hpe-ipdu initial thresholds (#7694)
Convert to yaml
Set load thresholds from snmp
preserve existing indexes
2017-11-09 20:24:24 +00:00
crcroandNeil Lathwood b0dca5ba7e device: Added bad_if_regexp to filter out some interfaces that are always down in edgeos (#7691) 2017-11-09 20:05:03 +00:00
ZmegolazandNeil Lathwood e31b884cc9 Feature: selected_ports per OS. Fixed layout of example MySQL table. (#7674)
* selected_ports per OS. Fixed layout of example MySQL table.

* Better table markdown.
2017-11-09 12:57:00 +00:00
Tim de BoerandNeil Lathwood c2ca68a6ec Fixed the Nvidia GPU index error (#7692) 2017-11-09 12:17:30 +00:00
ZmegolazandGitHub f453875c0f Merge pull request #7617 from Zmegolaz/fping-options
Fix: Better sanity checks of fping options.
2017-11-09 08:42:06 +01:00
Tony MurrayandNeil Lathwood acb1de5772 feature: Implement snmp_getnext() (#7678)
find correct path to snmpgetnext (will do the same for others later)
fix undefined index in get_mib_dir()
2017-11-08 15:15:49 +00:00
Tim de BoerandNeil Lathwood 24a0ee97a7 refactor: Added the Nvidia SM average as app_status (#7671)
* Added the Nvidia SM average as app_status

* Added the Nvidia SM average as app_status

* Added the Nvidia SM average as app_status

* Added the Nvidia SM average as app_status

* Cleaned up Nvida polling

* typo

* new line

* Evaluation of sm_total swapped
2017-11-08 15:09:29 +00:00
tomarchandNeil Lathwood 7f18c458db newdevice : Added detection for Stormshield devices (#7646)
* initial support for stormshield

* renamed stormshield os to ns-bsd

* remove trim
2017-11-08 14:37:38 +00:00
Tony MurrayandNeil Lathwood 1e7ed0784e fix: ServerTech discovery (#7668)
This should be using sysObjectID
snmprec updated from stats and ticket.

fixes: #7654
2017-11-07 20:25:24 +00:00
Tony MurrayandNeil Lathwood cbe6cb532d Fix: Discovery validation with ping-only devices (#7665)
* fix: validation check cli php extensions
Fix fatal errors when mysql is not loaded / can't connect

* fix: discovery validation incorrectly detects on ping only devices.
2017-11-07 20:09:49 +00:00
barryodonovanandNeil Lathwood 48b564703d newdevice: Added support for Eltek enexus (#7552)
* initial discovery

eltek-enexus discovery and polling

discovery and polling using yaml for subset of features

discovery and polling using yaml for subset of features

removed a few bits

removed some snmp_get() and renamed MIB

 removed header bar mini graph

added snmpget discovery to yaml

renamed os to enexus

undo rebase

* Update enexus.yaml
2017-11-06 17:25:24 +00:00
Tony MurrayandNeil Lathwood 3dba5cd39d newdevice: Support Avtech RoomAlert 32E/W and RoomAlert 11E (#7614)
* newdevice: support Avtech RoomAlert 32E/W
Move avtech discovery to yaml, took a bit of trickery

* More flexibility when checking pre-cached data
A little cleanup

* Add support for RoomAlert 32E/W external and wish temp sensors
Add RoomAlert 11E support (just temp sensors)
Updated ROOMALERT32E-MIB
2017-11-04 21:25:13 +00:00
Chris A. EvansandNeil Lathwood 5b42044d04 Fix IronWare mempool device type detection in polling module (#7620) 2017-11-04 21:20:14 +00:00
tomarchandNeil Lathwood 100995294e device: Update hwg-ste and add hwg-ste-plus support (#7610)
* update hwg-ste and add hwg-ste-plus support

* remove humidity graph over
2017-11-04 21:18:02 +00:00
Zmegolaz ddb60f4266 Interval can't be lower than timeout. Set options to the limit if configured value was over/under the limit. 2017-11-03 23:07:42 +01:00
Tony MurrayandGitHub 54b476c769 fix: devices detected as ibmtl or generic (#7618)
* fix: devices detected as ibmtl
Guess at the sysObjectID, please report if you have devices that should be ibmtl and are no longer detected.
Add output of os in discovery.

* Always load all os for discovery.  Should be cached most of the time.
2017-11-03 16:10:24 -05:00
Zmegolaz 5126fd06fa Better sanity checks of fping options. 2017-11-03 11:00:27 +01:00
FTBZandNeil Lathwood aef1a5f28a newdevice: Added state sensors for Palo Alto Networks firewall (#7482)
* Features: Add state sensors for Palo Alto Networks firewall

* Removed the MIBs files

* fix: Removing echo

* Migrate to YAML

* Migrate to YAML

* Change passive to unknow
2017-11-02 21:41:51 +00:00
Tony MurrayandNeil Lathwood 4dd56bc72e refactor: Wifi cleanup (#7607)
* refactor: remove duplicated data collection in old wifi module
Still a bit more work before we can fully remove it

* remove unused graphs
update overview graphs for some wireless os
2017-11-02 21:07:58 +00:00