Skip to content

Instantly share code, notes, and snippets.

mattaltus /
Created September 10, 2019 12:00

Keybase proof

I hereby claim:

  • I am mattaltus on github.
  • I am maoswava ( on keybase.
  • I have a public key ASC-n_N9glf9BKZTkDDMMqfExaCMaZSXz1pnr9LPi02Gpgo

To claim this, I am signing this object:

mattaltus /
Created June 15, 2019 12:34
collectd exec plugin to fetch nvme smart data
#!/bin/env perl
use strict;
use warnings;
use JSON qw/decode_json/;
my $hostname = $ENV{COLLECTD_HOSTNAME} // `hostname`;
my $interval = $ENV{COLLECTD_INTERVAL} // 60;
my $device = $ARGV[0] // "nvme0n1";