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

236 Commits

Author SHA1 Message Date
658c3c6ead Merge branch 'zfs-fix' of https://github.com/VVelox/librenms-agent into zfs-fix 2019-03-17 06:06:57 -05:00
6564128305 remove unneeded else statement and re-apply patch 2019-03-17 06:02:43 -05:00
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
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
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
3a407e3f72 Update powerdns script to json (#218) 2019-01-17 11:44:02 -06:00
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
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
6fdaffa1b2 Added gpsd script for SNMP Extend (#217)
Fixed Typos

Fixed another typo
2019-01-09 23:35:28 -06:00
f54c442d06 Merge pull request #216 from jasoncheng7115/patch-2
Added Proxmox VE Versoin support
2018-12-29 22:17:13 +01:00
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
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
107d72e862 Added Proxmox VE Versoin support 2018-12-25 09:15:22 +08:00
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
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
dc3d2673dd Update distro
Remove extra white spaces.
2018-12-14 18:49:58 +01:00
456d2e7672 Update distro
Minor changes to the code, for better output.
2018-12-14 18:47:54 +01:00
5b53ab54c8 Update distro 2018-12-12 16:09:25 +01:00
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
a827734c0e CloudLinux distro detection (#208)
Added CloudLinux distro detection, previously CloudLinux got identified as RedHat
2018-10-25 14:19:20 -05:00
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
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
381cc2466a fix nginx script indentation (#205) 2018-10-23 07:51:12 -05:00
3dada041e4 Fix binary operator expected error (#203) 2018-10-18 09:37:10 -05:00
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
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
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
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
28a2f8ae55 Update zfs-linux to use env for python 2018-10-15 21:00:16 +01:00
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
7542bd26f4 Update distro (#194)
Adding full detection for ASUSWRT-Merlin
2018-09-18 22:20:23 -05:00
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
99ad80740c update for the new json_app_get stuff (#179) 2018-08-19 17:47:07 -05:00
c772ac97d3 added rockstor nas distro detection (#187) 2018-08-09 22:44:02 +01:00
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
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
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
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
385d466eee Add random entropy monitoring (#173) 2018-04-13 17:42:27 +01:00
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
8ec6017246 correct arc size breakdown (#171) 2018-04-11 08:34:39 +01:00
3ddb1d6be6 correct arc size breakdown 2018-04-10 22:04:07 -05:00
90fd6f60f3 Should be greater than or equal to (#167) 2018-03-23 16:24:02 +00:00
3a84624615 Replace disk identifier with disk serial in S.M.A.R.T snmp script (#164) 2018-02-27 21:10:35 +00:00
bbd3b1309a Fix Command_Timeout missing from SMART output (#163) 2018-02-18 20:33:42 +00:00
fd9fd178a4 extend: powerdns-dnsdist (#158)
* powerdns-dnsdist app

* fix script in help

* removed local data manipulation

* again name of file in script help

* removed personal api info
2018-01-06 20:06:45 +00:00
bacaca0be4 ZFS SNMP agent :3 <3 (#156)
* Add it as it currently is. Needs to be moved over to JSON

* rename it to zfs-freebsd as it is FreeBSD specific

now uses JSON

* misc. updates and document it all

* minor spelling correction
2017-12-30 11:42:37 +00:00
c7cae0765e update the fail2ban stuff (#155)
Dropping firewall checking as the new fail2ban uses pf and anchors on
FreeBSD, which while esoteric as fuck works nicely and is reliable.
2017-12-30 11:39:36 +00:00
8920cd3f29 freeradius.sh: new agent for incoming main PR (#151)
* Update os-updates.sh

* Update os-updates.sh

* Update os-updates.sh

* Create freeradius.sh

* Update freeradius.sh

* Update freeradius.sh
2017-12-12 21:13:10 -06:00
3b9d632a8d hddtemp, ignore devices not supporting SMART (#153) 2017-12-04 20:11:17 +00:00