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

171 Commits

Author SHA1 Message Date
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
4fcce9f01d Redefining $firewalled 2017-02-24 11:02:19 -06:00
8bfbce68e5 if cache older than 360 seconds, don't use it 2017-02-23 09:54:38 -06:00
0a78888889 use $f2bc for getting jail status now and not just only overall status 2017-02-23 09:13:59 -06:00
1e160b86e4 don't reuse the variable $iptables 2017-02-23 08:46:18 -06:00
4b53918a7d poke the user about setting a iptables path as well 2017-02-23 08:45:04 -06:00
90620a8558 misc. path cleanups 2017-02-23 08:40:59 -06:00
5ee0faa2c3 make caching optional 2017-02-22 21:58:03 -06:00
4ffd86f8bd Update fail2ban 2017-02-22 21:42:53 -06:00
0227094c6f track both firewall and fail2ban-client 2017-02-20 13:18:50 -06:00
3932875ce0 correct a comment 2017-02-20 03:50:59 -06:00
c367e9ff9d now requires cron usage 2017-02-20 03:49:50 -06:00
d90f3e8792 use fail2ban-client instead 2017-02-19 23:41:51 -06:00
710f38e8ff move this over to perl and properly check iptables 2017-02-18 00:09:12 -06:00
6f76427952 remove pointless exit 2017-02-17 23:08:53 -06:00
4b600ad2b4 whoops, forgot to remove \ as well 2017-02-17 23:08:25 -06:00
bb4c67b217 Merge pull request #86 from florianbeer/patch-1
Update shebang
2017-02-17 22:42:57 -06:00
6955e5d410 don't assume it appends the jail name 2017-02-17 10:33:02 -06:00
8b78f863d3 update to check fail2ban and f2b 2017-02-17 10:32:27 -06:00
e3f3bd3efb Update shebang
With the original shebang this script didn't work on Debian and Ubuntu machines. Using `/usr/bin/env bash` makes the script more portable.
2017-02-17 16:37:00 +01:00
ff6ee0e2bc Fixed correct amount of pipeline symbols when degrees symbol is missing. (#85)
When the script is called through xinetd/check_mk (on my system), there is no degree symbol, but a space.
Changed the script to handle both correctly
2017-02-17 00:46:13 +00:00
21c953d11a Merge branch 'master' of https://github.com/librenms/librenms-agent 2017-02-16 11:30:03 -06:00
1ec8f204ee add fail2ban snmpd extend script 2017-02-16 10:50:46 -06:00
58d17264c7 Use command -v instead binary path (#80) 2017-02-16 15:12:01 +00:00
60becc9b3a add a single pool php-fpm net-snmpd extend poller (#83) 2017-02-16 15:10:53 +00:00
677bd4187e add a single pool php-fpm net-snmpd extend poller 2017-02-15 11:37:18 -06:00