13713 Commits

Author SHA1 Message Date
Caio Silva
423c735819 Update test-template.php (#6723)
fix: Added option -h in the example.
2017-05-24 21:26:16 +01:00
Søren Rosiak
88a490a969 newdevice: Add support for Halon Gateway (#6716)
newdevice: Add support for Halon Gateway
2017-05-24 00:00:43 -05:00
Nick Peelman
88e71a58c1 webui: make login form more mobile-friendly (#6707)
* make login form more mobile-friendly

Disable autocomplete, autocorrect, autocapitalize, and spellcheck on username and password input forms.

* Update logon.inc.php
2017-05-23 23:58:38 -05:00
Neil Lathwood
d48be5f507 newdevice: Added detection for Cisco EPC devices (#6690)
* newdevice: Added detection for Cisco EPC devices

* updated test file

* added dbm support

* added snr support
2017-05-23 10:28:44 -05:00
ospfbgp
407c0a4470 newdevice: Added state support FAN, Power Supply Avaya VSP (#6693)
* Add state support FAN, Power Supply Avaya VSP

Adding FAN and Power Supply support for Avaya VOSS(VSP operating systems platform)

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

$index has been changed to rcChasFanOperStatus.$index and rcChasPowerSupplyOperStatus.$index in discover_sensor and create_sensor_to_state_index

* Update avaya-vsp.inc.php

its always the details.  nice to have another pair of eyes. :-)
2017-05-23 08:42:46 +01:00
Neil Lathwood
14a143a6a7 fix: Fixed http-auth not honouring http_auth_guest (#6699)
* fix: Fixed http-auth not honouring http_auth_guest

* Always fall back to http_auth_guest.
Make sure $username is set, otherwise, we won't try to authenticate.

* reverted elseif to default to http-auth-guest

* Update authenticate.inc.php

simplify logic
2017-05-23 08:40:57 +01:00
ospfbgp
1570ea95c0 append Avaya VSP HW revision to serial number (#6694)
* append Avaya VSP HW revision to serial number

The old way added the HW revision to the sysDescr.  When managing a bunch of switches with different versions this made it look like you had a lot of different kinds of switches.  These are all the switches.  Just add it to the serial number so you can have the hw version for reference if needed.  Just makes more sense not to appended to sysDescr.

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

forgot to add the $hardware variable so Platform would populate

* Update avaya-vsp.inc.php
2017-05-23 08:40:17 +01:00
cron410
395f6133c2 corrected test-template.php path (#6708)
previously had ./scripts/est-template.php
2017-05-23 08:34:10 +01:00
Neil Lathwood
4ea27596d8 doc: Updated nginx http2 example (#6710) 2017-05-22 14:38:20 -05:00
Tony Murray
2a75083f47 newdevice: Added basic HPE OpenVMS detection (#6706)
I could not figure out the proper logo, so HPE it is.
2017-05-22 18:10:39 +01:00
Nick Peelman
77c5b1e304 newdevice: Added TiMOS temperature and power supply state sensors. (#6657)
* Add TiMOS temperature and power supply state sensors.

* Refactor the sensor discovery, making it a little cleaner

* Discover TiMOS device serial number
Pull proper hardware OID instead of parsing sysDescr

* Make the style gods happy

* Refactoring for some of the requested changes

* Break out the arrays into variables as scrutinizer requests...

* Fix missing semicolon
2017-05-22 17:59:38 +01:00
Tony Murray
c728e4b0cf fix: take another crack at fixing uptime (#6705)
* fix: take another crack at fixing uptime
It looks like we weren't using sysUpTime before???
Simplify the code and just max all the time values.

* inline bad checks
2017-05-22 17:55:52 +01:00
Neil Lathwood
db3a0c2623 fix: When force adding devices with v3, actually store the details (#6691) 2017-05-20 06:59:58 -05:00
superflip99
3faee6c7c5 newdevice: Added additional sensor state sysCmSyncStatusId for F5
* New sensor state sysCmSyncStatusId for F5 OS added

* removed comments
2017-05-19 21:54:58 +01:00
Neil Lathwood
9d3b91bf9d newdevice: Updated sonicwall discovery (#6688)
* newdevice: Updated sonicwall discovery

* added another test file
2017-05-19 14:15:08 -05:00
kkrumm1
0d3991d987 docs: Update template example in alerting docs (#6685)
removed the /r/n from the 
"Default Template" since the /r/n is no longer needed.
2017-05-19 19:31:09 +01:00
Tony Murray
5bb2610488 newdevice: Update comware version and serial number polling (#6686) 2017-05-19 19:30:11 +01:00
Neil Lathwood
c6882129e8 docs: Create code of conduct page (#6640)
* Create CODE_OF_CONDUCT.md

* Update mkdocs.yml

* Update CODE_OF_CONDUCT.md
2017-05-19 07:15:06 -05:00
Slashdoom
c52b38b9ee fix: Fixed variable setting for new Bind poller in agent mode (#6671)
* Update unbound.inc.php

* Update unbound.inc.php

* Create unbound_cache.inc.php

* Update AUTHORS.md

* Update apps.inc.php

* Update bind.inc.php

* Update bind.inc.php

* Update bind.inc.php

* Update bind.inc.php
2017-05-19 11:18:36 +01:00
Chris A. Evans
e28eb690fe Fixed various issues with MRV OptiDriver sensor detection. (#6682)
modified:   discovery/sensors/dbm/mrv-od.inc.php
	modified:   discovery/sensors/pre-cache/mrv-od.inc.php
	modified:   discovery/sensors/state/mrv-od.inc.php
2017-05-19 09:03:26 +01:00
Ivan
a86f2a2597 Update FAQ.md (#6683)
Fixed markdown.
2017-05-19 08:59:53 +01:00
Tony Murray
4d0c75343e fix: Two-Factor Authentication (#6672)
* fix: Two-Factor Auth
Moved library to a class to take advantage of namespacing and auto loading.
Update the two factor code to use the AuthenticationException for error messages.
Fix remember me to work with 2fa.

* missing change
2017-05-18 22:08:10 +01:00
Tony Murray
f723f0ba12 fix: auth test script (#6673)
Need to pull in web includes
fix variable collisions...........
2017-05-18 22:06:42 +01:00
Chris A. Evans
8565417dfe new device: Added basic support for MRV OptiDriver Optical Transport Platform (#6656)
* Committer: Chris A. Evans <thecityofguanyu@outlook.com>

Add basic support for MRV OptiDriver Optical Transport Platform
 * OS Detection
 * Sensors
  * Chassis temperature
  * State
   * Tx/Rx Optical Interface Power
   * Power Supply
   * Fan

*  	renamed:    includes/definitions/mrv-optidriver.yaml -> includes/definitions/mrv-od.yaml
 	new file:   includes/discovery/sensors/dbm/mrv-od.inc.php
 	deleted:    includes/discovery/sensors/dbm/mrv-optidriver.inc.php
 	renamed:    includes/discovery/sensors/pre-cache/mrv-optidriver.inc.php -> includes/discovery/sensors/pre-cache/mrv-od.inc.php
 	renamed:    includes/discovery/sensors/state/mrv-optidriver.inc.php -> includes/discovery/sensors/state/mrv-od.inc.php
 	new file:   includes/discovery/sensors/temperature/mrv-od.inc.php
 	deleted:    includes/discovery/sensors/temperature/mrv-optidriver.inc.php
 	renamed:    includes/polling/os/mrv-optidriver.inc.php -> includes/polling/os/mrv-od.inc.php

*  	modified:   includes/discovery/sensors/dbm/mrv-od.inc.php

  Added missing ')' in the if conditionals.

*   Requested changes
 	modified:   includes/definitions/mrv-od.yaml
 	modified:   includes/discovery/sensors/state/mrv-od.inc.php
 	modified:   includes/discovery/sensors/temperature/mrv-od.inc.php
 	modified:   includes/polling/os/mrv-od.inc.php
 	removed extensions from all new mib files

* Add snmprec file to satisfy test units
	new file:   tests/snmpsim/mrv-od.snmprec
2017-05-18 22:04:40 +01:00
Xavier Beaudouin
60e8d9d928 New Fortinet MIBS (#6675) 2017-05-18 21:09:57 +01:00
Ivan
db47a43ce9 Added host to reachability failure message (#6680) 2017-05-18 21:03:55 +01:00
Neil Lathwood
895801d855 newdevice: Added more health information for APC units (#6619)
* fix: Fixed apc state support emsOutput

* newdevice: Added more health information for APC devices

* update schema file

* schema file renamed
2017-05-17 22:41:53 +01:00
Tony Murray
f43ad4629c remove eval() (#6648) 2017-05-17 22:38:00 +01:00
Tony Murray
8d1b7d5493 fix: fix marking invalid ports as deleted in discovery (#6665)
There seem to be other issues in this file, such as $ports_l is never defined...
2017-05-17 22:25:47 +01:00
jackson-tim
390dd0bece alerting: Added HipChat v2 API + Color Changes (#6669)
Added support for the HipChat V2 API (it detects if "v2" is in the API URL) and also changed the default coloring so any non-recovery/reboot messages get colored as red.
2017-05-17 22:20:34 +01:00
Søren Rosiak
b06176aa17 newdevice: Added basic Cisco SCE detection (#6666)
* newdevice: Basic Cisco SCE Support

fix #6630

* add os polling

* add group
2017-05-17 22:19:10 +01:00
Søren Rosiak
8252553eaa newdevice: Updated SonicWALL Discovery (#6668)
fix #6667
2017-05-17 22:18:27 +01:00
Neil Lathwood
bfa26b8634 fix: Revert to using addslashes() for template parsing in alerts (#6661)
* fix: Revert to using addslashes() for template parsing in alerts

* Update alerts.inc.php
2017-05-17 20:11:54 +01:00
Tony Murray
21d205b379 fix: Fix typo (#6664) 2017-05-17 21:06:36 +02:00
Marcus Pink
26c17de7bb newdevice: Updated Lancom LCOS detection (#6651)
* better Lancom LCOS detection, added LCOS-MIB

* added copyright, fixed mib placement, fixed definition
2017-05-17 08:03:23 +01:00
Neil Lathwood
e223ec3ff2 newdevice: Added support for Geist PDU (#6646) 2017-05-16 23:39:35 -05:00
Søren Rosiak
c40b762e23 feature: Update Juniper MSS Support (#6565)
* feature: Improve Juniper MSS Support

Add the following sensors
- Processor
- Mempool
- State

* Use snmp_get_multi

* updated mibs dir
2017-05-16 22:22:46 +01:00
Søren Rosiak
4c59e6cf0a newdevice: Updated Barracuda NG Firewall Detection (#6658)
fix #6653
2017-05-16 22:13:19 +01:00
Marcus Pink
5b9623d8d4 newdevice: Added detection for HPE RT3000 UPS (#6638)
* newdevice: HPE RT3000 UPS

* newdevice: HPE RT3000 UPS

* changed polling to snmp_get_multi_oid, fixed divisor for load and voltage

* fixed blank line in functions.inc.php
2017-05-16 21:42:10 +01:00
Tony Murray
155d9de8dc fix: two-factor auth and restore some auth speed regressions (#6649) 2017-05-15 23:13:07 -05:00
Tony Murray
683a10e723 fix: Improve authentication load time and security (#6615)
* fix: minimize session open time
page/graphs speedup part 2

Write close the session as soon as we no longer need to write to it. Prevents the session from blocking other requests.
Do not run through full authentication functions if the session is already authenticated.
Removes password from the session as well as some items to prevent session fixation from #4608.

WARNING: This will cause issues for ad/ldap users who do not have a bind user configured!

* Do no erase username when using cookie auth.
Properly close the session in ajax_setresolution.php

* write close the session as soon as possible in ajax_setresolution.php

* Remove session regeneration. It is not compatible with the current code and would require more changes.

* Totally refactor authentication.  Extract code to functions for re-use and improved readability

* Use exceptions for authentication and error logging
Tested: mysql, ad_auth with and without bind user

* fix a couple scrutinizer issues

* fix reauthenticate in radius
2017-05-15 22:18:23 -05:00
Tony Murray
ebdfbd00d8 fix: validate prefer capabilities over suid for fping (#6644)
* fix: validate prefer capabilities over suid for fping

* fix logic
2017-05-15 23:45:02 +01:00
Neil Lathwood
612186dabf alerting: Added option to enable/disable option for sending alerts to normal users (#6590)
* alerting: Added option to enable/disable option for sending alerts to normal users

* Update notifications.rss

* added missing sql

* Fix schema

* Update notifications.rss
2017-05-15 23:35:26 +01:00
Tony Murray
74c7611bca newdevice: Make TiMOS detection more generic, rebrand to Nokia (#6645)
Includes all product lines SR, SAS, ESS
2017-05-15 23:07:14 +01:00
Neil Lathwood
4d0832e412 refactor: Updated vlan discovery to support JunOS (#6597) 2017-05-13 23:06:14 +01:00
Arzhel Younsi
073b444d4a alerts: Remove prettifying of mysql query in alerts (#6614)
* Pretty mysql for alerts breaks regex rules

Fix for issue #6613

* Remove useless replacements
2017-05-13 22:32:41 +01:00
Tony Murray
595e75bd14 refactor: modest speedup to database config population (#6636)
use references to assign values into the config array more efficiently, prevents a lot of memory churn caused by the recursive approach
2017-05-13 19:54:53 +01:00
Neil Lathwood
1ce58cd33d feature: Added functionality to support recording status info (#6628)
* feature: Added functionality to support recording status info

* updated phpdoc block
2017-05-13 06:55:38 -05:00
Neil Lathwood
0338734fe7 feature: Added script (scripts/test-template.php) to test alert templates (#6631)
* feature: Added script (scripts/test-template.php) to test alert templates

* moved remaining functions, fixed php 5.3 and include dir

* added docs on use for test-template script
2017-05-13 06:46:08 -05:00
Tony Murray
2dd44fdfdf refactor: move default alert rules into the collection (#6621)
* refactor: move default alert rules into the collection
Also adds the wireless rules to the default set.

* Added additional defaults to extra

* Fix up the extra value
Also, missed `rule` column when creating default rules
2017-05-13 09:24:47 +01:00