# Mender-monitor does not work with busybox

**URL:** <https://hub.mender.io/t/mender-monitor-does-not-work-with-busybox/4489>\
**Category:** General Discussions\
**Created:** [January 17, 2022, 12:24am UTC](https://hub.mender.io/t/mender-monitor-does-not-work-with-busybox/4489 "2022-01-17T00:24:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [January 17, 2022, 12:24am UTC](https://hub.mender.io/t/mender-monitor-does-not-work-with-busybox/4489/1 "2022-01-17T00:24:23Z")

</div>

Adding mender-monitor to a build causes errors such as the following when using the busybox version of the stat command:

```auto
Jan 14 17:33:48 ps157 mender-monitord[233]: 2022-01-14 17:33:48 [ERROR] [daemon.sh:log_file_has_been_truncated:15] The function 'log_file_has_been_truncated' requires 2 arguments. 1 given.
Jan 14 17:33:48 ps157 mender-monitord[11926]: stat: unrecognized option '--format=%s'
Jan 14 17:33:48 ps157 mender-monitord[11926]: BusyBox v1.31.1 () multi-call binary.
Jan 14 17:33:48 ps157 mender-monitord[11926]: Usage: stat [OPTIONS] FILE...

```

It looks like log.sh needs to be modified to use “stat -c” instead.

Drew

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [January 18, 2022, 9:50am UTC](https://hub.mender.io/t/mender-monitor-does-not-work-with-busybox/4489/2 "2022-01-18T09:50:55Z")

</div>

Thanks for the report @drewmoseley

[[MEN-5380] [mender-monitor]: Does not work with busybox - Northern.tech AS](https://tracker.mender.io/browse/MEN-5380) created.
