Commit Graph

14868 Commits

Author SHA1 Message Date
vivia11
314a552437 devices: Add Phybridge OS support (#8456)
* OS yaml definition for Phybridge

* Add images and snmp data

* Removed width/height from svg and added more specific discovery for phybridge

* Minimized svg and inverted icon

* added json test file

* update to json file

* Changing os name: phybridge to phybridge-flex

* Update json file to phybridge-flex

* Remove unneeded test data
2018-03-28 23:54:02 -05:00
James Andrewartha
2313e9c967 Add serial number detection to xerox, which is the standard prtGeneralSerialNumber from Printer-MIB (#8439) 2018-03-28 23:53:14 -05:00
Ruairi Carroll
665229be40 Follow on to PR 8168 - Fixed merge of manage_bills.php (#8467)
* Adding 1st rev of manage_bills.php

* Stlye fixes

* Freshinging PR 7633. Changing -r to -f, to be less confusing. Adding code style changes as per @laf's suggesting

* Adding in option for sysname or hostname variable. Fixing hostname lookup bug

* style fixes

* -renaming add_ports to add_ports_to_bill
- changing -i to -b for clarity sake
- Will print help if -s and -h are not set

* Adding check to ensure -i is set via cli

* I'm stupid

* I'm stupid

* Fixing help messages, fixing argument checking, moving help to it's own function

* Adding create_bill functionality, update help and opts as needed

* Adding 1st rev of manage_bills.php

* Stlye fixes

* Freshinging PR 7633. Changing -r to -f, to be less confusing. Adding code style changes as per @laf's suggesting

* Adding check to ensure -i is set via cli

* I'm stupid
2018-03-28 22:44:32 -05:00
Kevin Krumm
9e112bf675 docs: add FAQ for Device Type (#8482)
* docs: add FAQ for Device Type

* fixed typos and etc
2018-03-28 22:24:37 -05:00
Neil Lathwood
07ee21b04d fix: Fixed and improved toner discovery (#8428)
* fix: Fixed and improved toner discovery

* Update konica data
xerox tries to insert too long of descriptions.  Lets remove the part and serial number, they are ugly to look at in the ui.
2018-03-28 22:13:45 -05:00
Tony Murray
fb701bc1b4 Defaults for alert collection rules (#8474)
Better error message if rule with same name exists.
2018-03-28 22:11:57 -05:00
Tony Murray
d91fe84fc3 Change the default alert delay to 1m (#8462)
Add regex type for numbers
Tooltips for all alert rule dialog items
2018-03-28 22:10:54 -05:00
PENorris
7ea189745d Bumping CISCO-PRODUCTS-MIB to newest release (#8483) 2018-03-28 21:45:01 -05:00
theherodied
e814cd8e34 Fixed missing mib dir in raritan definitions (#8476)
* Add mib dir that was missing

* Fixed missing raritan mib dir in definitions
2018-03-26 20:50:17 -05:00
Wheel
1b4e7b3680 docs: Debian stretch RRDcached settings (#8470)
* Debian stretch settings

* Update RRDCached.md

* Update RRDCached.md
2018-03-26 20:09:38 +01:00
Michael Corcoran
97d58cc121 fix:: Fixed display of WD drives for smart application (#8471)
WD drives have a dash in the serial number, e.g. WD-WCCXXXXXXXXX.
The librenms-agent script changed to using serial numbers in
librenms/librenms-agent@3a84624615
As we split the name by the same char, we discarded everything after WD,
which made all WD drives in the system appear as one, and broke the generated
links.
2018-03-26 14:36:38 +01:00
Neil Lathwood
8ec6fc03d6 Fix hiveos detection to make it more strict (#8472) 2018-03-26 14:23:13 +01:00
priiduonu
a1999c42e2 device: Updated moxa-etherdevice hardware/software/version detection
* Update moxa-etherdevice.inc.php

Would rather rely on `sysObjectID` when getting the hardware/software information as the `sysDescr` may be changed through the web interface of the device. Use numeric OID-s only.

* Update moxa-etherdevice.inc.php

Converted separate `snmp_get` calls into a single `snmp_get_multi_oid` call.

* Update moxa-etherdevice.inc.php

Unset variables at the end.

* Update moxa-etherdevice.inc.php

Unset multiple variables at once.

* Update moxa-etherdevice.inc.php
2018-03-25 21:57:13 +01:00
Maurice den Braber
9f5b42b028 webui: Allow full search on devices page (#8364)
* Update devices.inc.php

* Update devices.inc.php

* Replace $_POST with $vars

Better protection for SQL injection attempts; Need to verify other files for same issue.

* Fixed whitespace.

*sigh*

* More search options & sql injection fixes.

+Allow full search on devices page;
+Allow sysName search on alertlog page;
+Allow sysName search on alerts page;
+Allow sysName search on eventlog page;
+Allow sysName search on poll-log page;
+Allow sysName search on ports page;

*Replaced all occurrences of $_POST with $vars in librenms/html/includes/table. ($vars are sanity-checked).

* Whitespace fix

* Fixed $where & $param

* Add files via upload

* Whitespaces....

Sometimes you want'em, sometimes you hate'em.
2018-03-25 21:50:09 +01:00
Andrew Steen
2044f9bd14 device: Added QFX5100-96S8Q to rewrites.php (#8466) 2018-03-25 21:46:06 +01:00
priiduonu
af09e994e9 device: Added hardware and firmware detection for Hanwha Techwin devices (#8468) 2018-03-25 21:23:55 +01:00
theherodied
2537291734 nimbleos Changed to bit shift high << 32 and add low. Changed over graphs. (#8411)
* Changed to concat 32bit high.low counters

* Changed to concat 32bit high.low counters

* Correction. Needed to bit shift.

Correction. Needed to bit shift << 32 on high and add low.

* Correction. Needed to bit shift.

Correction. Needed to bit shift << 32 on high and add low.

* Added storage removed processor and memory

No point in processor and memory until nimble supports it. Added stroage to overhead.
2018-03-23 15:23:02 -05:00
Neil Lathwood
4c2822fe77 device: Improved detection for dlink and dlinkap devices (#8447) 2018-03-23 15:04:25 -05:00
Tony Murray
94f5ed67c5 Remove alert.macros from db schema again. (#8460)
Only affects new installs.
Leave dynamic config settings.
2018-03-23 18:56:27 +00:00
papatango71
7ed7885ca7 Add ifAlias to tag influxdb port data (#8461)
* Update ports.inc.php

Adding ifAlias to the $tags that are sent into influxdb

* Remove space
2018-03-23 12:43:50 -05:00
Neil Lathwood
41dbc3547d device: Added detection for Raritan KVM and EMX devices (#8279) 2018-03-23 12:26:09 -05:00
Neil Lathwood
e0589e0efe Added better detection for HiveOS devices (#8277)
* device: Added better detection for HiveOS devices

* Added MIBs for later use
2018-03-23 12:25:46 -05:00
Tony Murray
0d4a403253 Fix GenSQLOld() (#8459) 2018-03-23 14:39:50 +00:00
Tony Murray
333efe1402 Query builder fix root OR with more than one rule (#8457)
pushed the first recursion loop down, makes the code cleaner.
2018-03-23 14:39:13 +00:00
Tony Murray
0c0a70cc39 fix: Fixed validation sql for primary keys and first columns (#8453)
* Fix validation sql for primary keys and first columns
Remove extra space in generated sql :D

* Update Database.php
2018-03-23 07:51:34 +00:00
Neil Lathwood
faf48311b2 refactor: Small improvement to per port polling (#8431) 2018-03-22 13:40:11 -05:00
Neil Lathwood
9019f6c599 device: Added additional detection for Calix B6 (#8445) 2018-03-22 13:38:21 -05:00
Neil Lathwood
544b363951 alert: Added support for disabling recovery notifications (#8430)
* alert: Added support for disabling recovery notifications

* reversed use of recovery

* removed debug + small update
2018-03-22 12:38:16 -05:00
Jarod2801
268e7c1ed4 Added detection for Ciena 8700 (SAOS 8) (#8442)
* Update ciena-sds.yaml

Added sysObjectID for Ciena 8700 (SAOS 8) device.

* Add files via upload
2018-03-22 09:17:27 -05:00
ospfbgp
dba3f3fdfd device: Update avaya-vsp.yaml to reflect new vendor name (#8373)
* Update avaya-vsp.yaml

Extreme purchased the Avaya network assets and so I need to rebrand the VSP to be Extreme.  I am changing the icon to be Extreme.  I am also adding support for the 8404c which is  sysObjectID .1.3.6.1.4.1.2272.220

* Create avaya-vsp_8404c.snmprec

need to add a new vsp 8404c chassis support for avaya/extreme

* Added generated json file

* Udated test files
2018-03-22 08:37:12 +00:00
Slashdoom
308d43f07a docs App doc fix (#8448)
* small fixes to apps doc

* small fixes to apps doc
2018-03-22 08:33:28 +00:00
Mike Rostermund
e13920cdc8 Fix typo (#8444) 2018-03-21 15:10:20 -05:00
Neil Lathwood
8378834918 fix: Restored config items in sql queries (#8443) 2018-03-21 19:44:12 +00:00
Steven Barnes
a1d80e3940 Small edit (#8438)
Can't forget that semicolon.
2018-03-21 17:37:11 +00:00
Tony Murray
f950bb63e5 Don't break the webui when there are broken sql queries. (#8436) 2018-03-21 17:36:17 +00:00
mikeSimonson
607a7f801d Updating the mibs file from vmware (#8388)
The files where retrieved from the vmware provided mibs at
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1013445
2018-03-20 23:31:14 +00:00
Søren Rosiak
26bcf89b76 fix: Change rootPort DB data type (#8404)
* fix: Change rootPort DB data type

* Updated schema
2018-03-20 14:01:08 +00:00
James Long
aefc224a0a feature: Improve LDAP filters for getUserlist and getUserlevel (#8398) 2018-03-20 13:20:11 +00:00
Tony Murray
8883dde9bd Alerting, actually generate SQL (#8415)
* Alerting, actually generate sql.
Only unquote things that are actually numeric

* Fix merge
2018-03-20 12:49:57 +00:00
priiduonu
40c5f5601e Update MoxaEtherdevice.php (#8409)
No special case needed as we have `sysObjectID` already.
2018-03-20 07:36:22 -05:00
Tony Murray
8c94ccf4d6 refactor: Use custom phpcs ruleset for LibreNMS (#8418)
* Use custom phpcs ruleset for LibreNMS
PSR2 with exclusions

* Don't check line length

* Restore build_excludes()
Drop influxdb lib exclusion

* Fix whitespace
2018-03-20 11:32:52 +00:00
Tony Murray
a9e31dca0e feature: Print mysql errors in debug output. (#8414)
* Print mysql errors in debug output.

* drop debug flag

* Fix sensor order...
2018-03-20 11:05:23 +00:00
Tony Murray
2f25d11747 More complete query builder parsing (#8422)
* fix like and is null operators

* Add between operator support

* Can't have one if ($expand) clause

* fix up empty, add tests

* Use single quotes for strings

* Fix moxa sensors order

* Fixed travis
2018-03-20 10:54:02 +00:00
Tony Murray
8cc8eb8dd2 refactor: Use elseif instead of else if (#8417) 2018-03-19 21:40:17 +00:00
Tony Murray
10237ea097 Update screenos data (#8410) 2018-03-19 21:37:19 +00:00
theherodied
95f6f7b44d Updated command line switches (#8423)
New command line switches -w for warning and -c for critical added.
2018-03-19 21:18:13 +00:00
priiduonu
f68f4b2240 newdevice: Added support for Moxa EDS-P510A-8PoE (#8384)
* newdevice: add support for Moxa EDS-P510A-8PoE

Support PoE port consumption, SFP module monitoring and power input statuses for Moxa EDS-P510A-8PoE industrial switch.

* Add Moxa EDS-P510A-8PoE MIB

* Rename MOXA-EDSP510A_8POE-V3.7-MIB.my to MOXA-EDSP510A_8POE-V3.7-MIB

* Update moxa-etherdevice.yaml

Moved MIB definitions to the top as proposed by @laf

* Create moxa-etherdevice_edsp510a8poe.snmprec

* Create moxa-etherdevice_edsp510a8poe.json

* Rename MOXA-EDSP510A_8POE-V3.7-MIB to MOXA-EDSP510A8POE-MIB
2018-03-19 20:58:41 +00:00
Mike Nowak
a83ebdc078 Fixing HP Proliant state sensors (#8315)
* Fixing HP Proliant state sensors

* Numeric state data (-e)

Update to new state style
This currently cannot be tested. We don't discover sensors until the second discovery, because we poll 'hardware' instead of discover it.

* Fix whitespace
2018-03-18 23:07:59 -05:00
Dag Bakke
af39200c41 Borderless fullscreen geographical map, with just the nodes. (#8337)
* Added a variant of map.php which allows for a borderless fullscreen geographical map, with just the nodes.

* Signed my work.

* Removed a space.

* delete whitespace

* remove whitespace

* hack to fix some tiles not loading

found the fix here:
https://stackoverflow.com/questions/36246815/data-toggle-tab-does-not-download-leaflet-map/36257493#36257493
https://gis.stackexchange.com/questions/224932/problem-with-map-tiles-loading-with-leaflet-and-bootstrap

You might be able to do something more elegant.

* added menu entry

This removes the need for setting it as a front-page. Now it can be accessed from the menu and LibreNMS can be accessed by navigating back.

* Create fullscreenmap.inc.php

Notice the line:
$pagetitle[] = 'Fullscreen Map';

* REmoved the original fullscreenmap.php

* Revert "REmoved the original fullscreenmap.php"

This reverts commit 570953c5f5.

* addded the resize event to html/pages/fullscreenmap.inc.php for proper leaflet rendering

* Removed old file

* Adjusted CSS and javascript.

* Reverting to original javascript.

* change Leaflet container CSS to white background

* Made the Geographical Map not hide the menu when not in fullscreen mode.

* Cleaned up the CSS-file a bit.

* Added a variant of map.php which allows for a borderless fullscreen geographical map, with just the nodes.

* Signed my work.

* Removed a space.

* delete whitespace

* remove whitespace

* hack to fix some tiles not loading

found the fix here:
https://stackoverflow.com/questions/36246815/data-toggle-tab-does-not-download-leaflet-map/36257493#36257493
https://gis.stackexchange.com/questions/224932/problem-with-map-tiles-loading-with-leaflet-and-bootstrap

You might be able to do something more elegant.

* added menu entry

This removes the need for setting it as a front-page. Now it can be accessed from the menu and LibreNMS can be accessed by navigating back.

* Create fullscreenmap.inc.php

Notice the line:
$pagetitle[] = 'Fullscreen Map';

* REmoved the original fullscreenmap.php

* Revert "REmoved the original fullscreenmap.php"

This reverts commit 570953c5f5.

* addded the resize event to html/pages/fullscreenmap.inc.php for proper leaflet rendering

* Removed old file

* Adjusted CSS and javascript.

* Reverting to original javascript.

* change Leaflet container CSS to white background

* Made the Geographical Map not hide the menu when not in fullscreen mode.

* Cleaned up the CSS-file a bit.
2018-03-18 22:47:06 -05:00
Robbert
7dfd0a3a89 feature: Added check_haproxy service configuration (#8412)
* Added check_haproxy service configuration.
Default configuration had -H option which isn't supported by the nagios check_haproxy plugin.

* Added check_haproxy service configuration.
Default configuration had -H option which isn't supported by the nagios check_haproxy plugin.

* Added check_haproxy service configuration.
Default configuration had -H option which isn't supported by the nagios check_haproxy plugin.
2018-03-18 21:22:01 +00:00