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

492 Commits

Author SHA1 Message Date
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
priiduonu
2e8c6b07d6 Update ups-apcups.sh (#361)
Filter out `LINEV` value as some APC models also return `MAXLINEV` and `MINLINEV` values in `apcaccess` output, therefore ruining the final output.
2021-03-22 14:09:20 +01:00
Jellyfrog
2bd9693c5e Fix CI 2021-03-22 12:59:04 +01:00
Jellyfrog
c382982481 Update linter.yml 2021-03-19 00:27:48 +01:00
Jellyfrog
87b7cc516c Add linter (#357) 2021-03-18 20:12:42 +01:00
Serphentas
8dec782b8b Add chrony support (#345)
* initial chronyc json sampler

* make use of standard data format

* fix last_rx json key
2021-03-18 20:11:19 +01:00
Jellyfrog
25fb357809 Lint more files (#356) 2021-03-18 20:07:25 +01:00
Jellyfrog
61064dc9fe Cleanup some code (#355)
* Format with isort

* Format with Black

* Fix CRLF

* Format with shellcheck

* Fix some warning

* Fix PHP style

* Dont modifiy check_mk files

* Fixes
2021-03-18 12:24:30 +01:00
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