Hi. I have problem with monit sending emails of timestamp failure even if it shouldn't. On server I have configured following:
1. fetching data from another server with logging by script saved in /usr/local/bin/eset_dl.sh:
#!/bin/bash
wget -P /share/eset -r -m
http://nod.rirs.sk/nod4/ --user=name --password=******** &> /share/eset/eset.log
2. removing all data except update.ver file, which is controlled by monit is done by script saved in /usr/local/bin/eset_rm.sh
#!/bin/bash
find /home/eset/nod.rirs.sk/nod4 -type f ! -name 'update.ver' -execdir rm {} +
3. in /etc/cron.d/eset is set periodical run of scripts
# aktualizacia databazy eset mirroru raz denne
0 6 1 * * eset /usr/local/bin/eset_rm.sh
0 6 * * * eset /usr/local/bin/eset_dl.sh
4. monit has this configuration:
Check file eset-version with path /share/eset/nod.rirs.sk/nod4/update.ver
if timestamp > 3 day then alert
I have 3 servers. On 2 with Debian Wheezy (both virtual machines) it works perfect, but one with Debian Squeezy (physical machine) makes problems by sending mails, that update.ver file is not available. Has anyone idea, where could be a problem? Thank You