16TB Volumes and SNMP On Windows

A while ago there was a patch for Net-SNMP 5.5 which introduced a new option realStorageUnits for the configuration file. From the Redhat Bugreport #748410: To address this issue [negative hrStorageSite values], this update adds a new option to the /etc/snmp/snmpd.conf configuration file, realStorageUnits. By changing the value of this option to 0, users can … Read more

Alternative to etsy/statsd

Check out the following two projects: batsd batsd-dash batsd is a daemon for aggregating and storing statistics, while batsd-dash is a configurable dashboard the present the data you have stored in batsd. About batsd Batsd is a ruby-based daemon for aggregating and storing statistics. It targets “wireline” compatibility with Etsy’s StatsD implementation, which they described … Read more

script to automatically test if a web site is available

Well… The most simple script, I cam write: /usr/bin/wget “www.example.com” –timeout 30 -O – 2>/dev/null | grep “Normal operation string” || echo “The site is down” | /usr/bin/mail -v -s “Site is down” your@e-mail.address Add it to cron as: * * * * * /usr/bin/wget “www.example.com” –timeout 30 -O – 2>/dev/null | grep “Normal operation … Read more

How to find out the number of time series stored in Prometheus LevelDB

prometheus_tsdb_head_series Just because I always forget and have to Google this, and this question is at the top. As per this answer there will likely be a variance between prometheus_tsdb_head_series & count({__name__=~”.+”}) because of variations in what they consider “active”, but unless you have a large variability in metric count, I’d recommend prometheus_tsdb_head_series because if … Read more