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

433 Commits

Author SHA1 Message Date
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
Zane C. Bowers-Hadley
d0278e8560 now happy on both linux and freebsd for ntpd --version output 2021-10-20 14:49:26 -05:00
Zane C. Bowers-Hadley
b99db0b384 [[ -> [ tested on FreeBSD and works 2021-10-20 14:44:07 -05:00
Zane C. Bowers-Hadley
c82348bb53 fix for ntp-server.sh from #376 2021-10-20 14:35:52 -05:00
Zane C. Bowers-Hadley
45c1dfce8b Merge pull request #289 from libc225so/feature/add-portno
added option to use portno in arguments
2021-10-17 17:25:51 -05:00
Pim van Pelt
15d030f965 Tag VPP enabled machines to allow for a custom icon in LibreNMS device view (#374) 2021-09-15 17:50:57 +02:00
Jellyfrog
5444de823a Bump Super-linter (#372)
* Bump Super-linter

* Update linter.yml

* Update linter.yml

* Update linter.yml
2021-07-27 10:26:09 +02:00
adamus1red
183dec1655 Change UPS to pull from arg[1] for UPS name (#371)
Will still fallback to APCUPS
2021-07-27 01:01:03 +02:00
Tim Pozar
ef381d780d Error checking with two line stats (#365)
* Error checking with two line stats

* Fixed some spacing problems
2021-05-27 21:36:59 +02:00
Denny Friebe
b0983980b6 Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header (#364)
* Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header

* Raspberry Pi: Add missing sensor types
2021-04-20 23:32:22 +02:00
Jellyfrog
19da9501db Fix regressions after linting (#363) 2021-03-26 11:02:01 +01:00
Wheel
4e09377661 Minor script reverts (osupdate, phpfpm) (#362)
* Revert changes made in #355 that broke the script.

* Revert partial changes made in #356

By just removing the quotes in line 81 i could make the script work again

* osupdate yum revert

Realized i had a centos to test

* Fix curl error

`curl: (3) URL using bad/illegal format or missing URL`
Not sure how to properly fix it but moving the hardcode flags to the variable so its not empty did fix it. The curl error caused to push down all values 1 line which made them mismatch in librenms.

* Update osupdate

* Update phpfpmsp

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-26 02:14:43 +01:00
Karl Shea
67d73c7b99 Allow configuring the number of lines read (#358) 2021-03-22 14:10:13 +01:00