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

456 Commits

Author SHA1 Message Date
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
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
SourceDoctor
94f970c9c9 Merge pull request #290 from AltiUP/patch-1
Change stats file location
2020-04-19 12:32:18 +02: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
Kees van Veen
3b7d73b7b3 added option to use portno in arguments 2020-04-14 16:42:33 +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
ca631a3afd Merge pull request #279 from SourceDoctor/pureftpd_Byte_to_bit
Pureftpd Byte to bit
2020-03-21 22:14:12 +01: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
Joseph Tingiris
a4599dee56 apache-stats.sh: shell script that produces LibreNMS apache application output. The only dependency is curl. (#263) 2020-02-13 06:29:10 -06:00
crcro
257aa598f5 mailcow-dockerized postfix stats (#270)
* initial release

* added requirements info
2020-02-13 06:27:36 -06:00
Alex R
2820e53dbc Added check if sudo is required and alter the $picmd to become "sudo $picmd" (#273)
This will enable the script to run on libeelec images on raspberry pi for example.
2020-02-13 06:27:12 -06:00
SourceDoctor
9f781d8549 puppet agent monitoring script (#258) 2020-02-12 08:26:12 +01:00
SourceDoctor
5203c9ec71 Merge pull request #275 from SourceDoctor/mdadm_sync_complete_state
set MDADM sync complete to 0 if on degraded array
2020-02-06 19:16:49 +01:00