* 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
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.
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........................................................................................................................................
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.
* 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
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.
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.
* 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
* 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
* 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