* newdevice: improve comware detection
Only some H3C Comware devices were detected as comware, detect them all.
* Update the test data
FYI, C1234 was just a nonsense string
* refactor: Moved ifLabel -> cleanPort and updated the usage
* added list of tags allowed
* few updates as per comments from @murrant
* Added simple unit tests
* double display for javascript popover
* Remove ifNameDescr() function
Fix realtime port page
* remove accidental temp code
* Remove double display calls in ajax tables
* Fix Generex votage sensor divisor and add an exclusion option
* Allow OID to be used to figure out if we need to change the divisor.
* Missed current and found bugs while I was there.
* Use returns swap oid logic
* New event log severity model
* Revert "New event log severity model"
This reverts commit 0783527af8.
* New event log severity model
* Fixed spaces vs tabs
* Learning the format requirements
* Learning the format requirements
* Moved the colours in to the stylesheet
* change SQL file to stop conflicting
* refactor log_event so severity isn't last, but reference is.
* keep having to move the file due to new PR conflicts
* Revert "keep having to move the file due to new PR conflicts"
This reverts commit f3030e7218.
* extended support to dashboard and eventlog page
* formatting
* refactor: Tidy up sensor discovery
* more files
* removed uneeded files
* updated array check
* updates for linux/supermicro
* small changes
* Update linux.inc.php
* Add supermicro temps back to linux.inc.php
* No need for is_file on rfc1628.inc.php, it exists
* Revert rfc1628 change
* Fix whitespace...
* rebased
* fixed $valid data not being passed to new sensors() function
* fixes#4946
first try, should be checked first
only discovery first
* add OS modules status indication
* add debug output
add os poller module support
* fix some whitespaces
* fix missing semicolon
* fix some whitespaces
* Modify the modules page
It now shows unset for unset device settings.
Also, `$os_module_status = $config['os'][$device['os']]['poller_modules'][$module];` doesn't work like you would expect. Fix that behavior.
* Fix mangled tabs
* optimize debug output
add docs
* text highlighting
* Streamline docs #1
* Update docs
* Spell out Global, OS, Device.
* Implement an autoloader
When cleaning up classes for psr2, things got a bit unwieldy, so I implemented a class autoloader.
I created a PSR-0 compliant LibreNMS directory and moved all classes there that made sense.
Implemented LibreNMS\ClassLoader which supports adding manual class mappings
This reduces the file includes needed and only loads classes when needed.
* Add teh autoloader to graph.php
* Add a small bit of docs
Fix incomplete class in includes/discovery/functions.inc.php
Use exceptions for addHost()
Gets rid of silly mixed return and only returns the device_id. Throwing an exception if we run into any issues.
Slightly modifies api add host output again to include device_id
Update addHost() to return either device_id or a string
modify print_error(), print_message() to allow for $quiet variable
Only call addHost() once in addhost.php, if the snmp version isn't set, addHost will cope
Fix up snmp-scan.php and discovery-protocols.inc.php to detect when a device already exists
change in ip_exists() to make it more readable