Commit Graph

13925 Commits

Author SHA1 Message Date
Neil Lathwood
75ea45d275 changed the way snmpwalk is done for yaml sensors (#7069) 2017-07-22 15:03:11 +01:00
Tony Murray
3a89820646 prepare for upcoming composer changes by cleaning the vendor directory (#6986) 2017-07-21 23:21:42 +01:00
Neil Lathwood
561e368d32 fixed routeros sensors file (#7067) 2017-07-21 23:08:12 +01:00
Tony Murray
ddc65e1bef feature: Config helper to simplify config access (#7066)
Saves from having to check isset() and all that junk.
Uses dot separated config paths like the database.

Usage:
  Config::get('install_dir')
  Config::get('memcached.enable', false)
  Config::getDeviceSetting($device, 'retries', 'snmp', 5)
  Config::getOsSetting($device, 'nobulk')
  Config::set('poller_modules', array())
2017-07-21 23:05:07 +01:00
Tony Murray
123a90feab feature: Log event if device polling takes too long (#7065)
Move $device_time closer to end of poll_device(), and simplify
remove some unused variables
simplify $device_time in discover_device() too
2017-07-21 23:01:59 +01:00
Neil Lathwood
08d3a267ad fix: Stop loading all oses when we have no db connection (#7003)
* fix: Stop loading all oses when we have no db connection

* updated to use load_all_os() correctly
2017-07-21 12:42:16 -05:00
Neil Lathwood
feef5383f3 docs: Added code of conduct doc in root (#7055) 2017-07-21 12:36:33 -05:00
Neil Lathwood
23bbc97e6a newdevice: Added sensors for Mikrotik using mtxrOpticalTable + updated MIB (#7037) 2017-07-20 21:39:42 +01:00
Aldemir Akpinar
a2a1174033 Added log events for jira transport (#7059)
* Added log events for jira transport

* Resolve jira ticket bug for normal alerts
2017-07-20 20:09:33 +01:00
kkrumm1
ac5b2c663c docs: Update Performance.md (#7061)
* Update Performance.md

added more info for cron job for the poller wrapper.

* Update Performance.md

fixed formatting error.
2017-07-20 20:08:36 +01:00
Neil Lathwood
d1e8458b31 newdevice: Updated powerwalker sensor discovery to use custom mib (#7020) 2017-07-20 12:01:16 +01:00
Neil Lathwood
da7550f55f device: Added additional sensors support for HP ILO4 (#7053)
* device: Improved HP ILO4 support

Added HP ILO4 temperature (HDD, motherboard), power, state (powersupply, HDD, Fans, memory slots) sensors support.
Tested with HP ProLiant ML350p Gen8-Gen9

* actual MIB file!
2017-07-19 22:06:59 +01:00
Aldemir Akpinar
c592f901b0 feature: Added jira alert transport (#7040)
* feature: added jira transport

* Trying to fix travis-ci sql problem

* Surpress mysql warnings

* Fix for typo

* Update Alerting.md
2017-07-19 16:25:03 +01:00
Neil Lathwood
c40825f233 fix: Use the correct high/high warn thresholds for junos dbm sensors (#7056) 2017-07-18 19:47:00 -05:00
Aldemir Akpinar
3ca39c810d webui: Facelift for alert templates, also added bootgrid (#7041)
* webui: facelift for alert templates, also converted the custom code to bootgrid

* Update alert_template.inc.php

removed var = action line, no longer needed.
2017-07-18 23:54:14 +01:00
Tom Sealey
3b2c42009b docs: added agent setup to mkdocs (#7033)
noticed that the Agent Setup doc is not listed under Extensions, but can be found by searching. Added to mkdocs.yml
2017-07-18 23:44:06 +01:00
Lorenzo Zafra
bfaab856bd newdevice: Added support for Siemens Ruggedcom Switches (#7052)
* newdevice: Siemens Ruggedcom Switches

* Fixed svg images

* Renamed to ros

* renamed snmprec file
2017-07-18 23:32:07 +01:00
Neil Lathwood
9dd9bc1d49 fix: Updated 113 schema to use 255 chars for index (#7054)
* fix: Updated 113 schema to use 255 chars for index

* update travis to fix php build issues
2017-07-18 16:33:36 -05:00
Tony Murray
8e85eebe32 fix: Don't lock the schema during install.php (#7051) 2017-07-18 20:07:21 +01:00
sorano
dedfc6c1d8 Set correct device_perf_purge in Support docs (#7049)
It is 7 according to defaults.inc.php
2017-07-18 15:46:44 +01:00
Steven Barnes
5c46ad1a72 corrected proxmox script path (#7048) 2017-07-17 21:20:22 +01:00
Tony Murray
181b0fb7d5 refactor: Use the new locks for schema updates (#6931)
* Use the new locks for schema updates

* removed schema lock from discovery

* Add the ability to wait for a lock.
Add unit tests

* Add MysqlLock
Use that for the schema updates
Wait up to 30s for other schema updates to complete.

* Switch the schema lock back to a file lock for now.
Make FileLock support indefinite locking without polling.
Add a warning to MysqlLock for scenarios where it won't work.

* Delete MysqlLock.php

* Removed MySQL lock tests
2017-07-17 19:35:08 +01:00
Tony Murray
1e77d4b3ea refactor: validate.php improvements (#6973)
Always output header (may be missing mysql data)
Improve version display, now looks like '1.28-129-g74e6c3edf' <tag>-<commits since tag>-<shortag>
Add mysqli to the list of required extensions, check extensions before init
Add dbIsConnected() function, used to check if we have db in version_info()
Do not die on IPv4 and IPv6 so validate can print errors.
Move git checks so they are output together
fix rrdtool 1.7.0 reports version as 1.7.01.7.0
2017-07-17 19:02:28 +01:00
Tony Murray
97828eceba device: Added FDB support for IOS-XE devices (#7044) 2017-07-17 19:01:37 +01:00
Tony Murray
fb121923b0 improve text when ipaddress module is missing (#7043) 2017-07-17 19:00:58 +01:00
Tony Murray
fabf0c54f4 Merge pull request #7046 from librenms/1.29
Added changelog for 1.29 (June 2017)
2017-07-17 09:41:47 -05:00
Neil Lathwood
534595d71d newdevice: Added detection for Gestetner printers (#7038)
* newdevice: Added detection for Gestetner printers

* added missing snmprec test file

* reverted ports change from debug
2017-07-17 07:00:48 -05:00
Neil Lathwood
20ce209b27 Return more descriptive error when adding duplicate devices on sysName (#7019)
* Return more descriptive error when adding duplicate devices on sysName

* clean up functions to make more clear and reduce duplication

* moved return to correct place
2017-07-16 22:01:07 +01:00
InfraTeam
579bfd4c3e newdevice: Added additional sensors for APC IRRP100 Air Conditionner series (#7006)
* Added detection for Hirschmann Railswitch

* Update AUTHORS.md

I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Synchro Fork

* Synchro Fork

* Added additional sensors for APC IRRP100 Air conditionner series

* Updated apc.yaml

@laf I modified the yaml file according to your comment. I forgot the index line in a few definitions...

* Rollback hirschmann.inc.php to original file

* Roolback to original hirschmann.inc.php file

* Updated apc.yaml file to include data section

* Update apc.yaml

* Update apc.yaml

* Updated apc.inc.php after @laf requests

Modified $current calculation, including $multiplier in place of static value and added 'PowerNet-MIB' as an argument of the snmp_get function (detached from OID writing)

* missing new line

* reverted hirschmann updates

* reverted hirschmann updates
2017-07-15 11:44:56 +01:00
Yacine Benamsili
294ec4d73d feature: Added support for sending metrics to OpenTSDB (#7022)
* Create OpenTSDB.md

* Send collected data to OpenTSDB

* Send collected data to OpenTSDB

* Update build.sql

* Send collected data to OpenTSDB

* Delete 200.sql

* Update db_schema.yaml

* Update datastore.inc.php

* Update OpenTSDB.md

* Added OpenTSDB to mkdocs.yaml
2017-07-15 10:28:27 +01:00
dennypage
db84d3bfe9 Fix EPSON logo (#7029)
* Fix EPSON logo

* Trim padding

* Update epson.svg
2017-07-14 21:57:13 +01:00
Tony Murray
b36d3d3408 fix: Don't use Enum in snmp-scan.py (#7036) 2017-07-14 21:56:47 +01:00
kkrumm1
e8282a4b6b fix: Allow discovery of IAP radios on Aruba Virtual Controller
* Update Arubaos.php

Allow discovery of IAP radios on Aruba Virtual Controller -

* Fix up changes
2017-07-14 21:30:57 +01:00
Søren Rosiak
fd140888ab newdevice: Added CPU / Mem support for HPE MSM (#7026)
* newdevice: Improve HPE MSM Support

fix #6972

* remove unneeded polling file

* Update to use numerical OID
2017-07-14 21:06:22 +01:00
Aldemir Akpinar
550e412808 webui: Added an empty option for delete device selection, and a minor db performance fix (#7018)
* webui: Added an empty option, also minor performance fix on the db query

* Added missing backtick

* Added html options per Laf's suggestion
2017-07-14 11:40:29 +01:00
Lasse Leegaard
039e410d6d fix: Change .htaccess to compensate for Apache bug (#6971)
Fix for https://github.com/librenms/librenms/issues/3810 and workaround for bug in Apache 2.4.21+ https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html#ProxyFCGIBackendType
2017-07-14 06:38:25 +01:00
Neil Lathwood
9dbb6c3262 fix: When force adding, use the provided snmp details rather than from $config (#7004) 2017-07-13 19:17:59 -05:00
Neil Lathwood
83cb39a7fd fix: Netbotz state sensors using wrong value (#7027)
* fix: Netbotz state sensors using wrong value

* actual fix
2017-07-13 19:02:26 -05:00
Neil Lathwood
898f59cb72 newdevice: Added sensor metrics for APC IRRP 100/500 devices (#7024) 2017-07-13 23:23:40 +01:00
James Andrewartha
ba8fcdf8cc newdevice: Changed UBNT Airos type to wireless (#6867) 2017-07-13 18:27:17 +01:00
FTBZ
138fd2923a fix: Fixed Rittal LCP sensor divisors (#7014)
* Better values for some graphs

* Change definition order

* Update rittal-lcp.yaml
2017-07-13 18:23:55 +01:00
Tony Murray
c874fc5b1e fix: Standardise UPS divisors (#6942)
Set default divisors for all devices and remove per-os overrides for them.
We should only use per-os overrides for non-standard behavior.

High possibility for breakage here if devices not listed here have non-standard behavior.
2017-07-13 18:09:56 +01:00
Tony Murray
dcca74dcc4 fix: Show fatal config.php errors on the web page. (#7023) 2017-07-13 18:01:01 +01:00
Tony Murray
9be5359c3f Update dependencies, Make sure autoloader is updated (#6988) 2017-07-13 13:59:38 +01:00
Aldemir Akpinar
821dbefefb fix: Set event type alert for alert log entries (#7013) 2017-07-13 13:30:05 +01:00
network-guy
b289081dfe docs: Updated SNMP configuration Documentation (#7017)
* Add IOS-XE Support for FDB Table

* Update SNMP Documentation

* removed includes/discovery/fdb-table/iosxe.inc.php
2017-07-13 11:59:42 +01:00
drid
a9cef701ee docs: Added C.H.I.P. snmp extend support (#7007)
* Update Applications.md

C.H.I.P. power stats script setup

* Update Applications.md

Short description and link

* Update Applications.md

Added download link (will work when agent PR is approved)
2017-07-12 20:54:59 +01:00
Tony Murray
282e4b77a5 newdevice: Savin printer support (#6982)
Toner supply levels supported
2017-07-12 08:16:05 +01:00
Tony Murray
5bc2444499 fix all mib errors in base mib directory (#7002)
Move cabletron mibs into enterasys directory
move CISCO-LWAPP mibs into cisco directory and fix errors
remove MPLS-LDP mibs as I couldn't reconcile them and they seem unused
move watchguard IPSEC-ISAKMP-IKE-DOI-TC into watchguard directory
update several cisco mib files to remove errors
Fix typo in tripplite mib
Fix RADWIN-MIB-WINLINK1000 based on pdf I found online, some lines were missing, added the bare minimum to make it valid
2017-07-12 08:07:21 +01:00
Tony Murray
09b4a9d9ce fix: snmp-scan.py now runs on python 2.7 as well as python 3 (#7011)
* fix: snmp-scan.py now runs on python 2.7 as well as python 3

* remove unnecessary comment about -r
chop down long lines

* fix network argument overwriting -r argument
2017-07-12 08:00:01 +01:00