Search found 2 matches

by Vedurin
Tue Jul 10, 2012 1:19 am
Forum: Open Source Nagios Projects
Topic: Checking File Age on Linux
Replies: 3
Views: 2607

Re: Checking File Age on Linux

Thanks Griffin, the wrapper was a great idea. I couldn't figure out how to implement the command inside the if-condition. So this is how i got it to work : #!/bin/sh filecount=`ls "$1" | wc -l` if [ $filecount == 0 ] then echo "OK - $1 - 0 files" exit 0 else exec /usr/local/nagio...
by Vedurin
Tue Jul 03, 2012 5:02 am
Forum: Open Source Nagios Projects
Topic: Checking File Age on Linux
Replies: 3
Views: 2607

Checking File Age on Linux

Hello, i hope i can get some advice from the community on how to check the age of a group of files on a linux machine. The situation is as follows: We have an old Linux Server which sends SMS. Various programs store textfiles on a share on that server and a programm checks for new files every few se...