* Better sanity check of hostname when adding device.
* Style fix.
* clean() before hostname validity check. IP::isValid to support IPv6 addresses.
* Even more checks to catch invalid input.
* Long if-else, better error message.
* Code re-arranging
* fix: Added primary key to perf_times to improve DELETE performance on replicas using ROW based replication
* moved sql file
* moved sql file
* Rebased
* fixed schema
* moved sql file
* fix: improve poller validation
remove failures when there are duplicate poller entries
add warning that there are duplicate poller entries
link to the poller log in the webui
small fix to getBaseURL() to avoid exception when run from cli.
* Re-run poller cleanup to try to reduce the users with duplicates.
* feature: LDAP auth update: alerts, api, remember me
Defer ldap connection until it is needed (saves connections from pollers)
Add ability to use a bind account if the server does not allow anonymous bind.
If the server does allow anonymous bind, no config change is needed.
Use Config class
FYI, I have no way to test this.
TODO: update/validate docs
* prevent duplicate users in get_userlist()
* fix bug in Config get for auth_ldap_uid_attribute, `.` should have been `,`
Change case of uidNumber to match common configs (should be case insensitive anyway)
* revert uidnumber case changes and fix up user supplied ones as it is unintuitive that they need to be lowercase.
Add auth_ldap_binddn setting to allow more a more specific way to enter the bind user.
This has been bugging me for a while... ;)
The services container wasn't properly aligned with the rest of the boxes (e.g. Events, Syslog etc.). This small HTML change fixes that.
* Revert "Revert "feature: Allow snmpget in os discovery yaml (#7558)" (#7576)"
This reverts commit 426916dbe4.
* Revert "fix: lldp find_port_id finds not the most correct port (#7564)"
This reverts commit 7e05fff615.
* Revert "fix: Update RFC1123 Hostname Check (#7572)"
This reverts commit ebcfa45a93.
* Revert "docs: updated info for graylog (#7538)"
This reverts commit 6fab5166c5.
* Revert "Revert "feature: Allow snmpget in os discovery yaml (#7558)" (#7576)"
This reverts commit 426916dbe4.
* Revert "fix: lldp find_port_id finds not the most correct port (#7564)"
This reverts commit 7e05fff615.
* Revert "fix: Update RFC1123 Hostname Check (#7572)"
This reverts commit ebcfa45a93.
Order statements to give some results precedence over others.
Union the results but limit 1 so we can stop when we get the first result.
Checking if variables doesn't work very well without the device_id
* Update RFC1123 Hostname Check
The regex was wrong. It failed to match devices like `cisco-3750x` even though it is a valid hostname.
I picked this regex from the RFC1123 documentation, and updated it.
* Update CommonFunctionsTest.php
Update tests
* Updated to allow domains ending with a dot
* Added support for ping only devices.
* Renamed sql-schema/206 to 207.
* Discovery tried to detect the OS when it shouldn't.
* Updated db_schema.yaml
* Added ping icon.
* Don't show unused graphs and tabs when SNMP is disabled.
* Allow the user to specify OS of ping only devices.
* Removing custom OS now changes it to 'ping'.
* Removed unnecessary use of mres().
* UI select box for SNMP enable/disable.
* Hide device_ping_perf if ping is disable on device.
* Fixed SNMP settings update status messages.
* Added functionality to add ping only devices via the web ui.
* Added ping only option to addhost.php
* Added ping only support to snmp-scan.py
* Moved sql 208 to 211
* Fixed scrutinizer issues.
* Fixed broken ossearch.
* Added ping only support to the API.
* Updated API doc.
* Added (optional) to OS and hardware description. Hid Port Settings, Applications, Modules, Storage, Processors, Memory and Components from the edit menu
* Style fix.
* Updated ping icon.
* clean() instead of mres(). More escaping. Better help in snmp-scan.py and addhost.php
* Fixed scrutinizer issue.
* Always try SNMP in snmp-scan.py, new option for it in addhost.php. Slice instead of chunk in ajax_ossuggest.php. Other minor style changes.
* Updated sql modifications to insert the new column in the same place as in db_schema.yaml.
* docs: Weathermap fix for configs dir
Instead of setting the ownership of the Weathermap/configs directory to apache or www-data, leave it as librenms and chmod 775 librenms/html/plugins/Weathermap/configs
The apache user should already have librenms as a secondary group, so just granting group r/w permissions fixes access for Weathermap and prevents validate.php from complaining. @robdb
* Update Weathermap.md
* Update Weathermap.md
spelling fix
* Update Weathermap.md
added "WeatherMappper"
* Update Weathermap.md
* fix: fix a couple of OS cache invalidation issues
Fixes issues where we might be using outdated os definitions.
* use Config and fix style issue
* only pull in settings from config.php (otherwise will possibly contain populated os config)
* docs: Weathermaps minor fix to the steps
minor fix to the steps cut down to 5 steps. and added in example pic.
* network weather map
example network weather map picture
* Update Weathermap.md
added pic to .md
* Delete network-weather-map.PNG
* network weather map example pic
example pic.
* changes to steps
* Update Weathermap.md
added or to user
* Update Weathermap.md
* Update Weathermap.md
* Update Weathermap.md
fixes for grammar and spelling.
* Update Weathermap.md
* feature: Allow snmpget in os discovery yaml
Convert all remaining os except airos.
Affected OS: asuswrt-merlin, ddnons, dsm, extrahop, huaweiups, ibmtl, pcoweb, pktj, qnap, remoteeye4, sentry3, sentry4, tomato
There should be not change in detection.
* Fix, asuswrt-merlin and tomato with snmpsim. May not have been an issue with actual devices because of -Oa leading " was a bit odd.
* missed file
* updated default list of modules in poller and discovery support docs.
* changed PollerSupport.md and DiscoverySupport.md to relect config.php as the correct location for local per-os module overrides
* removed 'tnms-nbi' module from docs and from defaults file. Removed 'wifi' from docs.
* Fix Moxa cpu polling problem, also add support for EDS-G508E, and power graphs
* Dynamic discovery support for EDS-G508E-T and IKS-6726A-2GTXSFP-T
* fixes as requested
* Added another snmp_cache_multi_oid and fixed a typo
* Revert back to old file name
* Add ability to get Freeswitch application data via snmp
On your Freeswitch server install the script from
https://github.com/librenms/librenms-agent/blob/master/agent-local/freeswitch
into /etc/snmp, make it executable and adjust it to your installation.
Configure your snmpd to use the sript as an extension. For example on Debian
add the following line to your /etc/snmp/snmpd.conf:
extend freeswitch /etc/snmp/freeswitch
Activate the Freeswitch application for your server on your LibreNMS server.
it should now start to receive data from your Freeswitch server via snmp.
* Graph "Calls" and "Channels" of Freeswitch agent
The Freeswitch agent sends Calls and Channels count and they weren't graphed
up to now. This is especially useful in settings where the Freeswitch
server does not act as a Gateway and thus the agent does not sent
Incoming and Outgoing Call numbers.
* Cleanup commented code and add myself to authors
* refactor: convert validations to modules to prep for gui integration
* accidentally dropped, schema update
* fix accidental output to webui
* mention discovery-wrapper.py and re-arrange.
* refine some fix statements
* rename the Config validation group to Configuration.
* fix some scrutinizer issues
remove as many local functions from validator.php as possible
move extensions from pre-check
remove duplicate timezone check
looks like there is some db schema differences between mariadb 10.1 and 10.2, investigating
* mariadb version diff take2
* Check schema version first for database.
Remove stop to go back to command line for install docs.
Add helpful link when there is no devices added to /addhost
* fix incorrect validation for empty string defaults
* Fix style
* Add additional file permissions checks
* catch exception and fail for invalid timezone
Change visuals a bit.
* add php version warning
* fix space
* Added Mitel Standard Linux OS Support
* removed duplicate svg, added snmprec test file, un-enable vmware discovery module
* msl os definition/polling improvements, mitel mib_dir creation