Script last output empty

Issue #654 duplicate
Vikranth created an issue

After upgrading monit to 5.23 on Cent OS 7, my scripts are not showing the last output value in both the command line and web interface.

/etc/monitrc

check program hello with path /home/itsnotv/monit/hello.sh

/home/itsnotv/monit/hello.sh

#!/bin/bash
echo "hello"

monit status

Program 'hello'
  status                       OK
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  last exit value              0
  last output                  -
  data collected               Mon, 21 Aug 2017 15:44:10

Monit 5.21 shows this value correctly. 5.22 and 5.33 are broken.

Comments (2)

  1. Log in to comment