Commit Graph

77 Commits

Author SHA1 Message Date
crcro
7da4cca4e4 feature: new app: ups-nut (#4386)
* app: ups-nut

* newline ...

* removed code from another pr

* added battery charge status

* added battery charge status

* be happy travis...

* added UPS-nut to Applications
2016-09-12 21:59:33 -05:00
crcro
de707a259f refactor: ntp apps (#4333)
* 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
2016-09-10 07:37:00 -05:00
Tatermen
19f231d408 Freeswitch support (#4203)
* 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)
2016-08-26 12:08:48 +01:00
Søren Rosiak
edab8aa191 Merge pull request #4153 from laf/issue-4152 2016-08-21 17:05:15 +03:00
laf
ab8acf2773 Fixed ntpd application graphs 2016-08-21 14:58:02 +01:00
Tony Murray
b8e9b2d917 Implement an autoloader (#4140)
* 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
2016-08-21 14:07:14 +01:00
Tony Murray
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
Neil Lathwood
a42ba9a221 Merge pull request #4005 from adaniels21487/issue-3999
CISCO-NTP-MIB
2016-08-17 21:09:50 +02:00
Alan Gregory
772d7fa28d Added Unbound Support 2016-08-15 17:46:10 -03:00
Tony Murray
5db9256baf Fix rrd_name escaping * used with glob()
Thanks tuxis-ie for finding the issue and fix.
2016-08-12 14:42:57 -05:00
Aaron Daniels
4c060a430a - Made module generic, not cisco specific. 2016-08-12 17:21:55 +10:00
Aaron Daniels
27eb389409 Merge branch 'master' into issue-3999 2016-08-12 16:34:13 +10:00
Tony Murray
68303a96da Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-08 20:23:15 -05:00
Aaron Daniels
b9747b2002 CISCO-NTP-MIB
A new Discovery/Poller module to collect NTP statistics from devices which support the CISCO-NTP-MIB
Discovered peers are stored using components and statistics are displayed using 'applications'
A critical alarm is raised when a stratum of 16 is reported.
2016-08-09 07:14:25 +10:00
Tony Murray
ead28f6acd Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-07 08:22:32 -05:00
crcro
a2e7726cd0 fixes for general apps page 2016-08-07 06:24:34 +03:00
Tony Murray
d489554121 Merge pull request #3963 from crcro/nfs-v3-stats-fix
nfs-v3-stats fixes
2016-08-05 13:32:45 -05:00
crcro
1476650740 app-dhcp-stats initial release 2016-08-05 14:46:29 +03:00
crcro
055ea768fc fix files names/layout for app page display 2016-08-04 21:59:26 +03:00
Florian Beer
6bdcd20d94 Update device Apache graph HTML 2016-08-04 13:44:30 +02:00
crcro
7dfc4db15a app-os-updates initial release 2016-08-02 18:42:31 +03:00
Tony Murray
2c98fd7426 Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-07-26 19:29:11 -05:00
Tony Murray
465139d458 Merge remote-tracking branch 'upstream/master' into app-pdns-recursor 2016-07-23 23:44:20 -05:00
Tony Murray
94467671b3 New App: Powerdns Recursor
Polling must have access to stats for the device, port 8082 (Agent file could be added to avoid that)

**Graphs:**
Questions
Answers
Cache Performance
Cache Size
Outbound Queries

**Graph changes**
generic_multi:print_total added, allow per-dataset colors, document variables
generic_multi_line: allow per-dataset colors, document variables
2016-07-22 14:29:29 -05:00
crcro
ff5b6c9a2b app: nfs-v3-stats
Rewrite of the original nfs-stats app.
Includes more stats, nicer graphs, no more nfsstats bin requirement.
2016-07-20 02:14:30 +03:00
Tony Murray
1f5cfe283e Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-07-18 15:58:56 -05:00
Tony Murray
c18c01c83f Fix scrut issues, pass by reference 2016-07-07 21:57:18 -05:00
Tony Murray
57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
crcro
93b891b9e3 added a new application monitoring: nfs server stats 2016-07-07 11:05:49 +00:00
Tony Murray
36818e7a52 Add graphs to graphs menu page.
Use rrd_name() function
Add copyright headers
2016-06-09 00:40:04 -05:00
Tony Murray
60624c1ac0 Rrdcached application monitoring
Can collect data from the agent or by connecting directly
2016-06-08 20:48:53 -05:00
f0o
091cc822de Added Hit/Misses graphs for memcached 2016-05-05 14:47:08 +00:00
Tony Murray
b98ba8c1a4 Remove some deprecated functions 2016-04-24 01:05:14 -05:00
Richard
6f61ec37d5 Updated Apps layout to use panels 2016-02-29 13:23:42 +00:00
Tony Murray
9f22b18dc8 Split is removed in PHP7, replace with explode as none were using it as a regex.
Also fix two array keys without quotes in include/syslog.php
Fixes #2205
2016-02-25 14:34:06 -06:00
Mark Schouten
be225148ca There was one more include that screwed up the Ceph graphs 2016-02-05 14:50:27 +01:00
Mark Schouten
4150b86205 Make ceph.inc.php compatible with the new graph_array-method, which gets reset after each include. 2016-02-02 11:05:59 +01:00
Mark Schouten
24550b0c02 Fix if-then-else 2015-11-10 11:44:14 +01:00
Mark Schouten
a4eb4391c5 Add Ceph support 2015-11-10 11:10:06 +01:00
Mark Schouten
e5281fa49d Remove useless global calls and add docblocks 2015-09-01 10:14:15 +02:00
Mark Schouten
8543ca3d46 Fix some if-else-codeblocks according to codingstyle 2015-08-31 16:36:00 +02:00
Mark Schouten
822a93b509 Do not run the Proxmox-stuff unless it is explicitly enabled in the config 2015-08-31 16:34:55 +02:00
Mark Schouten
fce9b44c32 Add licenses 2015-08-31 16:34:55 +02:00
Mark Schouten
1595f03568 Cleanup and show an app-page with the corresponding device 2015-08-31 16:34:55 +02:00
Mike Rostermund
5369112d48 Fix some scrutinizer coding style issues 2015-08-04 18:36:03 +02:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Job Snijders
ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
f0o
3be0b85846 Resolved upstream-conflicts:
html/pages/apps.inc.php
	includes/polling/unix-agent.inc.php
2015-01-18 06:37:22 +00:00
f0o
dd6f1f63ff Added TinyDNS (djbdns) Graphs & Application.
Data obtained by tinystats (http://www.morettoni.net/tinystats.en.html) via check_mk
2015-01-17 19:27:44 +00:00
f0o
c9dcc96649 Added Documentation, Scrut-fixes 2015-01-17 14:09:59 +00:00