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

375 Commits

Author SHA1 Message Date
yrebrac
5aa62834cb Add powermon app script (#348)
* added snmp/powermon-snmp.py

* powermon script v1.3

* powermon script v1.3a

* powermon-snmp.py v1.4
2021-03-07 20:27:44 +01:00
0xbad0c0d3
ca16f20185 docker stats script (#307)
* docker stats script

* Update docker-stats.sh

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-07 20:26:47 +01:00
Chewie
f505b13083 add DHCP stats to PiHole (#351)
* add DHCP stats to PiHole

* Update pi-hole

Removed need for `calc` thanks to @jellyfrog 's suggestion
2021-03-06 21:38:46 +01:00
Kanok Chantrasmi
ff8eba473e gpsd python error (#352)
gpsd script occasionally results in python error.
cause: the expected info from GPS unit on each update has more than 10 lines, therefore, python didn't find the expected wording and result in a python error
correction: increase the line from gpspipe from 10 to 20 lines
2021-03-06 01:01:57 +01:00
Russell Morris
7a757ba70b Add snmp script for BeableBoard Temperature Sensors (#330) 2021-01-29 07:31:05 -06:00
Robert (KHobbits)
ddfed007c1 Fix STDERR output corrupting json output in mdadm app (#344)
When checking if arrays have slaves, the mdadm script, does an  ls/$LS of the device to see if it exists.
This $LS throws an error to STDERR if it does not match.
This output is caught by snmp and corrupts the json output
2021-01-18 11:54:03 -06:00
Mike Dixson
4c30656394 Update check_mpre (#336)
--recv-only argument doesn't exist on some well used version of netcat. This method timesout after 1 second of idle time.
Only possible downside is that if it takes more than 1 second to initiate the connection it may timeout too.
2021-01-02 03:07:23 +01:00
FingerlessGloves
c2bf5f8888 Show version down to . release for any Debian (#337)
Show version down to . release for any Debian based distro's
Proxmox and Debian 10.6 tested.
2021-01-02 03:03:51 +01:00
SharadKumar97
8f80309e76 Adding opensips3.X + version support (#338) 2021-01-02 03:00:49 +01:00
mkninc
8e2013cc2d Add TrueNAS 12 compatibility (#342)
* Configurable paths for zpool/sysctl

* Allow non int values

* Ignore empty lines from sysctl output
2021-01-02 02:59:44 +01:00
Kevin Zink
c77f320b97 Bugfix (#340)
Fix syntax errors
2020-12-16 01:05:49 +01:00
Jellyfrog
9be1b41708 Delete snmpd.conf.example
Out of date, let's use the one in the main repo instead
2020-10-22 02:40:18 +02:00
Roman Kuzmitskii
53584838b8 stop using bash for distro script. bash is too big for embedded (#334) 2020-10-10 12:51:24 +02:00
Laurent Cheylus
144dff530b Fix distro for FreeBSD/FreeNAS (#335)
Check if /etc/version file present for FreeBSD OS
Without fix on FreeBSD: ./distro
cat: /etc/version: No such file or directory
FreeBSD 12.1-RELEASE-p5 amd64 GENERIC
2020-10-10 12:49:14 +02:00
Clark Chen
045a506d1c Add support for Alpine (apk) (#332)
* Add support for Alpine (apk)

* Minor fix

Add back #!/usr/bin/env bash
2020-09-24 02:11:08 +02:00
Jason Cheng
2455752eeb Add Proxmox MG identification (#329)
Added distro support to identify Proxmox MG (PMG) version.
2020-09-21 01:17:35 +02:00
Avinash Kumar
173a761290 Opensips, Icecast and Voipmon snmp scipts (#331)
* Icecast script added

* Opensips script added

* Voipmon script added

* Open files added to icecast stats

Co-authored-by: avinash kumar <alerts@ladybirdweb.com>
2020-09-18 16:48:51 +02:00
priiduonu
5118c51aab get correct ARM frequency reading in raspberry.sh (#325)
Fixes #324
2020-09-05 01:00:52 +02:00
arrmo
241595592f Update distro to support BeagleBoard (#328) 2020-09-04 23:29:03 +02:00
Hans Erasmus
399d2630f4 Rewrite Apache SNMP Agent to Python3 (#326)
* Updated to work with python3

Thanks to @murrant this file is now python3 compatible.

* Formatted for PEP8 specs

* Updated except according to request

* Updated according to request

As requested [here](https://github.com/librenms/librenms/pull/12009) by SourceDoctor.
2020-08-18 20:37:44 +02:00
Yoan Tanguy
712e31a9c8 Fix bash check from directory to block type (#295)
* Fix bash check from directory to block type

https://github.com/librenms/librenms-agent/issues/278

* Update mdadm

fix array existance check

Co-authored-by: SourceDoctor <sourcehhdoctor@gmail.com>
2020-07-20 22:18:22 +02:00
Martin
506405d63a Fix missing compatibility to Pi-hole V5 API (#322)
To minimize the impact of future API changes in terms of data order or additional data being appended, required elements are selected directly with the jq tool in the expected order.
2020-07-18 18:40:16 +02:00
Alexander Moisseev
36adc28813 Use sh in ups-nut.sh shebang (#315)
since the `ups-nut.sh` script is not using any bash specific syntax.
This change removes unneeded dependency on bash.
2020-07-18 18:37:45 +02:00
Slashdoom
aecfa970e7 Update check_mrpe (#321)
Include exit code when proper -a flag is specified.
2020-07-18 01:59:17 +02:00
SourceDoctor
8f731c83d0 Fix parsing Error on MDADM if increasing disc count (#320) 2020-07-14 01:10:37 +02:00
SourceDoctor
99e9a83ac0 pi-hol script update (#319) 2020-07-11 17:12:01 +02:00
arrmo
c222f71e32 Scripts for Openwrt (#314) 2020-07-09 16:13:51 -05:00
SourceDoctor
90c00c78d0 Configurable env binary path (#318) 2020-07-04 17:44:40 +02:00
SourceDoctor
a6f943fc83 FreeRadius optional Configfile (#317) 2020-07-04 13:13:32 +02:00
FingerlessGloves
e022601f32 Update proxmox versions detection on Distro (#316)
Update proxmox versions detection on Distro
Before change  "Debian GNU/Linux 10"
After change "Debian 10.3/PVE 6.1-8"
2020-07-01 19:27:21 +02:00
Mark Westerterp
a8cb5b0112 Make this script Python 3 compatible (#311) 2020-06-30 23:56:49 +02:00
yon2004
a6380230cc Update ups-nut.sh (#298)
* Update ups-nut.sh

Added Support for the ups.status and the 14 supported states as per https://networkupstools.org/docs/developer-guide.chunked/ar01s04.html#_status_data

* Update ups-nut.sh
2020-06-18 09:42:28 +02:00
N
5770fac54b Fix up smart script to also parse some values from NVMe drives (#308) 2020-06-17 23:22:13 +02:00
SourceDoctor
d10133b085 DHCP Agent Update (#303) 2020-06-17 00:04:29 +02:00
Slashdoom
2cf11d0484 add check_mrpe script (#192)
* add check_mrpe script

* recommit

Co-authored-by: slashdoom <slashdoom>
2020-06-16 23:26:08 +02:00
SourceDoctor
dc9695641b Application sudo correction (#306) 2020-06-14 23:46:58 +02:00
Anael Mobilia
6b96466473 Add backupninja snmp script (#264)
* Add backupninja snmp script

* jsonify output

* Better codestyle & apply JSON requirements

* Optimize file using redis.py example

* Properly use of the LibreNMS json format

* typo
2020-06-02 17:37:23 +02:00
SourceDoctor
17ae1ee9e4 Merge pull request #305 from SourceDoctor/remove_not_needed
remove unneeded file
2020-05-30 18:10:55 +02:00
SourceDoctor
4e1230c10e remove unneeded file 2020-05-30 18:10:16 +02:00
SourceDoctor
d1424da224 Merge pull request #262 from dlangille/patch-2
zfs-freebsd - Repair percentage calculation
2020-05-30 14:53:33 +02:00
SourceDoctor
83c985d270 Merge pull request #213 from Kovrinic/master
Added Ubuntu 14.04 zfs support
2020-05-26 00:17:48 +02:00
SourceDoctor
390051b197 Merge pull request #302 from Privex/privex-pdns-fix
Remove absolute exe for powerdns + use python3
2020-05-23 01:50:18 +02:00
Chris (Someguy123)
c91ba4d29d Remove absolute exe for powerdns + use python3
- `agent-local/powerdns`
    - Replaced the absolute path `/usr/bin/pdns_control` with `pdns_control`, since pdns_control can also be in `/usr/sbin` or `/usr/local/bin`.
      Python can find the executable using PATH just fine.
    - Changed `vars` to `kvars` to avoid conflicting with the reserved `vars` Python symbol
    - Changed shebang to use `python3` instead of `python` - as Python 2 is EOL.

 - `agent-local/powerdns-recursor`
    - Changed shebang to use `/usr/bin/env` instead of a hardcoded path to Python
    - Changed shebang to use `python3` instead of `python` - as Python 2 is EOL.

**NOTE:** As per https://pythonclock.org/ - Python 2 is end-of-life, and is no longer included by default on modern Linux distros,
along with macOS (OS X).

I would recommend adjusting all Python-based agents to use Python 3 by default, instead of Python 2.
2020-05-22 07:48:00 +01:00
SourceDoctor
c3ea4d40a4 Merge pull request #287 from AnaelMobilia/patch-1
Fix ssl.SSLCertVerificationError
2020-05-17 19:51:04 +02:00
SourceDoctor
b04addf9d7 Merge pull request #300 from karlshea/patch-1
Update gpsd
2020-05-17 19:19:05 +02:00
SourceDoctor
9ea0b20f2d Merge pull request #294 from tbfr76/apache-stats.sh
Fix apache-stats.sh
2020-05-17 19:18:14 +02:00
SourceDoctor
a9c922d34c Merge pull request #299 from SourceDoctor/redis_agent
Redis Application Agent
2020-05-15 22:05:53 +02:00
Karl Shea
e6892ea76d Update gpsd
4s max time limit was causing some timeouts, especially given the two 1s sleeps. Especially with a lot of sentences coming back from the GPS chip it was probably not enough to always catch the right variables.
2020-05-15 01:15:20 -05:00
SourceDoctor
cdaf20e2c8 Remove comments 2020-05-15 05:18:33 +02:00
SourceDoctor
c8f31e749e Redis Application Agent 2020-05-14 23:27:47 +02:00