Commit Graph

14618 Commits

Author SHA1 Message Date
Misha Komarovskiy
df731c165c refactor: Rename cisco-vrf to vrf and enable discovery for junos os (#8033)
* device: Enable cisco-vrf discovery for junos os

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* refactor: Rename cisco-vrf module into vrf

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-17 12:09:19 +00:00
Aldemir Akpinar
76587065cc webui: New tab in "manage host dependencies" to clear all children of a parent (#8085)
* Add dependency info for api

* webui: new tab to clear children of a parent device

* Fix travis CI errors
2018-01-17 11:06:32 +00:00
Neil Lathwood
86ff67c02e
removed some unused files in mib dir (#8096) 2018-01-17 10:27:22 +00:00
Zmegolaz
3740467858 Added settings validations. (#8037) 2018-01-16 22:21:21 -06:00
Paul Heinrichs
d4bd566d36 newdevice: Added Support for cambium PTP 300, 500, 600 and 800 (#7998)
* Add Support for cambium-ptp500

Added mibs for ptp500, ptp300

* ptp500 - Switch modulation to a state

* Update label on 500 to 500/300

300 and 500 use the same mibs

* Request changes

Added overhead graph's to all current ptp devices

* wrap text in quotes

* Fix discovery bug

* Ptp600 support

* PTP800 Support

* Fix ptp600 issues

* Remove meh copy and pasta

* Remove modulation from OS file

* Update value modifiers / typos

* +x rename-mibs.php

* Modify cambium mibs
2018-01-16 22:52:11 +00:00
barciella
afc6137146 Fixed documentation. This way autodiscovery with snmpv3 works (#8091) 2018-01-16 12:21:44 -06:00
Aldemir Akpinar
788c0bd6fb api: Added dependency info for devices/device api calls (#8058)
* Add dependency info for api

* Fix travis CI error

* Changed to dbFetchColumn

* Add hostnames for parent devices as well as IDs

* Merged the queries as laf suggested
2018-01-14 20:43:55 +00:00
Neil Lathwood
7a76fa7216 fix: Fixed api response for failed device renames (#8081) 2018-01-12 22:26:57 -06:00
Tony Murray
44c1ee5f43
Fix tests... (#8080)
Don't exit when we can't add a device, fail :)
2018-01-12 15:24:12 -06:00
Neil Lathwood
8ec6f138bc Added arbos json data for tests (#8077) 2018-01-12 08:20:28 -06:00
Tony Murray
9356d527e7 Drop tests for unsupported php versions (#8070) 2018-01-12 14:11:04 +00:00
Adam Bishop
77e192208a device: Added support for ArbOS (#8055) 2018-01-12 09:02:24 +00:00
Martin Zatloukal
9a0b06e4de device: Added processor and mempools for EdgeCore switch (#7850)
* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Update edgecos.inc.php

* Add files via upload

* Create test.txt

* Add files via upload

* Delete test.txt

* Add files via upload
2018-01-11 22:26:04 +00:00
Tony Murray
cabc0eb71d feature: Quick script to rename mibs to their proper names (#8068)
So I can stop re-writing it ;)
2018-01-11 22:19:13 +00:00
Neil Lathwood
d26d142700 webui: Added Oxidized config validator (#7983)
* webui: Added Oxidized config validator

* final updates

* small changes like box height + indicate config is valid

* docs + small changes
2018-01-11 07:21:05 -06:00
Tony Murray
e11e84f2ee
snmp_walk remove multiple No more variables (#8050)
Optimize code so it is a faster when no more variables is not present.
Only saving 10s of microseconds, but better than an increase.
2018-01-10 15:30:19 -06:00
Tony Murray
d515f5043e refactor: Move install to php53 branch if running an unsupported version of PHP (#8042)
* Move install to php53 branch if running an unsupport version of PHP

* Update validate

* Move PHP version check after update check.  This will prevent us from moving no update users to the php53 branch.

Hopefully if daily.php -f update fails it returns a non-zero and we can move them to the php53 branch still.

* Wiggle things around more.

* Also, send release installs to the php53 branch.

* Set notification error for old PHP version.
2018-01-10 14:40:58 +00:00
Peter McNabb
2fb8dd7904 fix: ldap-authorization should be considered external (#8047)
* fix: ldap-authorization should be considered external

When sso auth type was added (1c6b7a9), some code for getting a username
was moved into HttpAuthAuthorizer. LdapAuthorizationAuthorizer uses the
same process to get the username and needs to be updated as well.

* Use common implementation of getExternalUsername

Authorizers get the default implementation by setting AUTH_IS_EXTERNAL.
ADAuthorizationAuthorizer is another candidate.
2018-01-09 16:13:47 -06:00
Lee Keitel
803e5419f3 Fixes #8064 - Use correct array key for uptime value (#8065) 2018-01-09 22:11:17 +00:00
crcro
7e03905e63 webui: Small graylog cleanup (#8057) 2018-01-09 20:47:33 +00:00
crcro
d85a228d5b webui: Small eventlog cleanup (#8056)
* include status badge in first datetime col

* code formatting
2018-01-09 20:36:28 +00:00
Neil Lathwood
6e134ac4e2
fix: Moved sysDescr snmp call to snmp_get_multi_oid() in core poller module (#8062) 2018-01-09 20:29:57 +00:00
Neil Lathwood
0a7ec12fd9
fix: Fixed the default fping config + changed variable name (#8060)
* fix: Fixed the default fping config and added docs on caveats to changing timeout

* millisec -> interval

* removed retries config option, no needed

* Update Performance.md
2018-01-09 20:16:48 +00:00
Tony Murray
b2a54dae3b
Testing updates: module testing and collect only (#8063)
* Testing updates module testing and collect only

* cache clear no-longer needed.
2018-01-09 11:40:26 -06:00
Neil Lathwood
ecbbc0e3e5 feature: Clear OS defs cache on poller/discovery debug (#8061) 2018-01-09 10:51:26 -06:00
Tony Murray
dea1a26ee6 docs: Emphasize snmpsim is required for most tests (#8059) 2018-01-09 16:36:39 +00:00
Tony Murray
817639bd92 webui: Added OpenWRT icon (#8054)
fixes #7988
2018-01-09 16:36:16 +00:00
mattie47
d20508153c Update Initial-Detection.md (#8053)
* Update Initial-Detection.md

While trying to add support for awplus under https://github.com/librenms/librenms/pull/7670, I was advised to delete the os_defs.cache file. 

This was hugely helpful, as I wasted a number of hours trying to figure out why I couldn't get any changes to the OS configs to work.

* Small updates
2018-01-09 09:33:09 -06:00
Andrew Holmes
e3720235f4 Fixed UniFi AP hardware type and firmware version retrieval (#8005)
* Fixed UniFi AP hardware type and firmware version retrieval, enabled snmpbulkwalk

* Modified to pull from appropriate OID depending on sysObjectID

* Revert "Modified to pull from appropriate OID depending on sysObjectID" - typos in snmp_get_multi() commands

This reverts commit 5c2b6039f4.

* Revert "Revert "Modified to pull from appropriate OID depending on sysObjectID" - typos in snmp_get_multi() commands"

This reverts commit bccf301a8b, so I can submit everything in the one commit

* Revert "Modified to pull from appropriate OID depending on sysObjectID"

This reverts commit 5c2b6039f4 due to errors in code

* Revert to commit a8d380f and then apply changes to account for both old and new agent responses.

* Pull IEEE802dot11-MIB values via snmp_getnext() & sanity check returned results

* Fixed typo in previous commit - [0]s where they don't belong.

* Updated to take advantage of new snmp_getnext_multi() function

* Updated to account for changes to snmp_getnext_multi in pr#8052
2018-01-08 23:48:04 -06:00
Andrew Holmes
81fbe95039 Add snmp_getnext_multi() function (#8052)
* Added snmp_getnext_multi() function using syntax of existing snmp_get_multi() function

* Fixed typo in comment and spurious newline in file

* Removed return of index value

* Correct statistic
2018-01-08 23:39:58 -06:00
Alan Gregory
a7aaf11213 device: Added Hillstone StoneOs detection (#7982)
* Added support for stoneOs

* added Hillstone logo

* added snmp tests

* Updated logo and image

* Removed unnecessary sysdescr match.

* Fix format.

* Removed svg atributes

* Svg files reduced.

* Added test data.

* fixed sysObjectId -> sysObjectID

* Updated test json
2018-01-08 21:48:29 +00:00
crcro
c14acfd410 webui: ports pages cleanup (#8040)
* ports pages cleanup

* removed useless html span tag
2018-01-08 13:54:21 -06:00
Zmegolaz
2c9468979f Load device attributes before load_os() in device_by_id_cache(). (#8044) 2018-01-08 13:37:34 -06:00
Zmegolaz
eac128aca8
Fix: Override -H for check_load service. Fixed backslash escaping. (#8020)
* Added check_load.inc.php.

* Combined load graphs. Removed extra backslashes from all graphs. Escaped backslash in mysql file.

* Added a note about local only service checks to the docs.
2018-01-08 09:35:15 +01:00
Zmegolaz
4be175578b Fix: AirOS version and hardware. (#8034)
* Added more sub-oids for airos version and hardware.

* Rewrote hardware and software detection for airos to getnext.
2018-01-06 23:20:31 -06:00
Neil Lathwood
42e5819130 refactor: Updated discovery/poller to use numeric sysObjectID (#7922)
* refactor: Updated discovery to use a core module for sysDescr/sysObjectID use

* final update hopefully

* revert changes

* more changes + docs

* migrated poller to use numerical sysObjectID

* more updates for sysObjectID

* update any alert rules which might have enterprises. in

* moved schema file

* small updates

* updated getHostOS()

* scrut fixes

* updated sysObjectId -> sysObjectID

* updated sysObjectId -> sysObjectID

* updated remainder of sysObjectId -> sysObjectID

* another sysObjectId -> sysObjectID

* fixed secureplatform test data

* Fix tests: $device is not pulled from the database before polling
Also, update the db in the core discovery module.
2018-01-06 23:00:47 -06:00
Neil Lathwood
e2f122aac8
api: Added 404 fallback for bad / invalid calls (#7952) 2018-01-06 23:34:00 +00:00
crcro
364b5749ef webui: Devices header cleanup (#8039) 2018-01-06 20:17:01 +00:00
crcro
c21e9c2f4a feature: Added powerdns dnsdist application (#7987)
* powerdns dnsdist app support

* fix conflict

* added doc

* fix new lines

* alphabetic order

* no data manipulation on host side
changed rrd from gauge to counter
2018-01-06 20:05:06 +00:00
Kevin Krumm
88ecbbff24
alert rules: added Dell iDRAC alert rules (#8010)
* alert rules: added Dell idrac alert rules

to the alerts collection.

* Update alert_rules.json

* added iDRAC

fixed iDRAC naming.

* added iDRAC Global System Status Alert
2018-01-05 16:06:49 -06:00
ricardcc
fc610195f7 device: Added CheckPoint SecurePlatform support (#8000)
* Added CheckPoint SecurePlatform support

* Changed some issues

* Changed some issues

* Update splat.yaml

* Changed os name to secureplatform intead of splat

* Changed os name to secureplatform

* Changed some issues
2018-01-05 22:06:07 +00:00
Tony Murray
9b392041f4 bug: Fixed deletion of services + select query (#8030)
GROUP BY was missing a field, causing the page to not populate
Rows were missing their ID, causing them to stay there when deleted.
2018-01-05 21:34:00 +00:00
Tony Murray
181fe201fd bug: Fix mark all unread notifications (#7999)
Did not work when other users had marked them as read.
2018-01-05 21:22:48 +00:00
crcro
7460cf3604 webui: Tidy applications page to be standardised (#7994)
* enabled apps overview in top menu
unified apps page with new design

* removed commented code, added copyright

* removed copyright
2018-01-05 20:41:11 +00:00
Zmegolaz
5c4b6877b0 Fixed form validation JS. (#8036) 2018-01-05 15:04:47 +00:00
Zmegolaz
d7b4a30acf webui: Added validation for Oxidized API URL config (#7978)
* Add http:// to oxidized URLs missing them.

* Fixed typo.

* Form validation instead of backend fix.

* Don't update setting on invalid pattern.
2018-01-05 08:58:42 +00:00
Sneddo
4fc946bd21 Move ignore_storage call to discover_storage (#7973)
* Move ignore_storage call to discover_storage

* Remove long if statement
2018-01-04 22:24:06 -06:00
Søren Rosiak
dc089329b0 feature: Add Dell iDRAC Global System Sensor (#8012) 2018-01-04 21:30:52 -06:00
Søren Rosiak
495333ea71 newdevice: Improve Cisco ACS Detection (#8013)
fix #8006
2018-01-04 21:25:13 -06:00
Slashdoom
0c12fb6c94 refactoring: freeradius app metrics (#8002)
Add metrics to Free Radius app
2018-01-04 20:33:04 -06:00