Commit Graph

16322 Commits

Author SHA1 Message Date
Tony Murray
cfdd23d2c2 Fix roku svg (#10453) 2019-07-18 11:11:01 -05:00
Tony Murray
36a5da00ca Fix missed alert function renames (#10452) 2019-07-18 11:05:43 -05:00
Heath Barnhart
851994cfb8 Alert Subsys to OOP and SNMPTraps trigger Alert Rules (#9765)
* Changed snmptrap.php and handlers to allow for alerts.

* Moved RunRules() to Dispatcher.php

* Modified includes, passes pre-commit tests locally.

* Converted RunRules to OO, fixed formatting in files found by TravisCI

* rebase, covert alert subsy to oop

* Modified init.php to call new Alert subsystem

* fixed dependencies

* Resolved undefined functions

* Fixed PingCheck.php not triggering

* Changed runAlerts to __construct

* Fixes
Can't have Config inside empty()
incorrectly named function (my fault)
poller.php missing shebang
organize imports
2019-07-18 08:36:02 -05:00
arrmo
6986711a72 Add svg image for Roku (#10448) 2019-07-18 08:33:38 -05:00
Tony Murray
e63dc17e73 Fix ports page javascript (#10451) 2019-07-18 08:29:42 -05:00
Tony Murray
3ead462549 Enable CSRF protection (#10447)
* Enable CSRF protection

* fix style issues
2019-07-17 07:20:26 -05:00
bergroth
b085703b2d Added support for DGD and BER on newer infinera-groove FW (#10435)
* Added support for DGD and BER that are avalible on newer infinera-groove FW
* updated tests for new groove sensors
* Update infinera-groove.inc.php
* Update infinera-groove.inc.php
* Force test to run again
2019-07-15 12:47:41 +02:00
PipoCanaja
837765fabe Added VRP SFPs thresholds and map entPhysical to ifIndexes (#10363)
* gather SFPs thresholds and map entPhysical to ifIndexes

* Update entity-physical.inc.php

Comment and force TravisTests

* codeclimate

* Simplify ifIndex collection

* Always update ifIndex

* Missing pre-cache value for skip_value
2019-07-14 18:37:01 -05:00
Serazio
902aedcd82 Added F5 ssl tps, global server/client connection rate and active connections (#9883)
* Added ssl tps, global server/client connection rate and active connections

* Added ssl tps, global server/client connection rate and active connections

* Added ssl tps, global server/client connection rate and active connections

* Added ssl tps, global server/client connection rate and active connections

* Moved from  2x snmp_get to snmp_get_multi for SSL TPS

* Rewrite of polling module for f5.  Thanks to @PipoCanaja for code examples.

* Moved files to includes/html/

* changed array definition
2019-07-14 18:33:20 -05:00
Ryan Medlyn
4750dea04a Fix structure of network_map_legend defualt (#10429)
Fix array to allow `Config::get('network_map_legend.dn.node')` in `print-map.inc.php` to work properly.
2019-07-14 16:42:35 -05:00
CirnoT
a0ac361174 Fix missing background on progress-bar for 95th bills (#10443) 2019-07-14 16:40:55 -05:00
Joe Clarke
8bbc69a878 Add support for using Markdown for the Ciscospark transport (#10442)
* Add support for using Markdown.

Alert templates can be written using Webex Teams (i.e., Spark) Markdown,
which makes for some richer alerts.  This option defaults to false to
maintain Principle of Least Astonishment.

* Update Cisco Spark docs.

* Mention that Cisco Spark is now called Webex Teams
* Add support for Markdown

* Refactor text.

Do not exceed 80 characters per line.

* Refactor code to meet style guidelines.

* Remove errant tabs and use spaces instead
* Correct type check
* Remove use of 'else'
2019-07-14 16:34:22 -05:00
Austin
a6ecff380b Fixed typo: Administartor (#10437)
Corrected spelling of "Administartor" to "Administrator".
2019-07-11 22:47:52 +02:00
PipoCanaja
ef637a7c77 API Transport - Empty lines handling (#10431)
* API Transport - Empty lines handling

* Handle empty lines

* Update Api.php
2019-07-10 23:23:45 -05:00
CirnoT
d4c109232a Ensure that sysName is trimmed on discovery (#10434) 2019-07-10 17:54:24 +02:00
ospfbgp
fc2f0a4552 Updated RAPID-CITY mib for Extreme VSP (#10406)
* Add files via upload

* Update voss.inc.php

* Update voss.inc.php

* Update voss.yaml

* Update voss.inc.php

* Update voss.inc.php

* Update voss.inc.php

* Update voss_7432cq.json

* Update voss_7432cq.json

* Add files via upload

* Add files via upload

* Update voss_8404.json

* Update voss_8608.json

* Update voss_8608.json

* Update voss_8608.json

* Update voss_8608.json

* Update voss_9012.json
2019-07-09 23:54:21 +02:00
SourceDoctor
a875c1d8a5 Added mdadm application documentation (#10430)
* Add mdadm application documentation
* Update Applications.md
2019-07-09 23:47:32 +02:00
Sajan Parikh
3142748a65 Updated $rancid_map For Mikrotik (#10426)
Mikrotik's in LibreNMS have an OS of 'routeros'.  Added it to the rancid mapping so the generated router.db file includes Mikrotiks as expected.
2019-07-09 20:11:10 +02:00
PipoCanaja
71da38cdf5 Added skip_values operator and documentation (#10419)
* more operators

* os_schema

* discovery_schema

* doc

* doc
2019-07-09 15:47:02 +01:00
Sander Steffann
164f3a096a Fixed smokeping graphs (#10415)
* Remove duplicate code

* Fix smokeping rrd file discovery

* Fix Smokeping outgoing graphs
2019-07-09 10:28:35 +01:00
Vitali Kari
592b2ea432 Added new Sensors for Nokia Subscriber Statistics (#10422) 2019-07-08 13:59:52 +02:00
tgregory86
394d66a3f0 Typo in Spelling prevented new services from being added. (#10420)
When attempting to add a new services this was showing up in the logs:
[2019-07-07 09:44:53] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'servcie_disabled' in 'field list' (SQL: INSERT IGNORE INTO `services` (`device_id`,`service_ip`,`service_type`,`service_changed`,`service_desc`,`service_param`,`service_ignore`,`service_status`,`service_message`,`service_ds`,`servcie_disabled`)


No error was presented in the gui, it said the service was added but in fact it was not and when you went back to the list of all services the one you tried to add was not present.
2019-07-07 17:53:15 +02:00
Heath Barnhart
5a2f2497bb Allow setting Service Ignore and Disable in UI (#10334)
* Added disable and ignore checkboxes to services modal

* Updated add_services function to set disabled field

* Modified check-services.php respect service_disable value

* Minor code change for consistency in new_service.inc.php

* Removed unneeded includes
2019-07-06 17:58:06 +02:00
VVelox
12cd540a92 doc: make Applications.md more lint happy and add a section on sudo at the top (#10367)
* clean up Applications.md a bunch

* more cleanup and header depth

* add the sudo section
2019-07-06 17:51:27 +02:00
rsys-dev
cfaf913896 Added detection for ZTE zxdsl devices (#10344)
* add yaml files

* Added include/definition/zxdsl.yaml (ZTE ZXDSL Support)
Added include/polling/os/zxdsl.inc.php (Set Hardware)

* Changed includes/definitions/zxdsl.yaml type from "dslam" to "network"
Changed includes/polling/os/zxdsl.inc.php removed unnecessary code
Added Testfiles

* Fixed coding guideline errors (missing spaces)

* Removed unnecessary "use"

* Improved model number discovery
Removed unavailable top graphs
Added System temperature

* Changed Temperature limits according to ZTE datasheet

* Updated Tests
2019-07-05 13:06:27 +02:00
Shao Yu-Lung (Allen)
bd1204006a Fixed Nan value broken maps network graph. (#10408)
Error message:
Uncaught TypeError: Cannot read property 'indexOf' of null
at Object.e.overrideOpacity (vis.js:1085)
2019-07-05 08:50:56 +02:00
jozefrebjak
20b3211e7e Added Support for Unitrends Backup (#10411) 2019-07-05 08:49:03 +02:00
PipoCanaja
55f67f42fe Refactor Api transport to use Guzzle (and new variables syntax) (#10070)
* Allow new {{ $xxxx }} syntax

* Properly handle urlencode on variable values without braking the URL, and uses Blades

* Doc
Doc typo

* use Guzzle for HTTP requests

* Add Basic auth support

* Doc update

* clean

* Revert Blades, but keep the {{ $xxxx }} syntax

* Revert Blades, but keep the {{ $xxxx }} syntax

* Init Vars and comments

* Notifications

* api-options are not required

* Update notifications.rss
2019-07-04 16:55:29 +01:00
N-Mi
fce185b55c Fix doc test after changelog split (#10412) 2019-07-04 08:01:46 -05:00
CirnoT
86740a76c0 Replaced color indicator near uptime counter with colored text and change color of status indicator to black on disabled devices instead of gray(#10372)
(matches availablity map with show ignored/disabled enabled)
2019-07-04 10:42:48 +02:00
Jason Cheng
bad050520e Make Disabled/Shutdown to be translatable (#10398)
* Make Disabled/Shutdown to be translatable

* Update zh-TW.json

* Remove excess white space

* Updated additional language files for Shutdown command
2019-07-04 10:40:20 +02:00
jozefrebjak
08cb2d0065 Smokeping BasicAuth (htaccess) configuration 2019-07-04 10:27:38 +02:00
Stuart Henderson
161849219e Avoid unnecessary net-snmp long options for version info (#10405)
Long option support in net-snmp relies on non-portable usage of getopt(3) with "-:" in the argument string, this doesn't work on all OS. Replace with the alternative -V which works everywhere.
2019-07-02 16:52:55 +01:00
abuzze
1183318ba3 Ignore disabled components in component widget (#10369)
* Ignore disabled components in component widget

* Update ComponentStatusController.php
2019-07-02 16:03:28 +01:00
jozefrebjak
3531454a6e Added VPN sensors for Fortinet Fortigate (#10384)
* Added IPSEC VPN state

* Added more VPN sensors

* Test Data cleaned
2019-07-02 15:58:42 +01:00
N-Mi
88d5577bd1 Split 2017 and 2018 changelogs (#10404) 2019-07-02 15:37:05 +01:00
jozefrebjak
bdcd709b83 Update Portactivity Applications for suggest modules to install (#10394) 2019-07-02 13:37:21 +01:00
N-Mi
acae7e8d00 Fixed formatting of Changelog (#10402)
* Fix markdown in Changelog.md

* Escape html tag
2019-07-02 13:25:36 +01:00
Tony Murray
f83ce13a7a Fixed tabs and units on the wireless page (#10401) 1.53.1 2019-07-02 13:11:58 +01:00
SniperVegeta
f419419830 Added panasonic ns1000 os (#10390)
* Add files via upload

panasonic png

* Create panasonic-ns.yaml

Panasonic NS

* Create panasonic-ns.inc.php

Panasonic NS Series

* Create KX-NS.mib

Panasonic NS mib file

* Add files via upload

Add snmprec

* Add files via upload

add panasonic-ns data

* Update panasonic-ns.inc.php

Space?
2019-07-02 00:08:04 +02:00
ospfbgp
9740120e97 Added support for Extreme VSP-7432CQ (#10393)
* Update xos.yaml

* Update voss.yaml

* Update voss.yaml

* Add files via upload

* Add files via upload
2019-07-02 00:06:42 +02:00
Tony Murray
8ad55b55b5 More changelog generation changes (#10397)
more categories and reorder some.
fallback category
2019-07-01 08:06:27 -05:00
Tony Murray
87a2231469 Bump version to 1.53 1.53 2019-07-01 00:07:02 -05:00
Tony Murray
9962fd8b2f Changelog for 1.53 2019-07-01 00:07:00 -05:00
N-Mi
5021eeb864 Fix markdown in Changelog (#10387)
* Fix markdown in Changelog.md

* Escape html tag
2019-06-29 20:33:49 -05:00
SniperVegeta
242ab51e4e Fix atuc chan curr tx rate/atur chan curr tx rate (#10383)
* Update adsl_speed.inc.php

Change AtucChanCurrTxRate and AturChanCurrTxRate

AtucChanCurrTxRate  = Downstream
AturChanCurrTxRate  = Upstream

* Update adsl_snr.inc.php

AtucCurrSnrMgn = Down
AturCurrSnrMgn = Up

* Update adsl_attainable.inc.php

AtucCurrAttainableR = Down
AturCurrAttainableR = Up

* Update adsl_attenuation.inc.php

AtucCurrAtn = Down
AturCurrAtn =Up

* Update adsl_power.inc.php
2019-06-29 20:32:42 -05:00
Jason Cheng
5dce5cabd6 Update zh-TW.json (#10391) 2019-06-29 20:25:02 -05:00
djamp42
197947d4a1 Add custom title to alert widget (#10373) 2019-06-27 00:32:16 -05:00
Martijn Schmidt
9d68f27296 Use sensor labels for overview/inventory pages, refactor some html-page related code (#10287)
* Refactor: use get_state_label() for the overview

* Move state translation to get_state_label()

Several html pages used similar database calls and sometimes very
different methodology to determine the state label and state text
before calling get_state_label(), so moved that part of the task
into the function itself instead of replicating the same code
multiple times on different pages.

* Move label creation to get_sensor_label_color()

Also removed a duplicate sensor class to unit function.

* Refactor some if/else statements for simplicity.

* Enable state translations for the inventory page.

* Remove blank line found at end of control structure

* Enable unit translation, fix typos.

* Change to dbFetchRow(), return string directly.

* Update functions.inc.php

* Stop displaying the raw value on state labels.

* Apply 1c7c3ca change for default case too.
2019-06-27 00:30:10 -05:00
Jason Cheng
ebd004edc7 Create sensors.php and wireless.php for zh-TW (#10368)
* Create sensors.php for Traditional Chinese.

* Create wireless.php

* Update wireless.php
2019-06-27 00:25:58 -05:00