Is there a way to monitor free space of a zfs pool? I have an Ubuntu server with a zfs pool but it doesn't list as a resource.
If it's not listing as a resource, then net-snmp is not seeing it as an option to relay back to your SolarWinds server. Your other option would be to use a Perl script to get this information, then create a Linux script monitor to report back the results of the script. You might have to use something like:
zpool list -o name,size
in your script.
Thanks for the quick response. Any idea why SNMP isn't seeing it? Is there something special to need to do to the configuration on either server?
More than likely there's just not an OID that was created to collect this information. It may also be that there is an OID, but SolarWinds by default doesn't request it. You could try a SNMP walk using the snmpwalk,exe tool against the server to see if there is an OID that just simply isn't one of the OIDs that SolarWinds polls for. If it is in the results, you can take the OID and create a Universal Device Poller to gather than information.
I'm slowly getting there. I added the following to snmpd.conf:
extend zpool_capacity /bin/bash -c "zpool list -H -o capacity"
Then I used snmpwalk to find the OID which is: .1.3.6.1.4.1.8072.1.3.2.4.1.2.14.122.112.111.111.108.95.99.97.112.97.99.105.116.121.1
I get the information I'm looking for (79%) but the percent sign is confusing SolarWinds. It reports that is cannot convert it to a numeric type. Any ideas on how to get around that?