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

478 Commits

Author SHA1 Message Date
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
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