* add the poller for portactivity
* add the ability to get monitor ports for portactivity
* add the graphs for displaying stuff for the portactivity app
* add the portactivity app page
* update the docs for Portactivity
* remove extra line
* minor doc update for Portactivity
* add update_application line
* convert to use json_app_get
* convert curly brackets to square
* style fix
* remote error, errorString, and version after they stop being important so they are not processed
* add alert rule examples
* add the poller for portactivity
* add the ability to get monitor ports for portactivity
* add the graphs for displaying stuff for the portactivity app
* add the portactivity app page
* update the docs for Portactivity
* remove extra line
* minor doc update for Portactivity
* add update_application line
* convert to use json_app_get
* convert curly brackets to square
* style fix
* remote error, errorString, and version after they stop being important so they are not processed
* add alert rule examples
* remove dump of get_portactivity_ports function added during rebase
* update to the current json_app_get
* add portactivity snmprec
* add the portactivity test data
* whoops bad merge when rebasing... fix
* minor formatting cleanup and add a missing comma
* fix some odditities with what one of the tests is doing
* whoops... include the use for the exception
* set the response to okay
* attempt to make snmpsim array check happy again
* the json now lints
* more making metric testing happy
* one more update to make travis-ci happy
* now flattens arrays also add array_flatten
* rename array_flatten to data_flatten as pre-commit chokes on it as laravel has something similarly named
* go through and properly add all the metrics
* tested with the newest one and it works
* whoops, clean up json and remove prototype that was used when putting it together
* doh! make it happy with laravel now
* see if a minor changing in formatting for the numbers makes the polling unit test happy
* order them properly
* remove a comma
* a few more minor fixes
DO NOT DELETE THIS TEXT
#### Please note
> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.
- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
PR 183 from librenms-agent contains the script to make this work
https://github.com/librenms/librenms-agent/pull/183
* Increase description length in graphs
* Add SMART attr177, previously recorded, but not displayed
* Change the multi-graph titles to better reflect their content
* Change SMART attr numbers to a more human-friendly description
* Minor text corrections
* 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
* add the ZFS graphs
* And now the ZFS non-graph stuff.
Still need to move it over to using JSON.
* Now uses JSON.
* use stripslashes as SNMPD loves to slash up the JSON
* Document ZFS.
* very minor formatting cleanup
* minor formatting cleanup and remove a bit of code from when I was mucking around debugging it all
* 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
* add BIND named poller
* add BIND named graphs
* add BIND stuff
* add the color pallete used by this
* add app support
* white space cleanup
* document the bind stuff
* expand the linux package stuff a bit
* note the agent and zero_stats value
* now include the $mib stuff
* white space cleanup
* whoops, add the update app bit
* correct a error added when merging
* readd copyright info
* note myself in the copyright info
* update
just realized the pull script is a bad idea. not really portable. no
nfsv2 stats for centos 7+
* some php errors
* fixed v4ops
removed nfs-server.sh, as only cat /proc/net/rpc/nfsd is needed as an
extend.
* split rrd
split rrd to store and pull them seperatly
* scrutinizer-ci fix
scrutinizer-ci fix
* phpcbf
* messed up
* stuck, please ignore
* applied reviews murrant suggestions
applied reviews murrant suggestions
* dirty scope
dirty scope was the issue
* style fix ?
* style PSR2
* file handle chart
* fixed style + added documentation
* applied review tasks by murrant, thx murrant!
* applied laf's review, also added tabs in the view to reduce the amount of graphs per page
* opengridscheduler job tracker
* wrong copy of file
* applied laf's review. Thx laf!
* now including the modified files; thx laf for the review!
* Update Applications.md
* now creates a component with all the DBs in it
* add the function get_postgres_databases
* add multi DB support to the Postgres device app page
* add multi DB support to the Postgres graphs
* whoops removed the udpate bit, readd it
* white space cleanup
* now use json for storing DB names
* provide the list of DBs in a cleaner manner
* Update postgres.inc.php
* add get_fail2ban_jails functions
* now do component stuff for fail2ban for tracking jails
* now use get_fail2ban_jails for getting a list of jails
* readd the accidentally deleted update app bit
* white space cleanup
* Update fail2ban component code
* remove unneeded variable
* add single pool based poller for php-fpm
* add the page for php-fpm
* add graph for php-fpm
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
* use named OID as suggest by @laf
* document PHP-FPM monitoring
* link it in the index
* clean up the named oid
* add how to grab the script in question
* add f2b poller
* add f2b app page
* add f2b graph
* add fail2ban notes
* minor formatting cleanup
* ...more formatting cleanup
* rename it so it can be called via the app page
* Revert "rename it so it can be called via the app page"
This reverts commit 0bde88a038.
* *rename it so it can be called via the apps page
*setup the apps page to call it
* renamed the graph
* now include fail2ban in the apps properly
* correct the wget command so it does not stomp on phpfpm-sp
* update the fail2ban poller for the newest fail2ban script and now build multiple RRDs
* update for now graphing firewalled and banned
* update fail2ban docs to match the newest snmpd extend method
* search automatically for jails and graph them
* graphs the currently banned for a fail2ban jail
* change the tital of the graph for the total banned to make it more descriptive
* Add a explanation of the two variables in the total graph.
* misc. white space cleans ups
* misc. white space cleanup
* minor white space cleanup
* correct descr lenght
* correct descr lenght
* Update fail2ban.inc.php
* Use rrd_name properly
* note the cache file bits
* make caching optional and note why
* Update to new RrdDefinition class
* And the use statement ;/
* Messed the second rrd_def
* correct two minor errors that did not seem to be causing issues
* don't use $vars as per pull #5994
* don't use $vars as per pull #5994
* fix jails graphs
* Remove loops and temp variables
* whitespace
* Change graph so we don't get fractions
* add single pool based poller for php-fpm
* add the page for php-fpm
* add graph for php-fpm
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
* use named OID as suggest by @laf
* document PHP-FPM monitoring
* link it in the index
* clean up the named oid
* add how to grab the script in question
* updated nicecase function for ntp server and client app
* ntp applications refactoring
* removed agent for ntp-server: reported as not working
* removed ntpd from agent polling. thx @murrant
* Added support for freeswitch via unix_agent
* Fixed display of graphs on apps overview
* Removed tab indents
* Fixed not sending port_descr_type (#4188)
* Removed / Updated version info to just be LibreNMS (#4193)
* Remove requirement for ['enable_printers'] (#4192)
* ricoh devices returning garbage as toner level (#4180)
* ricoh devices returning garbage as toner level
* ricoh toner extra check
* more ricoh rules
* Fix remote rrdtool_check_rrd_exists() calls (#4196)
It was comparing with the full name when rrdcached only printed out the relative name.
Thanks mikmak on irc for lots of troubleshooting.
* check for no motd line (#4200)
Fixes#4199
* Only push the toc down, not the content
the toc is on top when the header switches to two lines, so we only need to push that down.
* IRC bot - detect lost communication
Force reconnect if no data received from server for config['irc_conn_timeout'] seconds (that may happen when network/VPN goes down - in such case IRC bot won't get immediately notification that connection was lost, at least till it tries to send anything).
* Update irc.php
* Update irc.php
* Update irc.php
* Update irc.php
* fix ifName randomly defined, breaking influxdb updates (#4202)
* IRC bot - allow to disable ssl check
In PHP 5.6.x stream wrappers verify peer certificates and host names by default when using SSL. That fix allows to turn off that verification with config option $config['irc_disable_ssl_check'] = true;
It is useful when you want to use self generated certificate for your own IRC server.
* Update irc.php
* More more docs (#4197)
* Updated docs + some small code changes
* Added validating code doc for developers
* Doc updates
* Updates and improvements
* Add ntpd to the list of agentapps (#4194)
* Fix deprecated constructors
This small change should't prevent easy updates to libraries and fixes the lint check on php7
* Don't allow php7 failures anymore
* Fix defunct process issues: create Proc class (#4210)
* Proc class
Encapsulate processes in a class, when they go out of scope, we can use the __destruct() process to make sure the process terminates.
* Fix rrdtool_last checks failing
* Don't close rrdtool in rrd_graph
Try to start rrdtool process if they haven't been started yet
Remove some extra debug output
* phpdocs added
several cleanups
should still be functioning the same
Only open one rrdtool process for graph.php
* include common.php in definitions.inc.php (#4198)
definitions.inc.php makes a call to dbFetchRow, which uses c_echo()
It is safe to include common.php here as it only has function definitions.
* Use pre-commit.php in for travis-ci tests (#4212)
* 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