One of the devices I am monitoring is a Freenas 9.10 instance, and I’m wondering if anybody has any advise on running the agent check_mk scripts on a setup like this.
The differences I see from it being a standard Freebsd installation, are that the root partition is an in-memory filesystem created at boot time, and that it doesn’t run either xinetd or systemd.
Has anybody successfully been able to use the agent script on a FreeNAS setup? Specifically, I’m looking for a way to monitor the storage space, which unfortunately isn’t supplied by the default SNMP configuration on FreeNAS.
I’ve seen some examples of running other agent scripts, where you store the script on the storage volume, something like /mnt/zvol/myshare/usr/bin/check_mk_agent, then create a startup command which copies that script to /usr/bin and makes it executable. But this only gets as far as having the script in place on bootup, but doesn’t yet provide any way to have librenms poll the script.
I don’t see any way in the FreeNAS web ui to add anything to xinetd, but there is a way to extend the configuration for the SNMP daemon, e.g. a big text box will be appended to /etc/snmpd.conf. Can the agent be polled via SNMP?