Snmp_storage on a ZFS system

Hi everyone,

We are using version: r2.10.4-1 to monitor our hosts and recently we are anticipating a problem when trying to monitor the disk space of a FreeBSD system with ZFS

We are getting alerts because /dev has 100% usage :

Filesystem Size Used Avail Capacity Mounted on
zroot/ROOT/default 439G 104G 335G 24% /
devfs 1.0K 1.0K 0B 100% /dev
zroot/var/log 335G 111M 335G 0% /var/log
zroot 335G 96K 335G 0% /zroot
zroot/tmp 335G 656K 335G 0% /tmp
zroot/usr/home 336G 1.3G 335G 0% /usr/home
zroot/var/audit 335G 96K 335G 0% /var/audit
zroot/usr/src 335G 96K 335G 0% /usr/src
zroot/var/crash 335G 96K 335G 0% /var/crash
zroot/var/tmp 335G 96K 335G 0% /var/tmp
zroot/var/mail 335G 248K 335G 0% /var/mail

I have tried so far the following :

<vars.snmp_storage_name = ["/"] > in order to just monitor /
<vars.snmp_storage_exclude = [ “dev” ]> In order to exclude /dev

Do you have any suggestions?

Thanks!

which command do you use? please add the command definition from commands.conf which should look something like that:

object CheckCommand "check_qnap" {
    import "plugin-check-command"
    command = [ PluginDir + "/check_qnap" ]
    arguments += {
        "-C" = "$qnap_community$"
        "-H" = {
            required = true
            value = "$host.address$"
        }
        "-M" = "$qnap_max$"
        "-a" = {
            required = true
            value = "$qnap_checkmode$"
        }
        "-m" = "$qnap_min$"
        "-p" = "$qnap_port$"
        "-t" = "$qnap_timeout$"
        "-v" = "$qnap_snmpversion$"
    }
}

We are using the check_snmp_storage.pl plugin

please add the command definition from commands.conf which should look something like that