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

244 Commits

Author SHA1 Message Date
VVelox
d822c899a7 Merge pull request #226 from VVelox/smart-update
SMART monitoring update adding RAID support
2019-03-24 03:56:16 -05:00
Zane C. Bowers-Hadley
544fd8bd6e update the date 2019-03-19 02:58:30 -05:00
VVelox
8fbfbd5b39 Merge pull request #225 from VVelox/pa-fix
portactivity fixes
2019-03-19 02:53:30 -05:00
Zane C. Bowers-Hadley
503fb9f738 tested and it appears to work properly... documentation updated 2019-03-19 02:25:17 -05:00
Zane C. Bowers-Hadley
bdfd0ceea9 update the guessing to only use smartctl --scan-open and generate with more complex options 2019-03-19 00:40:06 -05:00
Zane C. Bowers-Hadley
38acc2bd3d actually make this work on system not FreeBSD and deal with the bug where a connection may not have a protocol 2019-03-18 03:39:17 -05:00
VVelox
cb04f8c0ac Merge pull request #224 from VVelox/zfs-fix
ZFS-FreeBSD divide by zero fix
2019-03-17 23:27:46 -05:00
Zane C. Bowers-Hadley
af32f56a74 merge... and update version 2019-03-17 06:07:59 -05:00
Zane C. Bowers-Hadley
658c3c6ead Merge branch 'zfs-fix' of https://github.com/VVelox/librenms-agent into zfs-fix 2019-03-17 06:06:57 -05:00
Zane C. Bowers-Hadley
6564128305 remove unneeded else statement and re-apply patch 2019-03-17 06:02:43 -05:00
Zane C. Bowers-Hadley
3ce06d6def freshly initilized ZFS pulls that are not in use don't have a $data_demand_total 2019-03-17 05:55:33 -05:00
Tony Murray
147cb67824 Use os-release whenever possible for the distro script (#220)
Except centos... https://bugs.centos.org/view.php?id=8359
2019-02-12 20:33:05 -06:00
Felicián Hoppál
c9a0d2893e Fix: zpool list output changed, incorrect values (#219)
* fix zpool data, output of zpool list -pH changed in freebsd 11

* fix zpool data, output of zpool list -pH changed in freebsd 11

* bump version

* version dump to 2
2019-02-11 16:06:57 -06:00
Tony Murray
3a407e3f72 Update powerdns script to json (#218) 2019-01-17 11:44:02 -06:00
VVelox
ad300c035a various misc fixes for the postfix poller (#112)
* update postfix

* move a few things to reduce the number of changed lines

* move mself to the end

* white space cleanup and another small cleanup of $chr

* use $chrNew instead of $chrC when writing the current values

* more white space cleanup

* replace one more missed instance of iuoscp
2019-01-09 23:41:39 -06:00
Slashdoom
c406061401 Fix: InnoDB stat support for MariaDB v10+ (#211)
* mariadb innodb support for v10+

* fix newer innodb insert buffers

* agent mysql to snmp extend
2019-01-09 23:40:40 -06:00
Mike Centola
6fdaffa1b2 Added gpsd script for SNMP Extend (#217)
Fixed Typos

Fixed another typo
2019-01-09 23:35:28 -06:00
CrazyMax
f54c442d06 Merge pull request #216 from jasoncheng7115/patch-2
Added Proxmox VE Versoin support
2018-12-29 22:17:13 +01:00
VVelox
1b90904f61 convert the FreeBSD NFS stuff over to JSON and add in lots of sanity (#190)
* convert fbsdnfsclient over to JSON

* Convert the server stuff to JSON and fix the output of the client extend.

* misc. stuff

* lots of cleanup and sanity added to the FreeBSD NFS scripts

* fix the #! line

* update the docs at the top
2018-12-28 20:10:13 -06:00
VVelox
5be1b168ba JSON SNMP extend for UPS-APC app. (#189)
* add snmp/ups-apcups, a Perl rewrite of snmp/ups-apcups.sh to support JSON

* finish documenting it

* add version and remove units from the returned values
2018-12-28 20:08:46 -06:00
Jason Cheng
107d72e862 Added Proxmox VE Versoin support 2018-12-25 09:15:22 +08:00
Jason Cheng
433d744953 Added FreeNAS Version support (#215)
Hi, 

I added FreeNAS version information support, as shown in the figure:

![2018-12-15 11 53 31](https://user-images.githubusercontent.com/30381035/50044886-2329a580-00c5-11e9-817c-b89a8374270d.png)
![2018-12-15 11 53 49](https://user-images.githubusercontent.com/30381035/50044887-2329a580-00c5-11e9-93b4-b140809f84a3.png)
2018-12-16 14:21:00 +00:00
CrazyMax
3c4511d987 Merge pull request #214 from dsgagi/patch-1
Fix Debian detection on Proxmox - lsb_release binary doesn't exist
2018-12-14 19:03:01 +01:00
dsgagi
dc3d2673dd Update distro
Remove extra white spaces.
2018-12-14 18:49:58 +01:00
dsgagi
456d2e7672 Update distro
Minor changes to the code, for better output.
2018-12-14 18:47:54 +01:00
dsgagi
5b53ab54c8 Update distro 2018-12-12 16:09:25 +01:00
VVelox
ff124a1358 add portactivity SNMP extend (#159)
* add portactivity SNMP extend in its initial form

* update for the current json_app_get

* add version to the returned JSON

* add basic POD documentation
2018-11-22 09:04:58 -06:00
gardar
a827734c0e CloudLinux distro detection (#208)
Added CloudLinux distro detection, previously CloudLinux got identified as RedHat
2018-10-25 14:19:20 -05:00
sparknsh
8d66211adc Fix package manager detection (#204)
* Fix package manager detection

* use release file for os detection

* Use command to to validate package manager type

* check if exists and the execute permission is granted

* make script more portable
2018-10-25 06:17:42 -05:00
Félim Whiteley
d49fe954df Add divide by zero check (#191)
On several servers (Ubuntu 18.04) DEMAND_DATA_TOTAL is 0 currently and is causing an error

Traceback (most recent call last):
  File "/usr/local/bin/zfs-linux", line 178, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/bin/zfs-linux", line 76, in main
    DATA_DEMAND_PERCENT = DEMAND_DATA_HITS / DEMAND_DATA_TOTAL * 100
ZeroDivisionError: division by zero
2018-10-23 11:46:54 -05:00
sparknsh
381cc2466a fix nginx script indentation (#205) 2018-10-23 07:51:12 -05:00
sparknsh
3dada041e4 Fix binary operator expected error (#203) 2018-10-18 09:37:10 -05:00
sparknsh
ccb244aa09 osupdate script clean up (#199)
- Change script name for simplify of configuration management orchestration scripts.
- Update code syntax.
2018-10-17 17:28:39 +01:00
sparknsh
f0f34b4a2d phpfpmsf script clean up (#198)
- Change script name for simplify of configuration management orchestration scripts.
- Update code syntax.
2018-10-17 17:28:07 +01:00
sparknsh
e0dcd4a064 nginx script clean up (#197)
- Change script name for simplify of configuration management orchestration scripts.
- Change 172.0.0.1 to localhost for better nginx handling.
2018-10-17 17:27:21 +01:00
sparknsh
1c61a96344 ntp-client data correction (#196)
NTP was not displaying data right for linux servers. It was putting the frequency data into the offset data. This was giving bad graphs in the UI. Tested the correction on both RHEL and Debian based operating systems and all passes.

Remove the .sh to simplify for configuration management orchestration scripts.
2018-10-17 17:26:45 +01:00
voxnil
28a2f8ae55 Update zfs-linux to use env for python 2018-10-15 21:00:16 +01:00
Brock Alberry
ca7a5cdafe PhotonOS distro detection (#193)
* PhotonOS distro detection

Detection before `/etc/os-release` since that is present yet missing the build number.

* awk detection

combining https://github.com/librenms/librenms-agent/pull/193 and https://github.com/librenms/librenms-agent/pull/194
2018-09-19 08:09:04 -05:00
Allison
7542bd26f4 Update distro (#194)
Adding full detection for ASUSWRT-Merlin
2018-09-18 22:20:23 -05:00
VVelox
7c173b160c convert all the NTP stuff to JSON (#174)
This requires https://github.com/librenms/librenms/pull/8571 and is for https://github.com/librenms/librenms/pull/8608 .

Also converted this to regular sh instead of bash, so it will work on more systems with less dependencies.

Has been tested as working on DD-WRT and FreeBSD.
2018-08-27 10:03:01 +01:00
VVelox
99ad80740c update for the new json_app_get stuff (#179) 2018-08-19 17:47:07 -05:00
crcro
c772ac97d3 added rockstor nas distro detection (#187) 2018-08-09 22:44:02 +01:00
TheGreatDoc
c535b1286c Asterisk Script (#183)
Asterisk App support.
- Channels
- Calls
- Total SIP Peers
- Monitored Online
- Monitored Offline
- Unmonitored Online
- Unmonitored Offline
2018-07-19 21:39:08 +01:00
István Sárándi
7e55d1cd5d Update fail2ban extend script to new JSON format (#181)
As seen at [this location](7fab99cfc1/includes/polling/functions.inc.php (L768)) the JSON output needs to contain a `data` field. The poller php script actually also extracts this `data` field as one of the first steps, see at [this line](c3007b483a/includes/polling/applications/fail2ban.inc.php (L36)).
Before I changed these parts the graph didn't show up because the RRD files simply weren't generated as an exception occurred in the poller. This fixes this problem.
2018-06-25 09:10:00 -05:00
VVelox
b5d77f1a99 convert fail2ban-client to JSON (#172)
* convert to JSON

* add version return

* change the version number of the returned data to 1
2018-05-28 07:22:09 -05:00
VVelox
41d36dc97f make using SN or device name selectable for SMART reporting (#168)
* make using SN or device name selectable

* change the default to SN
2018-04-27 22:46:57 +01:00
Sander Steffann
385d466eee Add random entropy monitoring (#173) 2018-04-13 17:42:27 +01:00
Serphentas
a56adb467a add zfs support for linux (#170)
* add zfs support for linux

* fix pools and anon_hits_per

* strip percent sign for pool cap

* fix anon_hits json key typo

* fix demand_data_hits json key typo

* fix comparison as in #169

* fix min_size_percent
2018-04-11 09:39:32 +01:00
VVelox
8ec6017246 correct arc size breakdown (#171) 2018-04-11 08:34:39 +01:00
VVelox
3ddb1d6be6 correct arc size breakdown 2018-04-10 22:04:07 -05:00