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

445 Commits

Author SHA1 Message Date
bnerickson
3d9d1e18a2 Cleaning up certificate.py code and adding cert_location support for self-signed certificates (#447) 2022-12-10 07:14:41 -06:00
Shao Yu-Lung (Allen)
f0d1b10e57 typo: Fix systemd.py Installation step (#441) 2022-11-25 15:05:34 +01:00
00gh
dea0b7176e snmp/Openwrt/wl*: Added stderr redirects in wl* scripts for iw/iwlist. (#440)
See Issue mentioned in librenms/librenms:
 #14428 OpenWRT example scripts give bad output if wireless interface is down.

Redirect the iw/iwlist command stderr output to /dev/null.

Co-authored-by: 00gh <00gh>
2022-11-19 20:59:09 -06:00
SourceDoctor
2893541099 Alarm Flag on UPS-Nut Application (#438) 2022-11-18 21:16:38 +01:00
bnerickson
c09263d04e Fixing agent-local hddtemp script (#436) 2022-11-13 11:06:10 +01:00
bnerickson
c2b00adcdd Adding optional configuration file support to postgres snmp script (#437) 2022-11-13 11:05:29 +01:00
bnerickson
61a0a43f8d Add wireguard script (#432)
* Add wireguard script

* Fixing a minor lint isort issue

* Removing str sanitization that was never supposed to be part of the original commit

* Fixed one final lint issue

* Fixing comments to use a VALID json format.  String enforement for the friendly name variable.
2022-11-13 11:04:02 +01:00
Jethro
539a10db4f Add default puppet7 location of the summary file (#434) 2022-11-05 11:22:19 +01:00
bnerickson
0f0a31fa41 Cleaning up pwrstatd code (#431) 2022-11-01 22:50:18 +01:00
Oskar Szafraniec
10bae306f3 run_query PHP 8.1 hot fix (#430)
As of PHP 8.1.0, the default setting is MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT. Previously, it was MYSQLI_REPORT_OFF.
2022-10-26 15:13:20 +02:00
Tony Murray
e6fa86dc82 Fix memcached security vulnerability (#428)
Add snmp extend script
2022-10-16 11:15:25 -05:00
Trae Santiago
f9fea2e06c fixed conditional not checking for file before cating, and removed reliance on bc (#425) 2022-10-14 13:42:47 -05:00
bnerickson
232f548602 Add systemd script (#426)
* Add systemd script

* Fixing a couple python black styling errors
2022-10-14 13:42:28 -05:00
bnerickson
1eeeab9b6b Add pwrstatd script (#423) 2022-09-19 20:11:42 -05:00
oernii
a78596030c mdadm sync check - completed percent (#415)
Co-authored-by: oernii <Ernest.Beinrohr@axonpro.sk>
2022-09-10 19:22:52 +02:00
Zane C. Bowers-Hadley
8b574237e8 add unassigned shards for opensearch #421 2022-08-15 12:46:19 -05:00
Zane C. Bowers-Hadley
a1227bad67 update date librenms_return_optimizer to take input via pipe or post -- and running the command #420 2022-08-11 12:01:16 -05:00
Zane C. Bowers-Hadley
41db608ef9 lnms_return_optimizer => librenms_return_optimizer (#419) 2022-08-08 09:15:57 -05:00
Zane C. Bowers-Hadley
8449171226 add lnms_return_optimizer (#417) 2022-07-31 19:57:40 -05:00
Tim de Boer
ea69fd1a3a Rename LMNS_vlans.scr to LNMS_vlans.scr (#410) 2022-07-28 08:55:01 -05:00
Zane C. Bowers-Hadley
dbf2b7c7e8 cape: typo fix so it will send criticals if requested (#416) 2022-07-20 12:42:17 -05:00
Zane C. Bowers-Hadley
cacdc73157 add per timeslot stats for CAPE (#414) 2022-07-18 18:20:31 -05:00
Zane C. Bowers-Hadley
30ed00f771 typo correction for CAPE monitor... warnigns -> warnings #413 2022-07-15 12:10:20 -05:00
Zane C. Bowers-Hadley
77c45f8204 add extend for polling/monitoring CAPEv2 (#412) 2022-07-14 14:59:03 -05:00
Ives van der Flaas
ba373fc2dc Add support for PhotonOS's tdnf. (#411)
Example output:

root [ /home/ives ]# tdnf -q check-update
Linux-PAM.x86_64                             1.4.0-5.ph4          photon-updates
cloud-init.noarch                           22.2.2-1.ph4          photon-updates
curl.x86_64                                 7.83.1-2.ph4          photon-updates
curl-libs.x86_64                            7.83.1-2.ph4          photon-updates
openssl.x86_64                               3.0.3-3.ph4          photon-updates

So a simple line count should suffice. Output of the script:

root [ /home/ives ]# /bin/docker-osupdate
5
2022-07-10 11:51:11 +02:00
SourceDoctor
027e848069 mdadm sync_complete fix (#409) 2022-06-19 13:38:41 +02:00
Thermi
bafb379e14 osupdates: unpriv implementation alternative (#395) 2022-06-18 11:59:19 +02:00
Trae Santiago
7cbf74e9eb Replaced mdadm script with a newer, more flexible version (#401)
* Replaced mdadm script with a newer, more flexible version

* added basic error handling, and conditionals for missing array

* added fallback json squashing code if jq is missing

* fixed comments and shellcheck

* spacing
2022-06-18 11:58:33 +02:00
Zane C. Bowers-Hadley
4e2399e0a5 Elastic/Opensearch SNMP extend (#408)
* mostly done, just need to document stuff at the top

* finish docs at the top

* remove a redundant line

* correct spelling of evictions

* remove a unused line
2022-06-18 11:52:37 +02:00
Sebastian Heiden
a8c0bd7eb4 Provide dhcpd-pools leasefile location (#407) 2022-06-01 00:26:08 +02:00
adamus1red
9c2a35ab36 Update GPSD extension to use python3 (#404)
Fix the print statements so it works with python3.
Update the BIN_PYTHON to use `python3`
2022-05-20 00:24:12 +02:00
Shao Yu-Lung (Allen)
ed00d088c5 fix(dpkg): No such file or directory (#400) 2022-05-20 00:22:32 +02:00
Zane C. Bowers-Hadley
c12f320273 Merge pull request #403 from VVelox/nfs-client-fix
fix a off by one for nfsstat on new releases
2022-04-23 23:09:53 -05:00
Zane C. Bowers-Hadley
3cd183cc03 Merge pull request #402 from VVelox/mysql-fix
localhost -> 127.0.0.1 to work around bug where it complains about the directory not existing
2022-04-23 23:05:28 -05:00
Zane C. Bowers-Hadley
dc9993c665 fix a off by one for nfsstat on new releases 2022-04-23 23:03:53 -05:00
Zane C. Bowers-Hadley
1914bcb1ea localhost -> 127.0.0.1 to work around bug where it complains about the directory not existing 2022-04-23 22:59:20 -05:00
Barny Ritchley
f20cd12155 Update opensip3-stats.sh (#396)
Update to use curl for management information.  Reduces load for frequent polling.,
2022-03-10 23:56:23 +01:00
Hans Erasmus
c1d5aa0835 Add rocky linux identification (#397) 2022-02-25 18:22:09 +01:00
Thermi
92f9acbb9f osupdates: on Arch, try to use checkupdates (#391) 2022-01-30 03:19:52 +01:00
Henne Van Och
e0f47d499b Add supervisord script (#392) 2022-01-13 18:18:57 +01:00
Plamen Vasilev
38628e3528 fix occasionally random ordering for fail2ban (#388)
If

        $j->canonical(1);

need another changes, please fix that. 
I get this from: https://github.com/librenms/librenms-agent/pull/240
2021-12-16 18:27:36 +01:00
Dave King
f304b1a2c0 improve FreeRADIUS stats efficiency (#389)
* agent setting needs numeric comparison

* reduce cpu and system calls by using sed instead of grep
2021-12-16 18:27:16 +01:00
Alex R
032baf3766 - added equivalent wear level for nvme ssd (#383)
* - added equivalent wear level for nvme ssd
- remove touched cache file to avoid no data if config is guessed
- take only 1st raw response to avoid taking strings instead of int (eg. adacom devices like supermicro sata dom moule)

* fix identation
2021-12-16 18:24:29 +01:00
PipoCanaja
5a9c978a25 Merge pull request #386 from Deltawings/patch-1
Constants definition logic modification
2021-11-10 23:58:51 +01:00
Deltawings
d3a8aaef51 Constants definition logic modification
Correction avoiding script exit when configuration file doesn't exist because MySQL connection constants can also be set at the beginning of this script.
2021-11-10 22:25:51 +01:00
Peca Nesovanovic
e20c1cf269 Mikrotik vlans discovery script (#382) 2021-11-01 20:27:02 +01:00
David Simpson
7e323c345d Add almalinux to distro (#378) 2021-10-24 21:02:34 +02:00
SourceDoctor
f0cb0eb1e3 update yaml loader (#381) 2021-10-24 21:01:40 +02:00
Zane C. Bowers-Hadley
4040e4053e Merge pull request #380 from VVelox/ntp-fix-376
fix for ntp-server.sh from #376
2021-10-20 14:56:32 -05:00
Zane C. Bowers-Hadley
d8edd140ce pet the linter and hope everything is POSIX happy now.... works on freebsd and linux though 2021-10-20 14:53:40 -05:00