Commit Graph

133 Commits

Author SHA1 Message Date
Michał Margula
c6f6cf1f09 Update apache.inc.php (#5938)
Same situation as with pull request https://github.com/librenms/librenms/pull/5919 . snmpget returns multiline output inside quotes (first and last line have quotes).
2017-02-17 22:18:02 +00:00
Michał Margula
07c9535c37 Update exim-stats.inc.php (#5919)
* Update exim-stats.inc.php

Output from debug of poller.php:

SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.3.1.2.10.101.120.105.109.45.115.116.97.116.115]
"0
0"

 exim-statsRRD[update /opt/librenms/rrd/monitoring2/app-exim-stats-5.rrd N:0:0]

So we have two resulting variables from that outpu (note additional quotes there)
$frozen = '"0';
$queue = '0"';

And it fails. My graphs contain nan instead of real values. I think same issue is with apache application.

* Update exim-stats.inc.php

Updated to remove quote from string and then convert it to integer.
2017-02-17 21:31:38 +00:00
VVelox
872eac10aa feature: add PHP-FPM support for snmpd (#5912)
* 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
2017-02-16 15:10:42 +00:00
Søren Rosiak
414efb3539 refactor: Various Code Cleanup (#5777)
* refactor: Various Code Cleanup

* moar
2017-02-05 22:37:08 +00:00
Richard Mayhew
c8ba28a1e3 feature: updated rrdcached stats app to support Fedora/Centos (#5768)
* feature: updated rrdcached stats app to support Fedora/Centos

* tabs to spaces
2017-02-04 18:19:46 +00:00
Neil Lathwood
5cdaee16f6 fix: Stripslashes from memcached polling application data #5265 (#5704) 2017-02-01 00:41:42 -06:00
crcro
a9a02a0f80 feature: Added exim-stats to applications #5008 2017-01-20 08:47:13 +00:00
crcro
db7c49225d fix as reported by @Compizfox (#5473) 2017-01-16 13:27:56 -06:00
crcro
1eca69e001 fix: Add missing ups-apcups application poller #5428 2017-01-16 10:14:16 +00:00
arrmo
0cc9e774f9 refactor: Updated Ups nut support 2016-12-20 09:34:42 +00:00
Neil Lathwood
63569b5bbe fix: Strip out " returned from Proxmox application #4908 (#5003)
* fix: Strip out " returned from Proxmox application

* updated to str_replace
2016-11-21 08:05:22 -06:00
Karl Shea
daf2cf7a24 app: Add GPSD application (#4754) 2016-10-08 21:25:50 +01:00
crcro
f87043eca7 readded ds 2016-09-24 20:09:27 +03:00
crcro
0eea180151 removed file version and unused vars 2016-09-20 22:03:30 +03:00
crcro
7d7621fd3e removed file versions from comments 2016-09-15 23:24:25 +03:00
crcro
0dd523be45 app-ups-nut update 1 2016-09-15 19:37:52 +03:00
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
Tony Murray
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01: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
Tony Murray
de9c02d66e Fix rrd_name 2016-08-21 08:06:15 -05:00
Neil Lathwood
637d01cd13 Merge pull request #4077 from murrant/ntpd-app
NTPD Application
2016-08-18 21:30:33 +01:00
Tony Murray
22de3fca31 Merge pull request #4103 from vitalisator/issue-4094
DSname too long
2016-08-18 07:45:07 -05:00
vitalisator
2ecc764c8a trim to 19 characters 2016-08-18 14:35:48 +02:00
vitalisator
6f7c62ce50 DSname too long 2016-08-18 11:26:52 +02:00
Tony Murray
984dafda4b Merge remote-tracking branch 'upstream/master' into ntpd-app 2016-08-17 15:40:38 -05:00
Florian Beer
a61c1b2ebf Add snmp polling capability for Proxmox 2016-08-17 21:56:23 +02:00
Alan Gregory
9de3d43056 Fix unused variable 2016-08-17 09:38:38 -03:00
Tony Murray
f3a78d8136 NTPD Application
Support the unix agent
Add to documention.
Renamed so it will be automatically enabled by the unix-agent.
2016-08-15 23:54:13 -05:00
Alan Gregory
8c0735d64e Fix parameter order 2016-08-15 18:17:41 -03:00
Alan Gregory
00c5c65d47 Fix array declaration 5.3 compatible 2016-08-15 18:07:36 -03:00
Alan Gregory
772d7fa28d Added Unbound Support 2016-08-15 17:46:10 -03:00
Tony Murray
f526cb7d8d Ceph: only parse ceph data
Was parsing through all agent data, rather than just ceph data.
2016-08-12 14:33:17 -05:00
Tony Murray
0bc79a3b5f put rrd_name back 2016-08-12 13:50:49 -05:00
Tony Murray
9ac73b8eb2 Fix Ceph
compact() accepts strings naming the variables, not actual variables...
2016-08-12 13:31:11 -05:00
Neil Lathwood
f02b4c9253 Merge pull request #4037 from murrant/fix-ceph-app
Fix ceph filenames
2016-08-12 17:46:45 +01:00
Tony Murray
1949f2f4ea Proxmox rrd fix
Attempt to fix proxmox rrd naming. Create a separate function to generate it's file names.
2016-08-12 11:05:58 -05:00
Tony Murray
224ebb0c0c Fix ceph filenames 2016-08-12 10:29:27 -05:00
Tony Murray
68303a96da Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-08 20:23:15 -05:00
laf
34feda8613 Fixed ./includes/polling/applications/rrdcached.inc.php for php 53 2016-08-08 20:20:18 +01:00
laf
544fd95a63 Updated to support php 5.3 2016-08-08 20:03:40 +01:00
Tony Murray
ead28f6acd Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-07 08:22:32 -05:00
Florian Beer
7d362315c6 Fix array element resolution bug 2016-08-06 01:51:53 +02:00
Florian Beer
12f441b2bc Fix array return value
Scrutinizer bug, reset() expects a reference.
2016-08-05 20:53:48 +02:00
Florian Beer
b3a5f3b61c Use unserialize() and full OID number 2016-08-05 20:37:50 +02:00
Florian Beer
6e3b01e204 Add snmp polling capability for memcache 2016-08-05 20:37:50 +02:00
crcro
1476650740 app-dhcp-stats initial release 2016-08-05 14:46:29 +03:00
Daniel Preussker
c63728c552 Merge pull request #3932 from murrant/spelling-fix
PowerDNS-Recursor improvements
2016-08-04 05:38:26 +00:00
Tony Murray
3950f9dd4c Update powerdns-recursor.inc.php
Debug print the correct url for direct connection
2016-08-02 20:42:04 -05:00
crcro
7dfc4db15a app-os-updates initial release 2016-08-02 18:42:31 +03:00