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