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

492 Commits

Author SHA1 Message Date
SourceDoctor
f6de88037a . 2024-01-18 02:06:30 +01:00
SourceDoctor
58d786cf10 replace nan with 0
replace nan with 0 of pool has a sice of zero
2024-01-18 02:01:59 +01:00
Zane C. Bowers-Hadley
040b755964 add ifAlias (#503) 2024-01-08 16:59:01 -06:00
Zane C. Bowers-Hadley
f3c31fbdf8 fix for issues/501 and do assorted cleanup while there (#502) 2023-12-19 21:10:57 -06:00
Peter Childs
0f7ad4d23e ensure returned values do not exceed max of RRD file (#497) 2023-12-16 20:56:21 -06:00
Dan Langille
0c18d34fd1 Update URL for ZFS (#498)
Correct the URL
2023-12-16 20:53:04 -06:00
Zane C. Bowers-Hadley
f6d6ff5b88 borgbackup mtime fix for repo (#496) 2023-11-19 15:31:32 -06:00
Zane C. Bowers-Hadley
f20430637f borg backup extend (#495) 2023-11-19 04:33:41 -06:00
bnerickson
7e18c9a212 Adding Socket Statistics Script (#486)
* Adding Socket Statistics Script

* Adding the no-header argument to the ss command.  Fixing a bug where the unknown netid type was discarded before it was converted from question-marks to unknown

* Now that headers are removed from the ss command, moving the datastructure logic out of command execution logic so it executes at least once even if there's no output.

* Moved 'always-on' global arguments into a GLOBAL_ARGS constant list.
2023-11-07 22:25:48 -06:00
Garcia MICHEL
4a1368980a Add OpenMediaVault detection to distro script (#484) 2023-11-07 22:21:53 -06:00
calvin_thefreak
e34cde0385 Quick and dirty fix for snmp extend to respond correctly. (#494)
- Added "grep -v" to the output command.
 - Added a note for Users that don't understand why LibreNMS can't get the values when snmp user is not in docker group.
2023-11-07 22:16:49 -06:00
Tony Murray
eba08461be Add pacman packages support (#493) 2023-10-07 21:36:37 -05:00
Zane C. Bowers-Hadley
6a7c04e549 add -w to dhcp (#492) 2023-10-04 18:30:54 -06:00
Zane C. Bowers-Hadley
38d57626be dhcp extend nolonger requires dhcpd-pools (#491)
* more work on implementing dhcp config parsing

* no longer require non-perl depends
2023-10-01 12:17:01 -05:00
Zane C. Bowers-Hadley
22bc2cedf5 for dhcp dedup, don't use uid twice and don't use cltt (#490) 2023-09-24 13:49:07 -05:00
Zane C. Bowers-Hadley
00a68dc6ed base64 encode possible fields for DHCP that may possibly include binary data (#489)
* base64 encode uid and client hostname for dhcp lease info

* cleanup vendor_class_identifier as well and note the changes
2023-09-22 01:51:14 -05:00
Zane C. Bowers-Hadley
3af477845f add new dhcp extend (#488) 2023-09-21 23:46:40 -05:00
SourceDoctor
2c6ae8b659 check for puppet v7 summary file (#485) 2023-08-02 23:21:39 +02:00
Zane C. Bowers-Hadley
f846574884 smart-v1: fix handling of cciss when it a disk is being replaced (#483)
* only add connectors that have not been seen for cciss

* rework seen logic to also have a ignore logic as well for cciss

* add a comment explaining why it is being ignored

* minor version bump
2023-07-06 15:36:29 -06:00
Zane C. Bowers-Hadley
4e78072daf smart-v1: add handling unknown cciss devs (#482)
* add -u option

* add a small fix for when smart fails and useSN is false

* some more possible cciss error handling

* rename -u for with guess to -U to avoid conflict

* add U to getopts
2023-07-06 12:27:56 -06:00
Zane C. Bowers-Hadley
998e24fabc add the logsize extend (#481)
* add initial logsize extend

* add long chomp

* pretty it and now make save the return file even if -b was not specified

* errpr->error

* clean up the code a bit more

* more cleanup

* add some more set bits

* de-fuck it

* add total size as well as the max and min stats between alls ets

* add no_minus_d

* no_minus_d fix

* add .json

* add log

* minor logic tweaks

* make no_minus_d the default

* completely rework it and make it overall more stable

* fix set size handling

* no longer include no_minus_d and also fix date chomping

* add old cache file removal and docs
2023-07-04 22:32:30 -06:00
Zane C. Bowers-Hadley
4778070b90 smart-v1: send useSN value along in the data (#480)
* send useSN along in the data

* remove a extra ,
2023-07-03 14:49:18 -06:00
Zane C. Bowers-Hadley
6af12e74b8 smart-v1: add the ability to run tests on all configured devs via the extend and fix when useSN=1 (#479)
* add the ability to run tests on all specified devices via -t

* properly save the results when exit is non-zero and useSN=1
2023-07-02 19:01:13 -05:00
Zane C. Bowers-Hadley
4bd6909f99 add the ability to run tests on all specified devices via -t for smart-v1 (#478) 2023-06-28 10:23:39 -06:00
Zane C. Bowers-Hadley
1328a11f48 various smart-v1 fixes (#477)
* use $sg_int when composing lines for cciss devs

* more cleanup for cciss stuff for when it does not recognize a device

* use -i with smart for the cciss -C test

* add in virt checking

* fix regex typos for virt check
2023-06-28 07:37:37 -06:00
Zane C. Bowers-Hadley
442e691b1a update smart-v1 some more (#476)
* add various HP specific bits for identity info

* more HP related cleanup

* add initial ccis guessing support

* ccis -> cciss

* rework cciss support some more

* derp, fix qoute type

* make useSN configuration with -g

* rework self test logs to be more HP friendly

* more test cleanup

* more test cleanup

* finally get the extended test playing nice with HP stuff

* don't print needless error messages if cciss_vol_status is not found

* cleanup a edge case, add a new edge case, and now find the max temp

* add id 232

* make the scan modes selectable and begin reworking cciss forproperly checking all possible devices

* rework how the cciss device path is generated

* add exit status checking

* improve cciss guess

* cleanup the cciss checks some more

* convert to IO::Compress::Gzip and update docs
2023-06-26 22:33:44 -05:00
Zane C. Bowers-Hadley
3bb46945c4 add smart-v1, a new JSON based smart poller (#474)
Now also grabs....

    general health status
    FW version
    selftest log
    make
    model
    disk + serial
2023-06-19 20:00:16 -06:00
Zane C. Bowers-Hadley
6e11473a0b privoxy fix nog_conns and actually do compression now (#473)
* fix nog_conns parsing for privoxy

* add compression support
2023-06-19 00:46:41 -06:00
Jämes Ménétrey
5567606347 Smart: fetch the values 177, 231 and 233 as normalized instead of raw (#472) 2023-06-19 00:12:15 -06:00
Zane C. Bowers-Hadley
330237af97 add a line to uncomment if using as a agent (#471) 2023-06-12 19:16:24 -06:00
Wheel
8efec5e2dc Update osupdate (#466)
#444 broke osupdate script
2023-06-12 19:06:57 -06:00
Zane C. Bowers-Hadley
a011a88653 add Linux Softnet Stat extend (#470) 2023-06-10 14:55:57 -06:00
bnerickson
49f3810780 Removing unnecessary backslashes from postgres script. (#468) 2023-05-23 20:25:30 +02:00
bnerickson
8f95171953 Adding linux_config_files snmp script to monitor configuration file updates (#453) 2023-05-09 10:23:39 -05:00
Shao Yu-Lung (Allen)
af28a4fcca feat: OS Updates support agent (#444) 2023-04-28 08:50:07 -05:00
Zane C. Bowers-Hadley
f30f71342a minor doc changes and add gzip+base64 compression to snmp/zfs (#463) 2023-04-28 08:47:56 -05:00
Zane C. Bowers-Hadley
67a1a0117f opensearch/elasticsearch fix as apparently ._all.total.indexing.is_throttled will sometimes be undef (#464) 2023-04-26 09:36:17 -06:00
Zane C. Bowers-Hadley
a8031e605b add new ZFS extend, for both Linux and FreeBSD (#460) 2023-03-19 14:58:18 -06:00
Henne Van Och
bd4c946428 Improve docker stats (#450) 2023-03-01 01:09:43 +01:00
Zane C. Bowers-Hadley
fd78c041d5 add a extend for privoxy (#458) 2023-02-16 20:14:30 -06:00
bnerickson
a47c1973c7 Initial commit for linux_iw script (#442) 2023-01-28 07:51:18 -06:00
Zane C. Bowers-Hadley
0865975317 fix depends for cape extend (#454) 2023-01-24 13:00:25 -06:00
Zane C. Bowers-Hadley
519d61e681 CAPE/Cuckoo extend update (#422)
* now properly counts pending

* lots more work on it and it

* more work

* malscore, severity, wieght, and confidence now work with packages

* misc minor cleanups

* fix for the processing log which includes the task id as well
2023-01-20 16:25:17 -06:00
bnerickson
8f7608aeff Updating wireguard script to discover interfaces separately and execu… (#452) 2023-01-04 00:06:16 +01:00
Martin
1ab38e77b9 Latest pi-hole API needs auth parameter for summary (#451)
fix https://github.com/librenms/librenms-agent/issues/366
2023-01-04 00:00:33 +01:00
Dan Kerse
7969e00126 Update fail2ban so it doesn't panic when the return value is zero (#446) 2022-12-12 21:32:19 +01:00
Shao Yu-Lung (Allen)
af450216aa fix: remove unnecessary line breaks (#443) 2022-12-11 15:34:11 +01:00
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