Hi, there was a bug #219084 which has been fixed with version 5.23.0 Nevertheless one of the errors still shows up: filesystem statistics error -- cannot parse device '/dev/gpt/rootfs' The monitoring itself seems to be working, but at least this message spams the logfile every 2 minutes. Cheers, Stephan
Hey, There is a bug report downstream at the OPNsense bug tracker: https://github.com/opnsense/plugins/issues/265 It's also already reported upstream at the monit bug tracker: https://bitbucket.org/tildeslash/monit/issues/666 (Wow! What a bug ID ;-) Unfortunately, I'm not allowed to add this URLs to the "See Also" filed, hence this comment. Cheers Woi
The log error gets generated in src/device/sysdep_FREEBSD.c @ line 115 the code expects @least one digit in the devicename, which is not the case for '/dev/gpt/rootfs' // Parse the device path like /dev/da0p2 into name:instance -> da:0 static boolean_t _parseDevice(const char *path, Device_T device) { const char *base = File_basename(path); for (int i = 0; base[i]; i++) { if (isdigit(*(base + i))) { strncpy(device->key, base, i < sizeof(device->key) ? i : sizeof(device->key) - 1); device->instance = Str_parseInt(base + i); return true; } } LogError("filesystem statistics error -- cannot parse device '%s'\n", path); return false; }
Hi, thank you for report, i have fixed the problem in upstream, the Monit 5.24.0 that will include the fix should be available within ~1 week. Best regards, Martin
(In reply to martinp from comment #3) Thanks again! Stephan
Monit 5.24.0 was just released (includes fix for this issue), monit port update request submitted: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222566
Update to 5.24.0 fixes this, ports r450555.
Thank you all!