1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

196 Commits

Author SHA1 Message Date
3ce06d6def freshly initilized ZFS pulls that are not in use don't have a $data_demand_total 2019-03-17 05:55:33 -05:00
3ddb1d6be6 correct arc size breakdown 2018-04-10 22:04:07 -05:00
90fd6f60f3 Should be greater than or equal to (#167) 2018-03-23 16:24:02 +00:00
3a84624615 Replace disk identifier with disk serial in S.M.A.R.T snmp script (#164) 2018-02-27 21:10:35 +00:00
bbd3b1309a Fix Command_Timeout missing from SMART output (#163) 2018-02-18 20:33:42 +00:00
fd9fd178a4 extend: powerdns-dnsdist (#158)
* powerdns-dnsdist app

* fix script in help

* removed local data manipulation

* again name of file in script help

* removed personal api info
2018-01-06 20:06:45 +00:00
bacaca0be4 ZFS SNMP agent :3 <3 (#156)
* Add it as it currently is. Needs to be moved over to JSON

* rename it to zfs-freebsd as it is FreeBSD specific

now uses JSON

* misc. updates and document it all

* minor spelling correction
2017-12-30 11:42:37 +00:00
c7cae0765e update the fail2ban stuff (#155)
Dropping firewall checking as the new fail2ban uses pf and anchors on
FreeBSD, which while esoteric as fuck works nicely and is reliable.
2017-12-30 11:39:36 +00:00
8920cd3f29 freeradius.sh: new agent for incoming main PR (#151)
* Update os-updates.sh

* Update os-updates.sh

* Update os-updates.sh

* Create freeradius.sh

* Update freeradius.sh

* Update freeradius.sh
2017-12-12 21:13:10 -06:00
3b9d632a8d hddtemp, ignore devices not supporting SMART (#153) 2017-12-04 20:11:17 +00:00
7fb48df857 Fix: Apache SNMP extend IndexError (#116)
See issue for more information:
https://github.com/librenms/librenms-agent/issues/95
2017-10-27 07:41:05 +02:00
2996ad88b0 fix: Update mysql (#127)
Update mysql agent script based on updated changes in newest version of Percona Monitoring Plugins (Cacti template).

Changes enable correct parsing of status data for newer versions of MySQL/MariaDB database servers and should be backward compatible with older versions.
2017-10-27 07:39:09 +02:00
d0762871b4 os-update.sh: back to package management based and count fixes (#149)
* Update os-updates.sh

* Update os-updates.sh

* Update os-updates.sh
2017-10-09 20:02:05 +01:00
6a40ca1e9c fix munin agent (#148)
Without the full munin-scripts path, this script won't find munin file and return nothing.
2017-09-20 20:47:11 +01:00
1b03d2f9f7 Add Oracle Linux Distribution to distro script (#146)
* Add Oracle Linux to distro script

* Revert local change
2017-09-06 19:42:58 +01:00
45478555df Update Distro, for Raspbian Support (#144) 2017-08-27 20:59:15 +01:00
3380a85ff1 Update raspberry.sh (#143)
Fix state WMV9
2017-08-12 16:30:02 +01:00
a50e1dffb8 Update raspberry.sh (#140) 2017-08-03 17:11:26 +01:00
584fd645d4 C.H.I.P. power values (#134)
* C.H.I.P. power values

* Added attribution

* Fix ACIN current calculation

* Battery current fix
2017-07-12 20:55:02 +01:00
3f9dc0f5f0 Fix for bug https://github.com/librenms/librenms/issues/6821 (#138) 2017-06-29 21:11:26 +01:00
a4efb62466 unnecessary use of wc while already calling grep (#137)
* useless call of wc while already calling grep

* move grep count call to CMD_GREP to stay in project style
2017-06-28 21:36:26 +01:00
cc6d7882db Strip all non-ASCII characters from hddtemp output (#136) 2017-06-10 10:20:48 +01:00
3903f431f7 bash script for pi-hole app (#135) 2017-06-05 23:00:29 +01:00
84630dfb84 Fix for first line as localhost (#130)
An example output like below where the first line of output is just "localhost" so it causes the splitting to cause an out of index error.

Example:
cat /tmp/apache-snmp
localhost
ServerVersion: Apache/2.4.25 (Ubuntu) PHP/5.6.30-5+deb.sury.org~trusty+2
ServerMPM: prefork
Server Built: 2016-12-21T00:00:00
CurrentTime: Thursday, 18-May-2017 19:26:43 EDT
RestartTime: Thursday, 18-May-2017 11:35:48 EDT
ParentServerConfigGeneration: 2
ParentServerMPMGeneration: 1
ServerUptimeSeconds: 28255
ServerUptime: 7 hours 50 minutes 55 seconds
Load1: 0.04
Load5: 0.05
Load15: 0.10
Total Accesses: 5367
Total kBytes: 61432
CPUUser: 19.69
CPUSystem: 1.05
CPUChildrenUser: 0
CPUChildrenSystem: 0
CPULoad: .0734029
Uptime: 28255
ReqPerSec: .189949
BytesPerSec: 2226.38
BytesPerReq: 11721
BusyWorkers: 1
IdleWorkers: 6
Scoreboard: ___....._.__.W........................................................................................................................................
2017-05-31 22:23:38 +01:00
16178c6ac3 Added devuan support for os-updates.sh and removed code repitition (#131) 2017-05-31 22:23:07 +01:00
f473c5e30c Added try-except checks for global values. (#107)
Fixed an error which prevented output.
It seems some ceph version probably use different values or something. This is a quick fix to have the script output the correct values.
2017-05-23 07:44:05 -05:00
6fdcc91f70 Fix bind config file read (#125) 2017-05-04 08:06:32 +01:00
e3dad6cfc9 BIND cleanup and expansion (#108)
* add BIND named SNMP extend

* nolonger piss the entire stats across the wire, but crunch them and return them

* more work on bind

* more misc. updates

* add proper agent support as well as optional zeroing

* add -m
2017-05-03 15:23:40 +01:00
69eee9fb89 Added Devuan GNU/Linux support (#124) 2017-05-02 10:22:19 +01:00
eaa6af2359 snmp-extend: sdfsinfo (#122)
* sdfsinfo app snmp extend

* rewrite script to bash

* more vars
2017-04-27 20:54:55 +01:00
69e1ace889 Include missing SMART ids in the output (#120) 2017-04-23 00:29:00 +01:00
705cc0f3fe add support for SGE/rocks job tracker (#118) 2017-04-18 21:34:05 +01:00
d7085e001c hddtemp: parallelize calls to hddtemp for performance (#117)
This poll script runs hddtemp with a list of all drives as arguments and reads the output. hddtemp scans each drive's SMART status serially, which scales poorly with a large number of drives.

In lieu of a patch to the actual hddtemp project, optionally use GNU parallel when available to parallelize the call to hddtemp.

In testing a machine with 58 drives I went from a runtime of about 5 seconds per run to 0.5s, a performance improvement of 10x.
2017-04-18 21:32:41 +01:00
5f47aad492 hddtemp: improve detection of drives (#115)
Previously, this script was only able to find 26 drives (sda-sdz) due to the use of globbing.

A better strategy for detecting drives would be to use lsblk on systems that support it, failing over to globbing.

This patch adds support both for lsblk and a more comprehensive glob solution with find that will at least catch 26^2 drives.
2017-04-07 07:45:56 +01:00
67bae5a86c fix: Update proxmox agent to use new Perl module (#88)
PVE::API2Client is deprecated in Proxmox 4.4-6. Agent now requires
installation of libpve-apiclient-perl via apt.

This commit fixes #81.
2017-04-06 09:24:36 +00:00
a7fe1f8e6f Copy powerdns-recursor to snmp and remove <<<powerdns-recursor>>> header (#111) 2017-03-29 19:11:23 -05:00
74faec281c Postfix app bug fixes (#105)
* Postfix app bug fixes

- add missing DS
- fix some totals

* Move new variable to end of output
2017-03-29 23:00:26 +01:00
1e7762fb4e add SMART SNMP extend script (#101)
* add SMART SNMP extend

* cleanup default disk examples

* correct a small typo

* add option caching support

* add checking selftest log and nolonger zeros non-existent IDs

* now uses a config file

* add the ability to guess at the config

* properly remove device entries with partitions now and avoid adding dupes in a better manner

* now have smartctl scan as well to see if it missed anything

* note why ses and pass are ignored

* properly use the cache file in the config now

* actually use the cache now
2017-03-22 14:28:57 +00:00
94aa0feacd add unbound SNMP extend script (#102) 2017-03-19 18:03:59 +00:00
495f46afb4 Update mysql script to php7 version... (#104)
* Update mysql script to php7 version...

* Update mysql
2017-03-10 06:29:19 -06:00
61579bf0ac Enable ipv6 in Xinetd (#100)
* Fix indenting and enable IPv6 in Xinetd

* Fix changelog

* Typo
2017-03-08 08:51:04 +00:00
7f79fc4167 Update mysql 2017-03-07 23:48:15 -06:00
1b1d8b491f clean up snmp/mysql_stats.php and make it a proper snmpd extend script now (#99)
* cleanup and make it something that can properly be invoked via cli

* blank the user/pass/host bits increasing the chances it will work out of the box

* Update mysql_stats.php

* Update mysql_stats.php

* Update mysql_stats.php

* Update mysql_stats.php

* Rename mysql_stats.php to mysql
2017-03-07 23:40:09 -06:00
e7c3310701 add Nvidia SNMP extend poller (#94)
* add Nvidia SNMP extend

* update the extend path

* now support more than 4 GPUs

this will now support how ever many GPUs are installed on a system...

Just double checked and it appears nvidia-smi dmon only reports up to 4 GPUs at a time... so if we have more than 4, begin checking they exist and if so print them
2017-03-03 20:41:38 +00:00
2308481188 add squid snmp extend (#93) 2017-03-03 18:55:55 +00:00
2700598925 FreeBSD NFS extends (#90)
* add the FreeBSD NFS client and server extends

* white space cleanup

* white space cleanup
2017-03-03 14:49:15 +00:00
db3b5c7cec add Postgres SNMP extend (#91)
* add Postgres SNMP extend

* minor comment cleanups

* use env for check_postgres.pl

* quote the string
2017-03-01 23:46:13 +00:00
42e4887439 add detailed Postfix poller (#92)
* add detailed postfix poller

* env perl
2017-03-01 18:35:06 +00:00
c4101c9ef2 Merge pull request #84 from VVelox/master
add a snmpd extend script for fail2ban
2017-02-24 11:10:43 -06:00
8343e7f34e Update fail2ban 2017-02-24 11:09:21 -06:00