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

255 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
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
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
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
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
83c985d270 Merge pull request #213 from Kovrinic/master
Added Ubuntu 14.04 zfs support
2020-05-26 00:17:48 +02:00
SourceDoctor
c3ea4d40a4 Merge pull request #287 from AnaelMobilia/patch-1
Fix ssl.SSLCertVerificationError
2020-05-17 19:51:04 +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
cdaf20e2c8 Remove comments 2020-05-15 05:18:33 +02:00
SourceDoctor
c8f31e749e Redis Application Agent 2020-05-14 23:27:47 +02:00
Tobias Frederick
5c5b32dcd8 Fix apache-stats.sh 2020-04-30 21:00:25 +02:00
priiduonu
660ded7ec0 fix: removed double entry for WMV9 codec (#292) 2020-04-22 21:51:17 -05:00
Konstantin V Bekreyev
174d94777f add FreeBSD to osupdate (#288)
* Update osupdate

osupdate for FreeBSD

* Update osupdate
2020-04-21 12:30:37 -05:00
AltiUP
103cd5b293 Change stats file location
The stats file should not be placed in /var/run/named but in /var/cache/bind.
In run there will be permissions problems.
2020-04-19 00:02:53 +02:00
FingerlessGloves
7e6b19f26c Make python3 version of Nginx extend the default (#284)
* Rename nginx to nginx-python2, as python2 is EOL

Rename Nginx to Nginx-python2, as python2 is EOL. Shall make python3 version the default version now. Keeping python2 version for legacy.

* Rename nginx-python3.py to nginx
2020-04-12 11:17:16 -05:00
Anael Mobilia
359a7b5630 Fix redundant line 2020-04-08 17:59:44 +02:00
Anael Mobilia
a19293219b Return values to librenms application in order to log the error 2020-04-08 17:59:00 +02:00
Anael Mobilia
bb1d61e2d9 Fix ssl.SSLCertVerificationError
If the certificate is already expired, the script crash.
Fix #286
2020-04-08 11:40:41 +02:00
SourceDoctor
5d9bf9f225 Pureftpd Byte to bit 2020-03-21 22:13:22 +01:00
SourceDoctor
fe2dfe418e Merge pull request #277 from SourceDoctor/remove_squid_script
remove unneeded Squid parsing Script
2020-02-29 01:12:54 +01:00
SourceDoctor
80c5bf33e3 remove unneeded Squid parsing Script 2020-02-28 21:33:27 +01:00
David P. Discher
0c74ab10ce Completely breaks libremns metric collections, lets actually do the assigment. (#276)
Perl error "Useless use of multiplication (*) in void context at /etc/snmp.d/zfs-freebsd line 163."
2020-02-19 08:08:57 +00:00