HI, I do have a commandline like that but this is a one-time thing, the file will start off with the first format, then change to the second format and stay that way. If I understand correctly you are describing both formats interleaved, which I do not have.
if I don't do the redirect there is no output for a considerable time, perhaps an hour, when it only shows the second form Nick Upson On 29 March 2012 12:51, Martin Pala <[email protected]> wrote: > Hi, > > the format with date prefix is the format used for the logfile as defined by > the "set logfile <path>" statement. The format without date prefix is > normally displayed to the standard error output only (when the "-I" option is > used). > > Maybe you have redirected the monit output to the log file which you use in > the "set logfile" like this?: > --8<-- > monit -vI > /var/log/monit.log 2>&1 > --8<-- > > It would then contain both the standard output (wihtout date) and the log > output (with date). > > Regards, > Martin > > > On Mar 28, 2012, at 2:18 PM, Nick Upson wrote: > >> Hi, >> >> I have monit (v5.3.1) running in debug mode, it starts running with >> one output format and then changes, many iterations later >> >> here is an example, c&p from the file where these are consecutive lines >> >> >> 'dbtrig' cpu usage check succeeded [current cpu usage=0.0%] >> 'dbtrig' total mem amount check succeeded [current total mem amount=1196kB] >> 'dblog' zombie check succeeded [status_flag=0000] >> 'dblog' total mem amount check succeeded [current total mem amount=1516kB] >> unt=86396kB] >> [BST Mar 28 12:14:46] debug : 'sl_cs' mem usage check succeeded >> [current mem usage=5.8%] >> [BST Mar 28 12:14:46] debug : 'sl_cs' loadavg(5min) check succeeded >> [current loadavg(5min)=0.2] >> [BST Mar 28 12:14:46] debug : 'rootfs' space usage check succeeded >> [current space usage=53.7%] >> >> Nick Upson >> >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
