Incorrect Timestamp reporting

Issue #389 closed
Former user created an issue

Monit appears to be incorrectly reporting the timestamp of a file:

[root@oibu-archive bin]# ./monit -c ../conf/monitrc.oibu-archive status postfix-aliases
Monit uptime: 14m
File 'postfix-aliases'
  status                       Accessible
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  permission                   644
  uid                          156
  gid                          0
  size                         288.9 kB
  timestamp                    Fri, 03 Jun 2016 18:49:59
  data collected               Mon, 06 Jun 2016 09:56:03

[root@oibu-archive bin]# ls -l /etc/postfix/aliases.mhonarc
-rw-r--r-- 1 caeadmin root 295802 Jun  1 17:08 /etc/postfix/aliases.mhonarc

Comments (3)

  1. Tildeslash repo owner

    monit takes the maximum of ctime and mtime as timestamp ... in your case the file was most probably modified on June 3 (you can use "stat" utility to check all timestamps)

  2. Log in to comment