Commit Graph

15987 Commits

Author SHA1 Message Date
PipoCanaja
70437ae42b Dantel Webmon Improvement (#9977)
* Generic polling for webmon

* Tests update

* clean

* tests and count sensor

* typo + tests

* update user friendly OS

* style
2019-03-17 21:42:47 -05:00
dracmic
fffd45a7fd Patch fix sql error on gengroupsql (#9929)
* Patch fix sql error on gengroupsql

* Update device-groups.inc.php

* Update device-groups.inc.php

* Update device-groups.inc.php

* Update device-groups.inc.php
2019-03-17 21:12:11 -05:00
PipoCanaja
a2d378e0be Display Up/Down time in Device List (#9951)
* First attempt of Up/Down time

* First attempt of Up/Down time

* Moved to Time::formatInterval()

* cleaning

* last polled in casts

* Cleaning the variants of formatUptime()

* Cleaning in ./html/includes/dev-overview-data.inc.php

* Cleaning in ./html/includes/dev-overview-data.inc.php

* Cleaning in ./html/includes/dev-overview-data.inc.php

* updated includes/polling/core.inc.php

* updated includes/alerts.inc.php

* clean accessors
2019-03-17 21:09:58 -05:00
sorano
3f5d8e3633 Add HTML transport example for ms teams (#9969)
and fix missing " in Processor Alert with Graph example.
2019-03-17 20:39:20 -05:00
Tony Murray
1cfe4ea5fd
Don't enable secure cookies when they won't work (#9971)
* Ignore session.cookie_secure errors
They happen if the session is already started.

* Don't allow secure cookies to be enabled when not accessing via https

* Completely remove the setting
2019-03-17 16:25:59 -05:00
Tony Murray
cd1015992c
Fix install not connecting to DB (#9984) 2019-03-17 16:25:38 -05:00
Yann Gauteron
af2b4055d3 Fix inconsistent <h3> closed by </div> (#9982) 2019-03-17 08:27:32 -05:00
TheGreatDoc
14b1929133
Merge pull request #9978 from PipoCanaja/graphs_limits
Do not use $sensor[sensor_limit] if not available
2019-03-17 08:11:40 +01:00
PipoCanaja
ceabfb8ef7 Update Getting-Started.md (#9976)
* Update Getting-Started.md

* Update Getting-Started.md
2019-03-16 21:34:51 -05:00
TheGreatDoc
0cc5de695d Custom storage warning percentage (#9975)
* Custom storage warning percentage

* Fixed permissions

* Restored line removed by accident

* Fixed permissions v2

* Set correctly the config var

* style
2019-03-16 23:53:05 +01:00
Spencer Butler
e5fd217184 Added support for Cisco Small Business WAP371-a-k9 (#9974)
* lnms-9931 - added support for ciscosb_wap371-a-k9
* lnms-9931 - remove testing string
2019-03-16 22:28:31 +01:00
PipoCanaja
46839e09e7 Do not use $sensor[sensor_limit] if not available 2019-03-16 18:06:09 +01:00
Yann Gauteron
d15fda3693 Optional automatic sensor limits (#9973)
* Automatic sensor limits are now optional. Set ['discovery']['sensors']['autolimit'] = false to disable.
* Changing new config variable name from discovery.sensors.autolimit to sensors.guess_limits
* Updated documentation: ['sensors']['guess_limits'] value added
2019-03-16 11:51:09 +01:00
PipoCanaja
6f8311369c
Dell UPS enable rfc 1628 support (#9961)
* dell ups rfc1628
* tests
2019-03-16 09:47:47 +01:00
Tony Murray
3825133602 Fix device missing from traps/new Log::event() (#9963)
* Fix device missing from traps/new Log::event()
2019-03-16 09:24:59 +01:00
Spencer Butler
907579dbef added new OS - sensatronics-em1 (#9960)
* added new OS - sensatronics-em1

* #9960 - added logo, icon, and update skip_values

* #9960 - fixed over: value

* #9960 - updated icon, logo, and updated descr: from static to table names
2019-03-15 13:18:52 -05:00
PipoCanaja
5d512a83ed Cisco OTV cast issue building empty adj (#9968) 2019-03-15 07:28:01 -05:00
Tony Murray
c3672be3b6
remove whitespace (#9959) 2019-03-14 13:12:56 -05:00
Tony Murray
2fd7c4fab4
fix an issue with web installer looking for the mysqli extension when we only use pdo_mysql (#9958) 2019-03-14 13:10:45 -05:00
Tony Murray
c7c7b57de4
Always boot Laravel (#9842)
* Always boot Laravel
That way we can depend on it being available.
Saves us crashes if some code accidentally uses something that isn't booted and a lot of silly if/elses.

* ignore init php errors
2019-03-14 08:06:27 -05:00
Tony Murray
3905423147
fix docs (#9953) 2019-03-13 21:43:54 -05:00
PipoCanaja
904f64ef12 eatonpdu new device (#9947) 2019-03-13 21:39:49 -05:00
djamp42
0b2fbceedd Add Device Arris DSR-4410MD Sat Receiver (#9943)
* arris dsr4410md

* update sensor names

* code climate fixes

* Add blank line at EOF
2019-03-13 21:39:29 -05:00
PipoCanaja
0b4c7b584a remove calls to unavailable {{ $variable }} from YAML discovery (#9864)
* remove calls to unavailable {{ $variable }} from YAML discovery

* tests

* Add a warning for debugging purposes
2019-03-13 21:04:50 -05:00
PipoCanaja
787a8fc309 Corrected active_count for Alert icon color (#9933)
* Corrected active_count for Alert icon color

* Corrected active_count for Alert icon color

* Corrected active_count for Alert icon color

* Laravel version

* Laravel version check status worse and better for isActive

* cleanup
2019-03-13 21:01:30 -05:00
Tony Murray
19612cf38d Documentation for setting a development environment (#9944)
* Documentation for setting a development environment

* Fixed indentation
2019-03-13 21:09:58 +01:00
TheGreatDoc
119ac27a43
Merge pull request #9946 from PipoCanaja/laravel-transport-menu
Add Alert-transports to Laravel menu blade
2019-03-13 19:41:12 +01:00
PipoCanaja
f9d96dadbd Add alert transport to Laravel menu blade 2019-03-13 17:46:41 +01:00
PipoCanaja
be58ec3b72
Fixed overview graph on Cisco ASA announcing all interfaces in type l2vlan (by default filtered) (#9849)
* Fix ASA announcing all interfaces in l2vlan
* Fix ASA announcing all interfaces in l2vlan
2019-03-13 09:04:51 +01:00
PipoCanaja
59f00dcc6b
Improved VRP stack state discovery with one member only to avoid unnecessary alarms (#9925)
* VRP stack state improvement

* tests

* cleaning
2019-03-13 09:03:18 +01:00
PipoCanaja
f1221b42dc Add new template syntax into the FAQ, pointing to the documentation (#9942) 2019-03-13 00:21:13 -05:00
Tony Murray
78ae084157
Fix Aruba Instant wireless sensors (#9936)
* fix Aruba Instant wireless sensors

* add tests
2019-03-12 23:59:40 -05:00
Tony Murray
cb005210d2
Resubmit #9608 (#9941)
* Reorganize trap tests

* Testing db DRIVER to prevent .env from interfering

* New code to detect if Laravel is booted.  Hopefully more reliable.

* WIP external test process

* revert module test helper

* Use .env in Eloquent::boot()

* Fix test database settings loading

* fix undefined classes
(didn't find the one I needed)

* Fix incorrect Config usages
And RrdDefinition return type

* fix .env loading

* use the right DB

* slightly more accurate isConnected

* Move db_name to DBSetupTest specifically

* restore $_SERVER in AuthSSOTest

* missed item

* WIP

* tear down in the correct order.

* some testing cleanups

* remove check for duplicate event listener, it's not working right

* Don't need this change anymore

* Implement Log::event to replace legacy function log_event()

* fix port tests

* fix up tests

* remove pointless TrapTestCase class

* fix style

* Fix db config not being merged...

* skip env check for tests

* defer database operations until after Laravel is booted.

* don't include dbFaciale...

* redundant use
2019-03-12 23:59:03 -05:00
Tony Murray
17b5d7f0a3
fix misc models (#9935)
lnms ide-helper:models now works
2019-03-12 21:05:01 -05:00
Cliff Albert
0ae24b22fd Added support for ciscosb to gen_rancid.php (cisco-sb) (#9940)
* fix: add support for Cisco SB switches (Cisco SG-xxx/Linksys SRW)

* changed from tab to space
2019-03-12 19:20:02 +01:00
Ruslan
019c57beaa Add Junos VirtuallChassis ports polling (#9879)
* Update ports.inc.php

* Create junos-vcp.inc.php

* Fix some formatting errors in junos-vcp.inc.php

* Update junos_ex.snmprec

* Update junos_ex.json

* Update tests/data/junos_ex.jso

* Rollback junos_ex data set

* Update ports.inc.php

* Update junos-vcp.inc.php~

* Update tests/snmpsim/junos.snmprec

* Generate new .json files

* Update includes/polling/ports.inc.php

* Rollback tests/data/junos_ex.json

* Update junos.snmprec

* Update junos.snmprec

* Use str_pad in junos-vcp.inc.php
2019-03-12 09:01:35 -05:00
PipoCanaja
a361f3fd09 Added Ciena Waveserver (#9930)
* ciena waveserver files + MIB

* ciena tests

* ciena forgotten file

* Thresholds + cleaning
2019-03-12 08:58:41 -05:00
PipoCanaja
7b8ccc2ea2
Allowed 14 chars in graph legend for rrd descr. (#9926) 2019-03-12 08:57:56 +01:00
Tony Murray
eb648a1d6f
Revert "Changes to improve testing (#9608)" (#9937)
This reverts commit d1a0ccda46.
2019-03-12 00:49:14 -05:00
Tony Murray
d1a0ccda46
Changes to improve testing (#9608)
* Reorganize trap tests

* Testing db DRIVER to prevent .env from interfering

* New code to detect if Laravel is booted.  Hopefully more reliable.

* WIP external test process

* revert module test helper

* Use .env in Eloquent::boot()

* Fix test database settings loading

* fix undefined classes
(didn't find the one I needed)

* Fix incorrect Config usages
And RrdDefinition return type

* fix .env loading

* use the right DB

* slightly more accurate isConnected

* Move db_name to DBSetupTest specifically

* restore $_SERVER in AuthSSOTest

* missed item

* WIP

* tear down in the correct order.

* some testing cleanups

* remove check for duplicate event listener, it's not working right

* Don't need this change anymore

* Implement Log::event to replace legacy function log_event()

* fix port tests

* fix up tests

* remove pointless TrapTestCase class

* fix style
2019-03-11 22:59:39 -05:00
PipoCanaja
6a25ed347b Cleaned sensor descriptions using $subindexX (#9932)
* Netgear

* fusion

* eaton-mgeups

* apc-mgeups
2019-03-11 20:32:30 -05:00
PipoCanaja
6ec97309a0 Grandstream basic support (#9906)
* grandstream simple discovery

* grandstream simple discovery tests

* exclusion in linux matching

* Revert un-necessary changes, and change "over:" to ping
2019-03-10 08:38:46 -05:00
Nick Hilliard
8d67bb776e Improved Infinera Groove discovery (#9913)
* Improvements for infinera groove
- add support for 3.0.1 and prior versions
- add support for subports and fibre-channel
- fix bug relating to OS version detection
- updated unit test snmprec
2019-03-10 11:58:34 +01:00
ospfbgp
eb82a153d9 Add support for power supply on Extreme BOSS switches (#9898)
* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2019-03-09 14:24:37 -06:00
David
569b1f0fb2 Fix database validation for MySQL 8 (#9923) 2019-03-09 14:15:03 -06:00
David
6eda5eea91 Quoted all column names to avoid breakage for reserved keyword "row" introduced in MySQL 8.0.2 (#9922)
Fix widgets page with MySQL 8
2019-03-08 08:18:01 -06:00
Jason Cheng
0dc70a8892 Fixed sysName can't display because newline character (#9921) 2019-03-08 08:16:53 -06:00
Vitali Kari
06bba5a2b2 add support for cirpack soft switch (#9914)
* add support for cirpack soft switch

* remove unused lines
2019-03-07 19:57:06 -06:00
Tony Murray
7bbf30bbe9
Fix printer discovery level (#9917)
* Fix printer discovery level
When the printer knows there is "some" paper left.

* update test data
2019-03-07 19:51:39 -06:00
Tony Murray
b65205b983
Graylog: Handle missing fields a little more gracefully (#9919) 2019-03-07 19:49:14 -06:00