From dadc369c1cbf94f590114a9c2edd506c5eeb0902 Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Wed, 1 May 2019 14:55:54 +0200 Subject: [PATCH] add mdadm support --- qq | 2069 ++++++++++++++++++++++++++++++++++++++++++++++++++++ snmp/mdadm | 104 +++ 2 files changed, 2173 insertions(+) create mode 100644 qq create mode 100755 snmp/mdadm diff --git a/qq b/qq new file mode 100644 index 0000000..58a21ca --- /dev/null +++ b/qq @@ -0,0 +1,2069 @@ +commit 3361bf4c3ae5868b00d09215e10359f58a36ac12 +Author: SourceDoctor +Date: Wed May 1 14:55:54 2019 +0200 + + add mdadm support + +commit d822c899a78bdfd1e7d9f4df2bd5cd512b1696bd +Merge: 8fbfbd5 544fd8b +Author: VVelox +Date: Sun Mar 24 03:56:16 2019 -0500 + + Merge pull request #226 from VVelox/smart-update + + SMART monitoring update adding RAID support + +commit 544fd8bd6e525b3c29d9965c2b405b39ba49a98d +Author: Zane C. Bowers-Hadley +Date: Tue Mar 19 02:58:30 2019 -0500 + + update the date + +commit 8fbfbd5b39bbc22ca606327813c4fe54b38e4d30 +Merge: cb04f8c 38acc2b +Author: VVelox +Date: Tue Mar 19 02:53:30 2019 -0500 + + Merge pull request #225 from VVelox/pa-fix + + portactivity fixes + +commit 503fb9f7389d8307074ed856f96a870a0d26dd72 +Author: Zane C. Bowers-Hadley +Date: Tue Mar 19 02:25:17 2019 -0500 + + tested and it appears to work properly... documentation updated + +commit bdfd0ceea948382684a2bd96659731f9ac5f15b1 +Author: Zane C. Bowers-Hadley +Date: Tue Mar 19 00:40:06 2019 -0500 + + update the guessing to only use smartctl --scan-open and generate with more complex options + +commit 38acc2bd3d8e81414b4bfc2cb2bb3e955877fbc1 +Author: Zane C. Bowers-Hadley +Date: Mon Mar 18 03:39:17 2019 -0500 + + actually make this work on system not FreeBSD and deal with the bug where a connection may not have a protocol + +commit cb04f8c0ac148cb2b250d0a408f672db22e99ed5 +Merge: 147cb67 af32f56 +Author: VVelox +Date: Sun Mar 17 23:27:46 2019 -0500 + + Merge pull request #224 from VVelox/zfs-fix + + ZFS-FreeBSD divide by zero fix + +commit af32f56a74e0d9915b4beb419a28814e9bf058d8 +Author: Zane C. Bowers-Hadley +Date: Sun Mar 17 06:07:59 2019 -0500 + + merge... and update version + +commit 658c3c6ead712837bbb763c6b9ecdd782b043629 +Merge: 6564128 147cb67 +Author: Zane C. Bowers-Hadley +Date: Sun Mar 17 06:06:57 2019 -0500 + + Merge branch 'zfs-fix' of https://github.com/VVelox/librenms-agent into zfs-fix + +commit 656412830564593cfefeee5dceeae89bfa371000 +Author: Zane C. Bowers-Hadley +Date: Sun Mar 17 06:02:43 2019 -0500 + + remove unneeded else statement and re-apply patch + +commit 3ce06d6defc63f200f2bbfec7718748c8ec9e832 +Author: Zane C. Bowers-Hadley +Date: Sun Mar 17 05:55:33 2019 -0500 + + freshly initilized ZFS pulls that are not in use don't have a $data_demand_total + +commit 147cb67824b213045826677946166c8ee807f23c +Author: Tony Murray +Date: Tue Feb 12 20:33:05 2019 -0600 + + Use os-release whenever possible for the distro script (#220) + + Except centos... https://bugs.centos.org/view.php?id=8359 + +commit c9a0d2893e44f89f7c8c9450a9d42438eff1404d +Author: Felicián Hoppál +Date: Mon Feb 11 23:06:57 2019 +0100 + + 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 + +commit 3a407e3f721b7677fb2724af736ea87838d4dcc5 +Author: Tony Murray +Date: Thu Jan 17 11:44:02 2019 -0600 + + Update powerdns script to json (#218) + +commit ad300c035a2be4a55553c2994d5ce7ba69d57432 +Author: VVelox +Date: Wed Jan 9 23:41:39 2019 -0600 + + 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 + +commit c40606140114b9059409f17a21b06fe8655b760e +Author: Slashdoom <5092581+slashdoom@users.noreply.github.com> +Date: Thu Jan 10 18:40:40 2019 +1300 + + Fix: InnoDB stat support for MariaDB v10+ (#211) + + * mariadb innodb support for v10+ + + * fix newer innodb insert buffers + + * agent mysql to snmp extend + +commit 6fdaffa1b2ba8c49ed8bd38fb6445335b3146329 +Author: Mike Centola +Date: Thu Jan 10 00:35:28 2019 -0500 + + Added gpsd script for SNMP Extend (#217) + + Fixed Typos + + Fixed another typo + +commit f54c442d06abd7d2112dc4dc5db315524030308c +Merge: 1b90904 107d72e +Author: CrazyMax +Date: Sat Dec 29 22:17:13 2018 +0100 + + Merge pull request #216 from jasoncheng7115/patch-2 + + Added Proxmox VE Versoin support + +commit 1b90904f61c6d4078f2b427e17c82cf1f8b926ba +Author: VVelox +Date: Fri Dec 28 20:10:13 2018 -0600 + + 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 + +commit 5be1b168ba4e03ba3a58b3833a26587474ff7b29 +Author: VVelox +Date: Fri Dec 28 20:08:46 2018 -0600 + + 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 + +commit 107d72e862c2e2a53870272859252a5d39bf8c72 +Author: Jason Cheng <30381035+jasoncheng7115@users.noreply.github.com> +Date: Tue Dec 25 09:15:22 2018 +0800 + + Added Proxmox VE Versoin support + +commit 433d744953fa800ce49fa060b141c10663c0b952 +Author: Jason Cheng <30381035+jasoncheng7115@users.noreply.github.com> +Date: Sun Dec 16 22:21:00 2018 +0800 + + 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) + +commit 3c4511d987c2058bd6e8605bb0e87c6fc1d36861 +Merge: ff124a1 dc3d267 +Author: CrazyMax +Date: Fri Dec 14 19:03:01 2018 +0100 + + Merge pull request #214 from dsgagi/patch-1 + + Fix Debian detection on Proxmox - lsb_release binary doesn't exist + +commit dc3d2673ddc86d02ca2cd8d93bbf2fd53ca43c55 +Author: dsgagi +Date: Fri Dec 14 18:49:58 2018 +0100 + + Update distro + + Remove extra white spaces. + +commit 456d2e7672d8532af4df7f6da2b5c18b02778bf7 +Author: dsgagi +Date: Fri Dec 14 18:47:54 2018 +0100 + + Update distro + + Minor changes to the code, for better output. + +commit 5b53ab54c8a6d9f3b81abf42725b5da2b3ebec3d +Author: dsgagi +Date: Wed Dec 12 16:09:25 2018 +0100 + + Update distro + +commit ff124a1358755ceddc0ae6a4187d358da0d54d06 +Author: VVelox +Date: Thu Nov 22 09:04:58 2018 -0600 + + 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 + +commit a827734c0ec0e0cdf5e2a04730ec68dbad3fd477 +Author: gardar +Date: Thu Oct 25 19:19:20 2018 +0000 + + CloudLinux distro detection (#208) + + Added CloudLinux distro detection, previously CloudLinux got identified as RedHat + +commit 8d66211adc47d3bad5dd042e3ddbc59a23a28819 +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Thu Oct 25 07:17:42 2018 -0400 + + 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 + +commit d49fe954dfdeffbeee091051f1f0c515d020f281 +Author: Félim Whiteley +Date: Tue Oct 23 17:46:54 2018 +0100 + + 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 + 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 + +commit 381cc2466af521772607c682a9a707471a38ff4b +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Tue Oct 23 08:51:12 2018 -0400 + + fix nginx script indentation (#205) + +commit 3dada041e433318592e137678d24c32dd1a134b4 +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Thu Oct 18 10:37:10 2018 -0400 + + Fix binary operator expected error (#203) + +commit ccb244aa09de36e4e4dd85120702580144e86383 +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Wed Oct 17 12:28:39 2018 -0400 + + osupdate script clean up (#199) + + - Change script name for simplify of configuration management orchestration scripts. + - Update code syntax. + +commit f0f34b4a2d1a36836f6bffe4307d5d51524009b4 +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Wed Oct 17 12:28:07 2018 -0400 + + phpfpmsf script clean up (#198) + + - Change script name for simplify of configuration management orchestration scripts. + - Update code syntax. + +commit e0dcd4a064cedb09241e4af17198bf61e8fd1bf3 +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Wed Oct 17 12:27:21 2018 -0400 + + 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. + +commit 1c61a96344317c13fce90811c11c0fa4cb7efb36 +Author: sparknsh <38894705+sparknsh@users.noreply.github.com> +Date: Wed Oct 17 12:26:45 2018 -0400 + + 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. + +commit 28a2f8ae55db7ca773f881560017b4890bc4bbce +Author: voxnil <14983067+voxnil@users.noreply.github.com> +Date: Mon Oct 15 13:00:16 2018 -0700 + + Update zfs-linux to use env for python + +commit ca7a5cdafe6dd603538aad8f63bc624143f98377 +Author: Brock Alberry +Date: Wed Sep 19 09:09:04 2018 -0400 + + 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 + +commit 7542bd26f4c883c7e622056a1a34909d1dc9aa2c +Author: Allison +Date: Tue Sep 18 20:20:23 2018 -0700 + + Update distro (#194) + + Adding full detection for ASUSWRT-Merlin + +commit 7c173b160c5be401fa36d85edf15add61a3146d7 +Author: VVelox +Date: Mon Aug 27 04:03:01 2018 -0500 + + 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. + +commit 99ad80740cb2fcea1c33e59caf1c05af5a53a14f +Author: VVelox +Date: Sun Aug 19 17:47:07 2018 -0500 + + update for the new json_app_get stuff (#179) + +commit c772ac97d3f5b805c311fd13d924513b4561d10b +Author: crcro +Date: Fri Aug 10 00:44:02 2018 +0300 + + added rockstor nas distro detection (#187) + +commit c535b1286c7701a2cefcd10ffd799fba65e56dd2 +Author: TheGreatDoc <32565115+TheGreatDoc@users.noreply.github.com> +Date: Thu Jul 19 22:39:08 2018 +0200 + + Asterisk Script (#183) + + Asterisk App support. + - Channels + - Calls + - Total SIP Peers + - Monitored Online + - Monitored Offline + - Unmonitored Online + - Unmonitored Offline + +commit 7e55d1cd5db04019de09aff7b134a85df71e901a +Author: István Sárándi +Date: Mon Jun 25 16:10:00 2018 +0200 + + Update fail2ban extend script to new JSON format (#181) + + As seen at [this location](https://github.com/librenms/librenms/blob/7fab99cfc13b80a543fb779d68c659b52fc074b1/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](https://github.com/librenms/librenms/blob/c3007b483a12758042e5d0c6009a8ef48e3e1a39/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. + +commit b5d77f1a999c5e0f08bc02550fd24e7c37b759c7 +Author: VVelox +Date: Mon May 28 07:22:09 2018 -0500 + + convert fail2ban-client to JSON (#172) + + * convert to JSON + + * add version return + + * change the version number of the returned data to 1 + +commit 41d36dc97f6886bae4ae6e8ba928892ef9d3c8c3 +Author: VVelox +Date: Fri Apr 27 16:46:57 2018 -0500 + + make using SN or device name selectable for SMART reporting (#168) + + * make using SN or device name selectable + + * change the default to SN + +commit 385d466eee1adc06eecd4a84cfd6615f2e4ba2ec +Author: Sander Steffann +Date: Fri Apr 13 17:42:27 2018 +0100 + + Add random entropy monitoring (#173) + +commit a56adb467a1cdf9785f977420dd07a48335f41b3 +Author: Serphentas +Date: Wed Apr 11 10:39:32 2018 +0200 + + 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 + +commit 8ec6017246edc9784e670d84bd8b52ec094dbb82 +Author: VVelox +Date: Wed Apr 11 02:34:39 2018 -0500 + + correct arc size breakdown (#171) + +commit 3ddb1d6be6b4a4a0cd006251b497bb1ccf8170e8 +Author: VVelox +Date: Tue Apr 10 22:04:07 2018 -0500 + + correct arc size breakdown + +commit 90fd6f60f3aed5f71140d23a8d022ae9909e7473 +Author: Dylan Underwood +Date: Fri Mar 23 11:24:02 2018 -0500 + + Should be greater than or equal to (#167) + +commit 3a8462461595535a53554b0ad66bc922118e83d1 +Author: endofline +Date: Tue Feb 27 23:10:35 2018 +0200 + + Replace disk identifier with disk serial in S.M.A.R.T snmp script (#164) + +commit bbd3b1309aaa3ecaf6f502e92718719539715c58 +Author: endofline +Date: Sun Feb 18 22:33:42 2018 +0200 + + Fix Command_Timeout missing from SMART output (#163) + +commit fd9fd178a4b43feafb414822167b3033693c8efc +Author: crcro +Date: Sat Jan 6 22:06:45 2018 +0200 + + 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 + +commit bacaca0be4104cc003222b941e433d5470cae76d +Author: VVelox +Date: Sat Dec 30 05:42:37 2017 -0600 + + 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 + +commit c7cae0765e0f5072fdf3dd224f357290e2697fb5 +Author: VVelox +Date: Sat Dec 30 05:39:36 2017 -0600 + + 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. + +commit 8920cd3f290e8c13a3bb7db96ceb8db05845869d +Author: Slashdoom <5092581+slashdoom@users.noreply.github.com> +Date: Wed Dec 13 16:13:10 2017 +1300 + + 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 + +commit 3b9d632a8d6dbd6ac3f42f75ba36faa235ef4440 +Author: arrmo +Date: Mon Dec 4 14:11:17 2017 -0600 + + hddtemp, ignore devices not supporting SMART (#153) + +commit 7fb48df8579a8e113153c1439a4fa92829847d9f +Author: Daniel Bull +Date: Fri Oct 27 06:41:05 2017 +0100 + + Fix: Apache SNMP extend IndexError (#116) + + See issue for more information: + https://github.com/librenms/librenms-agent/issues/95 + +commit 2996ad88b00f24777c0e5629cb931b8b448dd515 +Author: dragans +Date: Fri Oct 27 07:39:09 2017 +0200 + + fix: Update mysql (#127) + + Update mysql agent script based on updated changes in newest version of Percona Monitoring Plugins (Cacti template). + + Changes enable correct parsing of status data for newer versions of MySQL/MariaDB database servers and should be backward compatible with older versions. + +commit d0762871b4cfb0a7cbfcc5ba99bc1fe0b0c51cf3 +Author: Slashdoom <5092581+slashdoom@users.noreply.github.com> +Date: Tue Oct 10 08:02:05 2017 +1300 + + os-update.sh: back to package management based and count fixes (#149) + + * Update os-updates.sh + + * Update os-updates.sh + + * Update os-updates.sh + +commit 6a40ca1e9cc4319e6b7363541feb9681dcf5bc5f +Author: tomarch +Date: Wed Sep 20 21:47:11 2017 +0200 + + fix munin agent (#148) + + Without the full munin-scripts path, this script won't find munin file and return nothing. + +commit 1b03d2f9f74ca29b177e596c0ff2ba13a0e1292d +Author: Uwe Arzt +Date: Wed Sep 6 20:42:58 2017 +0200 + + Add Oracle Linux Distribution to distro script (#146) + + * Add Oracle Linux to distro script + + * Revert local change + +commit 45478555df856af51e707c3cd6ace716c709e0fb +Author: arrmo +Date: Sun Aug 27 14:59:15 2017 -0500 + + Update Distro, for Raspbian Support (#144) + +commit 3380a85ff13f0dad706690b71b2bd8e9d9452926 +Author: Zucht +Date: Sat Aug 12 17:30:02 2017 +0200 + + Update raspberry.sh (#143) + + Fix state WMV9 + +commit a50e1dffb89738814a1183e2e0560ab86daaf3f0 +Author: Neil Lathwood +Date: Thu Aug 3 17:11:26 2017 +0100 + + Update raspberry.sh (#140) + +commit 584fd645d470e85e30607b8be3102292b4a7b54e +Author: drid +Date: Wed Jul 12 22:55:02 2017 +0300 + + C.H.I.P. power values (#134) + + * C.H.I.P. power values + + * Added attribution + + * Fix ACIN current calculation + + * Battery current fix + +commit 3f9dc0f5f02c1590d6e84ac10c6f7c973d54f771 +Author: RedChops +Date: Thu Jun 29 16:11:26 2017 -0400 + + Fix for bug https://github.com/librenms/librenms/issues/6821 (#138) + +commit a4efb62466c58ee05b3c078283a2a9fecb7cd3ce +Author: Stefan Funke +Date: Wed Jun 28 22:36:26 2017 +0200 + + unnecessary use of wc while already calling grep (#137) + + * useless call of wc while already calling grep + + * move grep count call to CMD_GREP to stay in project style + +commit cc6d7882dba89bce0a1f3a27d9fd3b399a2430b9 +Author: einarjh +Date: Sat Jun 10 11:20:48 2017 +0200 + + Strip all non-ASCII characters from hddtemp output (#136) + +commit 3903f431f7f56ef4f48bd50d28c05aec8e795bc0 +Author: crcro +Date: Tue Jun 6 01:00:29 2017 +0300 + + bash script for pi-hole app (#135) + +commit 84630dfb84539936efa47bfe3b13638f809a82c5 +Author: Félim Whiteley +Date: Wed May 31 22:23:38 2017 +0100 + + Fix for first line as localhost (#130) + + An example output like below where the first line of output is just "localhost" so it causes the splitting to cause an out of index error. + + Example: + cat /tmp/apache-snmp + localhost + ServerVersion: Apache/2.4.25 (Ubuntu) PHP/5.6.30-5+deb.sury.org~trusty+2 + ServerMPM: prefork + Server Built: 2016-12-21T00:00:00 + CurrentTime: Thursday, 18-May-2017 19:26:43 EDT + RestartTime: Thursday, 18-May-2017 11:35:48 EDT + ParentServerConfigGeneration: 2 + ParentServerMPMGeneration: 1 + ServerUptimeSeconds: 28255 + ServerUptime: 7 hours 50 minutes 55 seconds + Load1: 0.04 + Load5: 0.05 + Load15: 0.10 + Total Accesses: 5367 + Total kBytes: 61432 + CPUUser: 19.69 + CPUSystem: 1.05 + CPUChildrenUser: 0 + CPUChildrenSystem: 0 + CPULoad: .0734029 + Uptime: 28255 + ReqPerSec: .189949 + BytesPerSec: 2226.38 + BytesPerReq: 11721 + BusyWorkers: 1 + IdleWorkers: 6 + Scoreboard: ___....._.__.W........................................................................................................................................ + +commit 16178c6ac31ed2511243ccfab5b25b69b031d3fa +Author: Aldemir Akpinar +Date: Thu Jun 1 00:23:07 2017 +0300 + + Added devuan support for os-updates.sh and removed code repitition (#131) + +commit f473c5e30ca0649baa590dd5a7f041ce91f57e73 +Author: BlackDex +Date: Tue May 23 14:44:05 2017 +0200 + + Added try-except checks for global values. (#107) + + Fixed an error which prevented output. + It seems some ceph version probably use different values or something. This is a quick fix to have the script output the correct values. + +commit 6fdcc91f7041ad49cbb906b814a1b5ecf8fd2e4c +Author: Karl Shea +Date: Thu May 4 02:06:32 2017 -0500 + + Fix bind config file read (#125) + +commit e3dad6cfc9c6549e1f5cfef41ef2cf20a9827352 +Author: VVelox +Date: Wed May 3 09:23:40 2017 -0500 + + BIND cleanup and expansion (#108) + + * add BIND named SNMP extend + + * nolonger piss the entire stats across the wire, but crunch them and return them + + * more work on bind + + * more misc. updates + + * add proper agent support as well as optional zeroing + + * add -m + +commit 69eee9fb898bd521e3f4ab5d2d93cf5b34949e1d +Author: Aldemir Akpinar +Date: Tue May 2 12:22:19 2017 +0300 + + Added Devuan GNU/Linux support (#124) + +commit eaa6af235978405418d8e6d6e0beb04f761a578b +Author: crcro +Date: Thu Apr 27 22:54:55 2017 +0300 + + snmp-extend: sdfsinfo (#122) + + * sdfsinfo app snmp extend + + * rewrite script to bash + + * more vars + +commit 69e1ace889cfee6963cc6506a5e96fb30cabac1b +Author: RedChops +Date: Sat Apr 22 19:29:00 2017 -0400 + + Include missing SMART ids in the output (#120) + +commit 705cc0f3fe62e4837ecf4be86dec95558ca07ff3 +Author: Svennd +Date: Tue Apr 18 22:34:05 2017 +0200 + + add support for SGE/rocks job tracker (#118) + +commit d7085e001cebf0bf086b84ac0c65cad54f90ee38 +Author: Chris Putnam +Date: Tue Apr 18 13:32:41 2017 -0700 + + hddtemp: parallelize calls to hddtemp for performance (#117) + + This poll script runs hddtemp with a list of all drives as arguments and reads the output. hddtemp scans each drive's SMART status serially, which scales poorly with a large number of drives. + + In lieu of a patch to the actual hddtemp project, optionally use GNU parallel when available to parallelize the call to hddtemp. + + In testing a machine with 58 drives I went from a runtime of about 5 seconds per run to 0.5s, a performance improvement of 10x. + +commit 5f47aad492a679a81da0a19f2649f60d6637e199 +Author: Chris Putnam +Date: Fri Apr 7 01:45:56 2017 -0500 + + hddtemp: improve detection of drives (#115) + + Previously, this script was only able to find 26 drives (sda-sdz) due to the use of globbing. + + A better strategy for detecting drives would be to use lsblk on systems that support it, failing over to globbing. + + This patch adds support both for lsblk and a more comprehensive glob solution with find that will at least catch 26^2 drives. + +commit 67bae5a86cfe47c90ade541c1e613f7e5e788cfd +Author: Philip Rosenberg-Watt +Date: Thu Apr 6 03:24:36 2017 -0600 + + fix: Update proxmox agent to use new Perl module (#88) + + PVE::API2Client is deprecated in Proxmox 4.4-6. Agent now requires + installation of libpve-apiclient-perl via apt. + + This commit fixes #81. + +commit a7fe1f8e6f98640463a93f934ac2580311db09ca +Author: Tony Murray +Date: Wed Mar 29 19:11:23 2017 -0500 + + Copy powerdns-recursor to snmp and remove <<>> header (#111) + +commit 74faec281c13928e60c140d85bb3138e7297fa79 +Author: Florian Beer +Date: Thu Mar 30 00:00:26 2017 +0200 + + Postfix app bug fixes (#105) + + * Postfix app bug fixes + + - add missing DS + - fix some totals + + * Move new variable to end of output + +commit 1e7762fb4eb832ed9d7530994804a284028c9c7c +Author: VVelox +Date: Wed Mar 22 09:28:57 2017 -0500 + + add SMART SNMP extend script (#101) + + * add SMART SNMP extend + + * cleanup default disk examples + + * correct a small typo + + * add option caching support + + * add checking selftest log and nolonger zeros non-existent IDs + + * now uses a config file + + * add the ability to guess at the config + + * properly remove device entries with partitions now and avoid adding dupes in a better manner + + * now have smartctl scan as well to see if it missed anything + + * note why ses and pass are ignored + + * properly use the cache file in the config now + + * actually use the cache now + +commit 94aa0feacdfc71b6d8044c66992069538071ca39 +Author: VVelox +Date: Sun Mar 19 13:03:59 2017 -0500 + + add unbound SNMP extend script (#102) + +commit 495f46afb431a0ef29fe58c40a01c7f9d352c3d5 +Author: Tony Murray +Date: Fri Mar 10 06:29:19 2017 -0600 + + Update mysql script to php7 version... (#104) + + * Update mysql script to php7 version... + + * Update mysql + +commit 61579bf0ace0a963f6ffbf9ca263910c5f6614fe +Author: Tuxis Internet Engineering V.O.F +Date: Wed Mar 8 09:51:04 2017 +0100 + + Enable ipv6 in Xinetd (#100) + + * Fix indenting and enable IPv6 in Xinetd + + * Fix changelog + + * Typo + +commit 7f79fc4167adac967d89d0ee6277f78886a5c7b9 +Author: Tony Murray +Date: Tue Mar 7 23:48:15 2017 -0600 + + Update mysql + +commit 1b1d8b491f842edc3e04c5405ae13de4f60a6751 +Author: VVelox +Date: Tue Mar 7 23:40:09 2017 -0600 + + clean up snmp/mysql_stats.php and make it a proper snmpd extend script now (#99) + + * cleanup and make it something that can properly be invoked via cli + + * blank the user/pass/host bits increasing the chances it will work out of the box + + * Update mysql_stats.php + + * Update mysql_stats.php + + * Update mysql_stats.php + + * Update mysql_stats.php + + * Rename mysql_stats.php to mysql + +commit e7c331070100290b3780ba6907add81be82165c6 +Author: VVelox +Date: Fri Mar 3 14:41:38 2017 -0600 + + add Nvidia SNMP extend poller (#94) + + * add Nvidia SNMP extend + + * update the extend path + + * now support more than 4 GPUs + + this will now support how ever many GPUs are installed on a system... + + Just double checked and it appears nvidia-smi dmon only reports up to 4 GPUs at a time... so if we have more than 4, begin checking they exist and if so print them + +commit 2308481188f72bbad12d7d94ebd941a73fc97655 +Author: VVelox +Date: Fri Mar 3 12:55:55 2017 -0600 + + add squid snmp extend (#93) + +commit 2700598925c8481641def507a4bf902a27cb01af +Author: VVelox +Date: Fri Mar 3 08:49:15 2017 -0600 + + FreeBSD NFS extends (#90) + + * add the FreeBSD NFS client and server extends + + * white space cleanup + + * white space cleanup + +commit db3b5c7cec8fa35832739e742c84fa61e465bd9f +Author: VVelox +Date: Wed Mar 1 17:46:13 2017 -0600 + + add Postgres SNMP extend (#91) + + * add Postgres SNMP extend + + * minor comment cleanups + + * use env for check_postgres.pl + + * quote the string + +commit 42e488743917fd39019ac9300caf391a5a8120c8 +Author: VVelox +Date: Wed Mar 1 12:35:06 2017 -0600 + + add detailed Postfix poller (#92) + + * add detailed postfix poller + + * env perl + +commit c4101c9ef2a8e8dffbfaee55f067c7c89fe18e27 +Merge: bb4c67b 8343e7f +Author: Tony Murray +Date: Fri Feb 24 11:10:43 2017 -0600 + + Merge pull request #84 from VVelox/master + + add a snmpd extend script for fail2ban + +commit 8343e7f34e1c382051f65bb9d7cf5bad454b934e +Author: Tony Murray +Date: Fri Feb 24 11:09:21 2017 -0600 + + Update fail2ban + +commit 4fcce9f01dd5b0c7979a2ebc95298ff40239bfd9 +Author: Tony Murray +Date: Fri Feb 24 11:02:19 2017 -0600 + + Redefining $firewalled + +commit 8bfbce68e503b2ddcdcc9619307d168b1c332df3 +Author: VVelox +Date: Thu Feb 23 09:54:38 2017 -0600 + + if cache older than 360 seconds, don't use it + +commit 0a78888889d1e67e5696bb59e2c8fff4fd76f9ff +Author: VVelox +Date: Thu Feb 23 09:13:59 2017 -0600 + + use $f2bc for getting jail status now and not just only overall status + +commit 1e160b86e46ff7023ea13d8de13fe98e52e3b270 +Author: VVelox +Date: Thu Feb 23 08:46:18 2017 -0600 + + don't reuse the variable $iptables + +commit 4b53918a7d09dc705c761c6eba3d0b68caca7159 +Author: VVelox +Date: Thu Feb 23 08:45:04 2017 -0600 + + poke the user about setting a iptables path as well + +commit 90620a8558e0b164fb2a714c007b14b1ba1b1567 +Author: VVelox +Date: Thu Feb 23 08:40:59 2017 -0600 + + misc. path cleanups + +commit 5ee0faa2c38e887b61b34fd4140ae23a8583d350 +Author: VVelox +Date: Wed Feb 22 21:58:03 2017 -0600 + + make caching optional + +commit 4ffd86f8bdbe8825ac0793c1cf0b86a886656f34 +Author: VVelox +Date: Wed Feb 22 21:42:53 2017 -0600 + + Update fail2ban + +commit 0227094c6fc9cf31d7d5f9a45a63e093b6e38aa5 +Author: VVelox +Date: Mon Feb 20 13:18:50 2017 -0600 + + track both firewall and fail2ban-client + +commit 3932875ce04c1b51b8bf4c43c9934f2b29800acb +Author: VVelox +Date: Mon Feb 20 03:50:59 2017 -0600 + + correct a comment + +commit c367e9ff9d61f9cee619c19278a2bdc6d8fc7637 +Author: VVelox +Date: Mon Feb 20 03:49:50 2017 -0600 + + now requires cron usage + +commit d90f3e879200108794beb7a2a4cc047f2938899e +Author: VVelox +Date: Sun Feb 19 23:41:51 2017 -0600 + + use fail2ban-client instead + +commit 710f38e8ff7cee520f9c7cc8ada421b6f32684c5 +Author: VVelox +Date: Sat Feb 18 00:09:12 2017 -0600 + + move this over to perl and properly check iptables + +commit 6f76427952194ca6036181c31402887e72317308 +Author: VVelox +Date: Fri Feb 17 23:08:53 2017 -0600 + + remove pointless exit + +commit 4b600ad2b41be4f338f1745320b3dbd64c5f5ba9 +Author: VVelox +Date: Fri Feb 17 23:08:25 2017 -0600 + + whoops, forgot to remove \ as well + +commit bb4c67b217fc6f553c36861d4da0c5edfd61913c +Merge: ff6ee0e e3f3bd3 +Author: Tony Murray +Date: Fri Feb 17 22:42:57 2017 -0600 + + Merge pull request #86 from florianbeer/patch-1 + + Update shebang + +commit 6955e5d410f87be4423ac86111841721292911fd +Author: VVelox +Date: Fri Feb 17 10:33:02 2017 -0600 + + don't assume it appends the jail name + +commit 8b78f863d34f24858ca3d061df02efa6213d3b3b +Author: VVelox +Date: Fri Feb 17 10:32:27 2017 -0600 + + update to check fail2ban and f2b + +commit e3f3bd3efb36ee391430d61d363afa1e8d322ae3 +Author: Florian Beer +Date: Fri Feb 17 16:37:00 2017 +0100 + + Update shebang + + With the original shebang this script didn't work on Debian and Ubuntu machines. Using `/usr/bin/env bash` makes the script more portable. + +commit ff6ee0e2bc0e84ce1b0c4276713f8cb70d3154a2 +Author: Robert Verspuy +Date: Fri Feb 17 01:46:13 2017 +0100 + + Fixed correct amount of pipeline symbols when degrees symbol is missing. (#85) + + When the script is called through xinetd/check_mk (on my system), there is no degree symbol, but a space. + Changed the script to handle both correctly + +commit 21c953d11af41e1256ecf92070fc36b999b1e084 +Merge: 1ec8f20 58d1726 +Author: kitsune +Date: Thu Feb 16 11:30:03 2017 -0600 + + Merge branch 'master' of https://github.com/librenms/librenms-agent + +commit 1ec8f204ee0c96ca0a9cf77dff7bdb0f79402462 +Author: VVelox +Date: Thu Feb 16 10:50:46 2017 -0600 + + add fail2ban snmpd extend script + +commit 58d17264c7d57978a408b800084f153857d3b3f9 +Author: rockyluke +Date: Thu Feb 16 16:12:01 2017 +0100 + + Use command -v instead binary path (#80) + +commit 60becc9b3a9429a42faae18440821b90ac6586fc +Author: VVelox +Date: Thu Feb 16 09:10:53 2017 -0600 + + add a single pool php-fpm net-snmpd extend poller (#83) + +commit 677bd4187e90211a70419e01fe97a809c6cabfd0 +Author: VVelox +Date: Wed Feb 15 11:37:18 2017 -0600 + + add a single pool php-fpm net-snmpd extend poller + +commit 575956cae3ea5fcb014db3777a83e52026f95baa +Author: crcro +Date: Fri Jan 20 10:47:30 2017 +0200 + + snmp: exim-stats (#79) + + * exim-stats frozen mails + + * added total queue info + +commit d090686b722a1b0d8ded3ebfedec5c3b0f8a46a3 +Merge: ae43e5f dc60463 +Author: Tony Murray +Date: Wed Dec 14 16:39:59 2016 -0600 + + Merge pull request #75 from bungojungo/master + + Added fedora support to distro/os-updates + +commit ae43e5f493941aab81c96e3dc9378da434b55ce6 +Merge: 6c130ea de1f177 +Author: Tony Murray +Date: Wed Dec 14 16:39:47 2016 -0600 + + Merge pull request #73 from paulgear/master + + Make ups-nut work on Debian Jessie + +commit 6c130ea65e191d76a12b7d6d31d4726937b0f3e4 +Merge: e527768 3d061d2 +Author: Tony Murray +Date: Wed Dec 14 16:34:10 2016 -0600 + + Merge pull request #76 from murrant/powerdns-python26 + + Support python2.6 for powerdns scripts + +commit 3d061d24079d0dcb7458a75b3d83d5aaba43acc9 +Author: Tony Murray +Date: Wed Dec 14 16:27:15 2016 -0600 + + Support python2.6 for powerdns scripts + fixes #67 + +commit dc604636bccd8779bd261b013af4872cad14e1f0 +Author: Jason Scalia +Date: Wed Dec 7 22:11:48 2016 -0500 + + added fedora/dnf support + +commit 8b3ca2dac293ef132f1e48afa871b7158d692d90 +Author: Jason Scalia +Date: Wed Dec 7 21:48:22 2016 -0500 + + Added fedora support + +commit de1f1775cc26aacb931141182c212de706b80b5f +Author: Paul Gear +Date: Sat Dec 3 14:16:54 2016 +1000 + + Restore previous default UPS name + +commit 465ec12dd4757baa95560b11f89a433f05fb7454 +Author: Paul Gear +Date: Sat Dec 3 14:07:02 2016 +1000 + + Make ups-nut work on Debian Jessie + + This script was broken on Debian Jessie (and probably + all other Debian-based distros, including Ubuntu). + This commit removes the hard-coding of paths and uses + $PATH per normal bash practice, and should work on a + wider range of shell variants. + +commit e52776889cea5e3379422ce4ffb7171bba4fbdf1 +Author: arrmo +Date: Sat Nov 26 02:12:41 2016 -0600 + + Update to Distro (to support dd-wrt) (#72) + +commit c5fea261dea71cc9600936455bdf357cc062b220 +Author: Mathias B +Date: Thu Nov 17 09:31:56 2016 +0100 + + Add Debian support (#71) + + Before that only Ubuntu was supported, now Debian users can use this nice script too! + +commit 36ed3f008c6f2a0cc0be0cdb1ce9199a6e495dbc +Author: Karl Shea +Date: Sat Oct 8 15:26:07 2016 -0500 + + Agent: script to collect data from GPSD (#69) + +commit 91c251fd94d73f44e8757b242db82ed240f80a1d +Author: Tuxis Internet Engineering V.O.F +Date: Wed Oct 5 11:06:48 2016 +0200 + + fix: a dirty hack to prevent failing of stats when the cluster is rebuilding (#68) + + because Ceph returns '-inf' which the json decompiler doesn't seem to get.. + +commit dd365168a5eedf655d87e34e89664b191f855a15 +Author: crcro +Date: Mon Oct 3 21:27:56 2016 +0300 + + fix conflict (#66) + +commit 58e16b794a0e33d0dd71d8c1f936bc8b25ad7ced +Author: crcro +Date: Sun Sep 25 16:28:37 2016 +0300 + + snmp-extend: os-updates (#65) + + * reverted back to os-release checks, added arch pacman + + * fixed file name + +commit 2699cde73fcbca9e556a762dcfd90c81e5561d26 +Author: crcro +Date: Sun Sep 25 16:28:00 2016 +0300 + + snmp-extend: ups-apcups (#58) + + * snmp-extend-ups-apcups + + * rewrite of apc ups + + * header fix + + * header fix + +commit fa308bfe3f388f110e9df083d6b2c649fa69472e +Author: crcro +Date: Sat Sep 24 20:30:09 2016 +0300 + + snmp-extend: ups-nut update 1 (#63) + + * new code for better matching, snmp-extend compliance + + * removed unused vars + + * extra fixes + + * removed the need of tmp file + + * removed charge_low, deemed useless by user + + * removed values that are not plottable + + * readded ds + +commit f63c4ab7bea382b08d0450b42a374db082ccd0ef +Merge: c1c537e d9f36a8 +Author: Tony Murray +Date: Mon Sep 12 22:01:51 2016 -0500 + + Merge pull request #61 from crcro/app-ntp-server-update-1 + + app: ntp-server update 1 + +commit c1c537eea11fde70435e88b28b17292dc7c72f75 +Merge: 9a2716d 11a9fce +Author: Tony Murray +Date: Mon Sep 12 22:01:24 2016 -0500 + + Merge pull request #57 from crcro/snmp-extend-ups-nut + + snmp-extend: ups-nut + +commit 9a2716dc83ad11462495e5ee804fb122eb402faa +Merge: 87cc835 85ae77c +Author: Tony Murray +Date: Mon Sep 12 19:33:07 2016 -0500 + + Merge pull request #60 from crcro/remove-ntp-php + + remove obsolete ntp scripts + +commit d9f36a84b13dd42361d24df11d6cb60c7b71f260 +Author: crcro +Date: Mon Sep 12 12:48:17 2016 +0300 + + cleaner code + +commit 28cae5cff3b87532fd145c55de5b22aa0f4c6d05 +Author: crcro +Date: Mon Sep 12 11:52:13 2016 +0300 + + better handling default case + +commit aeecb1621c8ed5863d5c7563ffc96047909b8cfa +Author: crcro +Date: Mon Sep 12 11:45:14 2016 +0300 + + header fix + +commit f48f4cc6e513773fac094d6b3115954deaeacbc7 +Author: crcro +Date: Mon Sep 12 11:43:34 2016 +0300 + + update 1 ntp server + +commit 87cc835096ffdd4f8310b51e684f63aa7726d14d +Author: crcro +Date: Sat Sep 10 19:08:03 2016 +0300 + + os-updates.sh clean (#59) + +commit 85ae77c01c28308dd1f58b897aa7c8efe5b87386 +Author: crcro +Date: Sat Sep 10 04:50:33 2016 +0300 + + remove obsolete ntpd-server.php + +commit 262f798a9737a5b62bef0ab7a657782a934b86ac +Author: crcro +Date: Sat Sep 10 04:48:55 2016 +0300 + + remove obsolete ntp-client.php script + +commit 11a9fcef62571e12168b8c1e9d1ac604b65c227d +Author: crcro +Date: Fri Sep 9 15:36:01 2016 +0300 + + snmp-extend-ups-nut + +commit 6128dc3c7133802ff66b199bc99289fb07761d6e +Author: vectr0n +Date: Fri Sep 9 02:16:28 2016 -0400 + + Update hddtemp to include hddtemp -w option (#56) + + hddtemp gives inconsistent values in it's current state, after some debugging I was able to resolve the issue by passing -w to the hddtemp command, this will wake-up the drive if it is in a sleep state to gather information. + +commit 42bc0a07aab450e242471e271380fc29642b34e7 +Author: crcro +Date: Wed Sep 7 22:37:31 2016 +0300 + + ntp-client app using shell only, tested with ntpq 4.2.8p8 (#54) + +commit 718d627cfdbad19848a384fc8eaba332dcaef504 +Author: crcro +Date: Wed Sep 7 22:37:23 2016 +0300 + + app: ntp-server (#55) + + * ntp-server app using shell only, tested with 4.2.8p8 + + * fix for higher stratum value + + * change the description in comment to reflect latest webui push + +commit 351e5aa7bc6f1a79d51b1bd098cace659c1b0e9f +Author: Tatermen +Date: Sun Aug 28 20:06:04 2016 +0100 + + Freeswitch (#53) + + feature: Added freeswitch support + +commit 839b518358d2acb488c3d7709e12392ee2b4c224 +Merge: 6a84755 561efa4 +Author: Neil Lathwood +Date: Tue Aug 23 21:48:08 2016 +0100 + + Merge pull request #52 from murrant/move-scripts + + SNMP extend scripts from the main repo + +commit 561efa41be5e22614912300ac9242582340e0662 +Author: Tony Murray +Date: Mon Aug 22 21:35:13 2016 -0500 + + SNMP extend scripts from the main repo + +commit 6a84755105f651d03939310b4bd5a3cd85dc90dd +Merge: c2e4c33 deb3683 +Author: Tony Murray +Date: Sun Aug 21 19:58:13 2016 -0500 + + Merge pull request #51 from crcro/dhcp_pretty + + rewrite dhcp-stats with loop + +commit deb36833f17d31ddd6176aa7dfc3767817e7c446 +Author: crcro +Date: Mon Aug 22 01:45:23 2016 +0300 + + @paulgear recomandation + +commit c2e4c33abf5edbc0b7a5a00f8871f87d4d0f0513 +Merge: 672918c 9cd81f1 +Author: Tony Murray +Date: Wed Aug 17 09:59:11 2016 -0500 + + Merge pull request #50 from OpcaoTelecom/unbound + + Added unbound stats script + +commit 9cd81f1b930e2ed777ecf3bf6c7deff65df6e564 +Author: Alan Gregory +Date: Wed Aug 17 09:36:39 2016 -0300 + + Added unbound stats script + +commit 672918c40fd87455398267cbf744a52362f738a7 +Merge: 9fe5444 87584e7 +Author: Tony Murray +Date: Tue Aug 16 12:43:10 2016 -0500 + + Merge pull request #48 from crcro/raspberry-sensors + + raspberry sensors + +commit 9fe5444738d086b1d33f92ca0e5905a14cd9c8a0 +Merge: c3afbf3 b6bdb9e +Author: Tony Murray +Date: Mon Aug 15 22:57:52 2016 -0500 + + Merge pull request #49 from murrant/ntp + + Copy ntp scripts from the main repo. + +commit b6bdb9ea45d579becc8f858090e8b7d3e4c809ea +Author: Tony Murray +Date: Mon Aug 15 22:56:31 2016 -0500 + + Copy ntp scripts from the main repo. + +commit 87584e7ef79996db60cd62e64dd4cbaf53a0bac8 +Author: crcro +Date: Sun Aug 14 17:43:27 2016 +0300 + + added snmp extend to get raspberry sensors + +commit c3afbf35bd81bff0dbcdb67e6657dd042ae67588 +Merge: 9623342 aa59548 +Author: Neil Lathwood +Date: Tue Aug 9 19:47:51 2016 +0100 + + Merge pull request #45 from murrant/os-updates + + Do not detect os, detect package managers + +commit 9623342554317ba55f7a987d18250e941a0a7c1f +Merge: 0f5a115 7828777 +Author: Tony Murray +Date: Tue Aug 9 13:08:41 2016 -0500 + + Merge pull request #46 from murrant/distro + + Update distro to match the main repo file + +commit aa59548e0c3d6e5462cd2342ca671dc72430c3f1 +Author: Tony Murray +Date: Tue Aug 9 12:50:23 2016 -0500 + + Do not detect os, detect package managers. + Add pacman support. + +commit 78287777696f6569dfe575770f1c47553fddd5a9 +Author: Tony Murray +Date: Tue Aug 9 11:40:01 2016 -0500 + + Update distro to match the main repo file + +commit 0f5a1150f373371fc508e160e58c56cea5adbb99 +Merge: d6308e4 05fe3f8 +Author: Neil Lathwood +Date: Thu Aug 4 18:53:10 2016 +0100 + + Merge pull request #40 from florianbeer/patch-1 + + Add Debian and make update call more robust + +commit d6308e4e1c04d69688d724c7c5c04ab0a3c94fbc +Merge: 3740f3e 2accc28 +Author: Neil Lathwood +Date: Wed Aug 3 21:09:08 2016 +0100 + + Merge pull request #42 from crcro/app-dhcp-stats + + app-dhcp-stats snmp extend + +commit 2accc2848c44f8c2c33a455eb1a2e4ffe801921c +Author: crcro +Date: Wed Aug 3 22:09:55 2016 +0300 + + app-dhcp-stats snmp extend + +commit 05fe3f8cc195b797f69b0599ca2a2e198f0b5d0c +Author: Florian Beer +Date: Wed Aug 3 12:16:22 2016 +0200 + + Remove update call as this requires root + + See discussion here https://github.com/librenms/librenms-agent/pull/40#issuecomment-237198796 + +commit fac01628a07cf8083f91d9924ab8d63a9d4141db +Author: Florian Beer +Date: Wed Aug 3 04:51:35 2016 +0200 + + Add Debian and make update call more robust + + - Debian based systems need to update the index before being able to report upgradable packages. + - Debian old-stable doesn't have `apt` yet and Ubuntu 14.04 emits the following warning when using `apt` in a script: + `WARNING: /usr/bin/apt does not have a stable CLI interface yet. Use with caution in scripts.` + + By using `apt-get`, issuing a `update` call first and then counting the result of `grep 'Inst'`, this script now works on Debian 7, Debian 8, Ubuntu 14.04 and Ubuntu 16.04. + +commit 3740f3e147d7d97e10e4b8e77757ab67deb2bb84 +Merge: fb678cb 1964aec +Author: Tony Murray +Date: Tue Aug 2 20:35:16 2016 -0500 + + Merge pull request #38 from crcro/master + + app: nfs-v3-stats + +commit fb678cb58df6277be2176e8a45a08af1d8dcb8d5 +Merge: 1d4c452 8d7e0df +Author: Tony Murray +Date: Mon Aug 1 11:26:27 2016 -0500 + + Merge pull request #39 from xbeaudouin/fix_distro_freebsd + + Add FreeBSD detection to distro script + +commit 8d7e0df4eb1e35b776aa17d2e6c2ea202cc021a7 +Author: xavier.beaudouin +Date: Mon Aug 1 11:15:52 2016 +0200 + + Add FreeBSD detection to distro script + +commit 1d4c4529ae907b343b7ffcb6eaeb94563ad2cb69 +Merge: dde18e9 760f9de +Author: Paul Gear +Date: Sat Jul 30 14:14:39 2016 +1000 + + Merge pull request #37 from xbeaudouin/master + + Fix some bash scripts to work with FreeBSD + +commit 1964aece5e421391cc6cb589c668da0b5f2eeaee +Author: crcro +Date: Fri Jul 29 20:22:35 2016 +0300 + + added snmp extend script for os-updates application + +commit 57b6224254eb3992e09358df2d867573512f6809 +Author: crcro +Date: Fri Jul 29 20:19:41 2016 +0300 + + added snmp extend script for nfs-v3-stats application + +commit 760f9de567a2876b0ad793979754661946b92c5c +Author: xavier.beaudouin +Date: Fri Jul 29 13:23:20 2016 +0200 + + /bin/bash => /usr/bin/env bash to allow freebsd agent work without patching each files + +commit dde18e98954c83fb52ae89083214814b5515a6c1 +Merge: 18f4006 9a3846c +Author: Neil Lathwood +Date: Tue Jul 26 20:46:20 2016 +0100 + + Merge pull request #36 from murrant/powerdns-recursor + + PowerDNS Recursor agent + +commit 18f4006e09a1436013eee8ed77927585f714fc43 +Merge: f75fc9f fc07e27 +Author: Neil Lathwood +Date: Tue Jul 26 20:45:38 2016 +0100 + + Merge pull request #33 from murrant/mysql-php7 + + Use mysqli instead of mysql + +commit f75fc9fce5a82c47e1303f5514eb0c421ad5cf93 +Merge: bfdf71d c70d12c +Author: Tony Murray +Date: Fri Jul 22 21:13:58 2016 -0500 + + Merge pull request #35 from murrant/duplicate-nfsstats + + Remove duplicate nfsstats file + +commit 9a3846cac30515a7a01a44ecc9fc6e08e78df1f5 +Author: Tony Murray +Date: Fri Jul 22 15:33:16 2016 -0500 + + PowerDNS Recursor agent + +commit c70d12c83c00e180da8a7e8281acdbd8e4741fa1 +Author: Tony Murray +Date: Fri Jul 22 15:22:48 2016 -0500 + + Remove duplicate nfsstats file + +commit bfdf71d6995ced14ebd1e25042a60c7107a57dc0 +Merge: 41cb583 9501c2f +Author: Tony Murray +Date: Thu Jul 21 22:30:29 2016 -0500 + + Merge pull request #34 from murrant/nfs + + Copy nfsstats script from main repo. + +commit 9501c2f4ffd4649982521c387b3d9dcab1de83d9 +Author: Tony Murray +Date: Thu Jul 21 22:28:41 2016 -0500 + + Copy nfsstats script from main repo. + Send PR to remove scripts from the main repo. + +commit fc07e27c37c74d47c61aeac3cb966062f8da63a2 +Author: Tony Murray +Date: Thu Jul 21 22:26:02 2016 -0500 + + Fix permissions + +commit 41cb5835ff3b0ca41a6392f19e43d590bd08d785 +Merge: db44c10 9bad4df +Author: Tony Murray +Date: Thu Jul 21 21:48:27 2016 -0500 + + Merge pull request #32 from tuxis-ie/proxmox-issue-28 + + Proxmox issue 28 + +commit e80b025818f2f993f4443be3100c5bcd1331812a +Author: Tony Murray +Date: Thu Jul 21 21:31:25 2016 -0500 + + Use mysqli instead of mysql + +commit 9bad4dfb3e586d7892709284cccf17417cf5ec03 +Author: Mark Schouten +Date: Wed Jul 13 15:06:57 2016 +0200 + + Something like this @einarjh ? + +commit 6d27c7edb3f4972a89fbf5641c4ece106b5dbc09 +Author: Mark Schouten +Date: Mon Jul 11 17:06:14 2016 +0200 + + Wrap these calls in an eval to prevent it from dying if its a container instead of a qemu vm. Fixes #28 + +commit db44c1070950c2e06565a39395bb09f09a023b4a +Merge: d00ce4a 5b21301 +Author: Neil Lathwood +Date: Sat Jul 9 19:12:59 2016 +0100 + + Merge pull request #31 from librenms/nfsstats + + Added nfsstats.sh file + +commit 5b21301ecdb761fa0e32f9295c8ea60aef44f3a7 +Author: Neil Lathwood +Date: Sat Jul 9 19:12:13 2016 +0100 + + Added nfsstats.sh file + +commit d00ce4a15a6b52753d108d1aeb2a768e7bfafe36 +Merge: c996b54 ca5a5a1 +Author: Neil Lathwood +Date: Thu Jun 30 08:57:07 2016 +0100 + + Merge pull request #29 from murrant/powerdns-python3 + + Python3 fixes for powerdns agent. Compatible with python2. + +commit ca5a5a12c065eb67e48410ed09ff97630a76f6b8 +Author: Tony Murray +Date: Wed Jun 29 19:52:10 2016 -0500 + + Python3 fixes for powerdns agent. Compatible with python2. + +commit c996b54e79b317785c58963abb6f71c31e61ba10 +Merge: fb7912b 8328d71 +Author: Neil Lathwood +Date: Thu Jun 9 11:38:43 2016 +0100 + + Merge pull request #27 from murrant/rrdcached + + Local script to collect stats from rrdcached + +commit 8328d71c0995fa8f6dc7c50de940fbe9b242fc41 +Author: Tony Murray +Date: Wed Jun 8 20:35:19 2016 -0500 + + Local script to collect stats from rrdcached + Being able to connect to local unix sockets is the primary advantage of this. + +commit fb7912beda4181b23d8cbbbf500a1e7ed4527001 +Merge: 601ac84 8d856e2 +Author: Daniel Preussker +Date: Thu May 5 13:32:02 2016 +0200 + + Merge pull request #25 from Exa-Omicron/master + + Improved hddtemp agent module + +commit 8d856e27648b6df2d89af852ad1cd912319a965f +Author: Robert Verspuy +Date: Thu May 5 10:27:30 2016 +0200 + + Improved hddtemp agent module + + I had some issues with the netcat / daemon implementation of the module. + netcat was stallingor sometimes netcat did not return the full output of hddtemp. + Running hddtemp directly without running it as a daemon is much more stable for me. + + This new version also does not give any stdout output when hddtemp is not installed or when no disks can be found. + Running the script manually on a server does give stderr output for easy debugging. + +commit 601ac843c303d29b8149142a3fac967aaa4a2638 +Merge: 21817b6 1c13779 +Author: Tony Murray +Date: Thu Apr 21 09:46:49 2016 -0500 + + Merge pull request #23 from librenms/freebsd-agent + + Create check_mk_agent_freebsd + +commit 1c1377958e6c8cfd8ca7fd1fd4fcafdae92e1a1b +Author: Neil Lathwood +Date: Thu Apr 21 15:41:06 2016 +0100 + + Update check_mk_agent_freebsd + +commit cdd235a12a0bd4d0cbffe330048fd476aa5fddd5 +Author: Neil Lathwood +Date: Thu Apr 21 15:39:59 2016 +0100 + + Create check_mk_agent_freebsd + + Added freebsd agent + +commit 21817b6b36692bdca8fac8f3ee4a0258a2d2bcee +Author: Tony Murray +Date: Tue Mar 29 08:29:02 2016 -0500 + + Fix wording for systemd unit + +commit 88c4b00b19370bea3e597770793d90b24f24b10b +Merge: dd2b95d 50a3c25 +Author: Neil Lathwood +Date: Tue Mar 29 09:51:00 2016 +0100 + + Merge pull request #22 from murrant/master + + Add systemd unit files + +commit 50a3c25115e501db4bd9fc97a8a8e3b7d81a635e +Author: Tony Murray +Date: Mon Mar 28 12:56:26 2016 -0500 + + Add systemd unit files + +commit dd2b95d8d2eb35bf1b3f0aea34d843af33f1c28e +Merge: 6d0babe ff2bbe6 +Author: Neil Lathwood +Date: Wed Nov 25 13:37:25 2015 +0000 + + Merge pull request #17 from f0o/upstream-snapshot + + Snapshot upstream changes + +commit ff2bbe6882a9b79b93883980b0360f780fc24d76 +Author: f0o +Date: Wed Nov 25 13:26:26 2015 +0000 + + Snapshot upstream changes + +commit 6d0babe0973d5cb8e2d35fd33e2f45e96ae96c15 +Merge: 8e847b9 12e31c1 +Author: Daniel Preussker +Date: Wed Nov 25 13:28:17 2015 +0000 + + Merge pull request #16 from tuxis-ie/powerdns-support + + Powerdns support + +commit 12e31c16c3c42e6d1c73a196978acf18e554e4b0 +Author: Mark Schouten +Date: Mon Nov 23 14:10:17 2015 +0100 + + Add PowerDNS Authoritative Agent + +commit d16462bb5ac978cfd5b7cb213359989b2aabc791 +Author: Mark Schouten +Date: Mon Nov 23 14:10:15 2015 +0100 + + Add PowerDNS Authoritative Agent + +commit 8e847b986aa3af50eb6c2302c3d1f0df158a47bd +Merge: da7e40c 66d5028 +Author: Neil Lathwood +Date: Wed Nov 11 17:17:24 2015 -0400 + + Merge pull request #15 from SaaldjorMike/mysql1 + + Moved mysql tag a bit up and added a newline to error msg. + +commit 66d502837d2643c59d7f87af076fd851b0ba12c1 +Author: Mike Rostermund +Date: Wed Nov 11 14:21:49 2015 +0100 + + Moved mysql tag a bit up and added a newline to error msg. + +commit da7e40c43eb3155d3253c1eb695a78a0d9362a51 +Merge: f6f0079 0cc7b49 +Author: Neil Lathwood +Date: Tue Nov 10 08:08:34 2015 -0400 + + Merge pull request #14 from tuxis-ie/ceph-support + + Ceph support + +commit 0cc7b493978c06f0f3e73749bac1fbadf56c1be8 +Author: Mark Schouten +Date: Tue Nov 10 11:00:58 2015 +0100 + + Add support for Ceph + +commit 9b4c3b34009a441df579051336bf3ea0647fe73c +Author: Mark Schouten +Date: Tue Nov 10 10:58:24 2015 +0100 + + Add support for Ceph + +commit f6f0079c6620ee3d75adf7511006006353903dd3 +Merge: d90957a 30b7651 +Author: Daniel Preussker +Date: Wed Nov 4 13:42:29 2015 +0000 + + Merge pull request #13 from tuxis-ie/master + + Crap, forgot this line... + +commit 30b7651e0142826202276a7bf9a31343d759c68a +Author: Mark Schouten +Date: Wed Nov 4 14:40:19 2015 +0100 + + Crap, forgot this line... + +commit d90957a0bc9e484056eaf26b206672b940fc7a9f +Merge: 25fcd5a 6554087 +Author: Daniel Preussker +Date: Wed Nov 4 13:35:33 2015 +0000 + + Merge pull request #12 from tuxis-ie/master + + Fix the proxmox-agent for Proxmox VE 4.0 + +commit 65540872e7a1215cfdca1d4b480670a67cf50a77 +Author: Mark Schouten +Date: Wed Nov 4 14:30:21 2015 +0100 + + Fix the proxmox-agent for Proxmox VE 4.0 + +commit 25fcd5ae76682006ed61aa09212738381968208f +Merge: 20e2d22 b6bfbba +Author: Paul Gear +Date: Mon Oct 26 09:39:15 2015 +1000 + + Merge pull request #10 from librenms/laf-patch-1 + + Update distro to use env + +commit b6bfbbaf2c99945aceb92e9c7f950a53196c26fc +Author: Neil Lathwood +Date: Sun Oct 25 21:51:43 2015 +0000 + + Update distro to use env + +commit 20e2d220bde9e4edec76d00551c955274d06130c +Merge: 87a20db 2b96259 +Author: Daniel Preussker +Date: Fri Aug 28 09:07:49 2015 +0000 + + Merge pull request #7 from tuxis-ie/master + + Add a proxmox-agent + +commit 2b9625953240ade30cf5ccef22a9293a016b819b +Author: Mark Schouten +Date: Fri Aug 28 10:52:04 2015 +0200 + + Add license + +commit d6795c60a171eba023b8c0e5b151376c6bcfa0d1 +Author: Mark Schouten +Date: Fri Aug 28 10:49:24 2015 +0200 + + Add proxmox-agent + +commit fee2ed820bedb4613871aa9747b40121e3ae7879 +Author: Mark Schouten +Date: Fri Aug 28 10:49:19 2015 +0200 + + Add proxmox-agent + +commit 87a20db845517070fdb2eec70d264e18bfde2871 +Merge: 8ae2b15 6493263 +Author: Daniel Preussker +Date: Thu Aug 20 17:14:11 2015 +0000 + + Merge pull request #5 from tuxis-ie/master + + Add files to create a Debian-package + +commit 64932630f0b67e876d0859df491705b11a71aa07 +Author: Mark Schouten +Date: Thu Aug 20 14:18:10 2015 +0200 + + Do not include the README in the repodir + +commit 77864124dc119b0d89b1c852090e5f283b02123a +Author: Mark Schouten +Date: Thu Aug 20 10:34:50 2015 +0200 + + Add license + +commit 8ae2b1520b9e75583b87977427415c90256473e1 +Merge: 69551b0 63d3166 +Author: Daniel Preussker +Date: Tue Aug 18 15:14:00 2015 +0000 + + Merge pull request #6 from librenms/f0o-mysql-host-logic + + Fix MySQL Host Logic + +commit 63d31665cea2afaeadb8c8ba1b58b37605597b80 +Author: Daniel Preussker +Date: Tue Aug 18 15:08:50 2015 +0000 + + Fix MySQL Host Logic + +commit 51270e24c19bed95030a41e3ab7828bb2330d68d +Author: Mark Schouten +Date: Mon Aug 17 16:58:33 2015 +0200 + + Also include distro in this package + +commit 2b4d17280dd4cbff1b497e2f6ffc17bf75020ea9 +Author: Mark Schouten +Date: Mon Aug 17 16:57:48 2015 +0200 + + Strip comments (on Qemu boxes, this pollutes a lot + +commit 2833310e228e185e78ddbb96589f63e9d2d7b852 +Author: Mark Schouten +Date: Mon Aug 17 16:50:26 2015 +0200 + + Enable dpkg and dmi by default + +commit 3cd06768b5487261ddde819aad6428a3183ffbbf +Author: Mark Schouten +Date: Mon Aug 17 16:48:22 2015 +0200 + + Place all plugins in a repo-dir and add mk_enplug to enable plugins + +commit 7954d5a085f0ffe31fa1becb6d3132ca63b46942 +Author: Mark Schouten +Date: Mon Aug 17 16:19:04 2015 +0200 + + Add Conflicts/Provides and fix location for xinetd.d + +commit a7df28415a4645293835c79d15201539376be11d +Author: Mark Schouten +Date: Mon Aug 17 15:12:12 2015 +0200 + + Add files to create a Debian-package + +commit 69551b05e2673c899077a4539d1b6a6ec95b4290 +Merge: cfec5ec 4683c68 +Author: Daniel Preussker +Date: Tue Jul 28 20:11:44 2015 +0000 + + Merge pull request #4 from alangregory/master + + Added Snmpd.conf example and distro executable + +commit 4683c68d1d23f63ff9977c8a11543004cd4b8a34 +Author: Alan Gregory +Date: Tue Jul 28 15:58:29 2015 -0300 + + Added Snmpd.conf example and distro executable + +commit cfec5ec65dc93a6bc9260eb4f1d3f9379d1c7287 +Author: Daniel Preussker +Date: Tue Jun 9 17:34:00 2015 +0000 + + Delete README.md + +commit f1c9d6578a9f5df51047e5246624a96e55e043d4 +Merge: a47d95b 195a46c +Author: Daniel Preussker +Date: Mon May 18 13:07:29 2015 +0200 + + Merge pull request #1 from f0o/master + + Initial commit + +commit 195a46c1e377f6729acf38f294153ef40147d2ff +Author: f0o +Date: Mon May 18 10:57:45 2015 +0000 + + Initial commit + +commit a47d95b58cc05e32a3feaa7f0022857da80ba58a +Author: Daniel Preussker +Date: Mon May 18 09:28:15 2015 +0000 + + Initial commit diff --git a/snmp/mdadm b/snmp/mdadm new file mode 100755 index 0000000..fdd40b9 --- /dev/null +++ b/snmp/mdadm @@ -0,0 +1,104 @@ +#!/bin/bash + +CAT=/bin/cat +LS=/bin/ls + +CONFIGFILE=$0.conf +if [ -f $CONFIGFILE ] ; then + . $CONFIGFILE +fi + +VERSION=1 +ERROR_CODE=0 +ERROR_STRING="" + +OUTPUT_DATA='['\ + +if [ -d /dev/md ] ; then + for RAID in /sys/block/md* ; do + + # ignore arrays with no slaves + if [ -z "$($LS -1 $RAID/slaves)" ] ; then + continue + fi + # ignore "non existing" arrays + if [ ! -f "$RAID/md/degraded" ] ; then + continue + fi + + RAID_NAME=$(basename $RAID) + RAID_DEV_LIST=$($LS $RAID/slaves/) + RAID_LEVEL=$($CAT $RAID/md/level) + RAID_DISC_COUNT=$($CAT $RAID/md/raid_disks) + RAID_STATE=$($CAT $RAID/md/array_state) + RAID_ACTION=$($CAT $RAID/md/sync_action) + RAID_DEGRADED=$($CAT $RAID/md/degraded) + + if [ "$RAID_SYNC_SPEED" = "none" ] ; then + RAID_SYNC_SPEED=0 + else + let "RAID_SYNC_SPEED=$($CAT $RAID/md/sync_speed)*1024" + fi + + if [ "$($CAT $RAID/md/sync_completed)" = "none" ] ; then + RAID_SYNC_COMPLETED=100 + else + let "RAID_SYNC_COMPLETED=100*$($CAT $RAID/md/sync_completed)" + fi + + # divide with 2 to size like in /proc/mdstat + # and multiply with 1024 to get size in bytes + let "RAID_SIZE=$($CAT $RAID/size)*1024/2" + + RAID_DEVICE_LIST='[' + ALL_DEVICE_COUNT=0 + for D in $RAID_DEV_LIST ; do + RAID_DEVICE_LIST=$RAID_DEVICE_LIST'"'$D'",' + let "ALL_DEVICE_COUNT+=1" + done + if [ ${#RAID_DEVICE_LIST} -gt 3 ] ; then + RAID_DEVICE_LIST=${RAID_DEVICE_LIST: : -1} + fi + RAID_DEVICE_LIST=$RAID_DEVICE_LIST']' + + RAID_MISSING_DEVICES='[' + for D in $RAID_DEV_LIST ; do + if [ -L $RAID/slaves/$D ] && [ -f $RAID/slaves/$D ] ; then + RAID_MISSING_DEVICES=$RAID_MISSING_DEVICES'"'$D'",' + fi + done + if [ ${#RAID_MISSING_DEVICES} -gt 3 ] ; then + RAID_MISSING_DEVICES=${RAID_MISSING_DEVICES: : -1} + fi + RAID_MISSING_DEVICES=$RAID_MISSING_DEVICES']' + + let "RAID_HOTSPARE_COUNT=ALL_DEVICE_COUNT-RAID_DISC_COUNT" + + ARRAY_DATA='{'\ +'"name":"'$RAID_NAME\ +'","level":"'$RAID_LEVEL\ +'","size":"'$RAID_SIZE\ +'","disc_count":"'$RAID_DISC_COUNT\ +'","hotspare_count":"'$RAID_HOTSPARE_COUNT\ +'","device_list":'$RAID_DEVICE_LIST\ +',"missing_device_list":'$RAID_MISSING_DEVICES\ +',"state":"'$RAID_STATE\ +'","action":"'$RAID_ACTION\ +'","degraded":"'$RAID_DEGRADED\ +'","sync_speed":"'$RAID_SYNC_SPEED\ +'","sync_completed":"'$RAID_SYNC_COMPLETED\ +'"},' + + OUTPUT_DATA=$OUTPUT_DATA$ARRAY_DATA + done +fi + +OUTPUT_DATA=${OUTPUT_DATA: : -1}']' + +OUTPUT='{"data":'$OUTPUT_DATA\ +',"error":"'$ERROR_CODE\ +'","errorString":"'$ERROR_STRING\ +'","version":"'$VERSION'"}' + +echo $OUTPUT +