LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-02-2015, 08:09 AM   #1
petocervik
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Rep: Reputation: 0
Monit timestamp failed problem


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
 
Old 09-05-2015, 03:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Welcome to LQ, hope you like it here. You could (temporarily) extend your eset_dl.sh and eset_rm.sh thusly to test?:
Code:
[ -f "/share/eset/nod.rirs.sk/nod4/update.ver" ] || { echo "Missing update.ver."; }
(Obviously the line should be inserted before you actually download or remove stuff.) BTW, no idea but you're referring to "/home/eset/" in one script while referring to "/share/eset/" in others?..
 
Old 09-09-2015, 04:05 AM   #3
petocervik
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for response. I've added it now, but I'll try it later this week I hope. That different path is just mistake in post, correct path is /home/eset.
I'll post results, when I'll try it.
 
Old 09-11-2015, 03:28 AM   #4
petocervik
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I've tried it today. Script eset_dl.sh always return "Missing update.ver." message. I've try it on wheezy and it runs without message.

Last edited by petocervik; 09-22-2015 at 11:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed connect monit-5.5-1 to M/monit 3.0_beta1 shams2222 Linux - Server 2 06-16-2013 01:06 PM
Problem starting my monit newbie14 Linux - Server 4 05-27-2012 11:04 AM
Postfix / cron / monit problem on CentOS Gethyn Linux - Server 5 03-31-2011 04:32 AM
Problem with Setting up monit helptonewbie Linux - Software 2 07-29-2007 04:24 PM
postfix/ldap/monit : where does the problem lie topcat Linux - Software 1 11-23-2004 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration