whats is the best way to monitor file if it has not updated in last 24 hours.
example /var/logmessages in linux , /var/adm/messaged in solaris and alert to email .
find with mtime , perl file stat, anyone have any script examples of something better ?
find could certainly be used in this scenario, yes. Here's a quick example based on a timescale of one minute, rather than one day, just to demonstrate the principal in action:
So the idea is to run your find command pointing directly at the file you're interested in, and specify your interval. So our example here is based on finding the file if it's been modified more than one minute ago via -mmin +1, but you could just as easily check for over one day with -mtime +1.
-mmin is not available for all versions of find. Also -mtime +1 means that the file is last modified more than 86400 seconds ago. Not how us humans think of yesterday.
Consider:
These 2 Users Gave Thanks to jim mcnamara For This Post:
Sorry if this is the wrong forum
Searching for Saas Monitor service which monitor my servers which are sitting in different providers .
This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard.
The info I need is CPU / RAM / my servers status (... (1 Reply)
Hi
I am currently testing SCOM2012 on my AIX systems for monitoring. I tested it on 3 systems and immediately i got the following errors:
Alert: Network Status Monitor daemon (rpcstat) is not running
Source: AIX 7.1
Path: (left blank)
Last modified by: (left blank)
Last modified time:... (3 Replies)
Hi All,
We are having important config files in an directory which was accessable by all
/auto/config/Testbed/>ls
config1.intial
config2.intial
config3.inital
often we find that some of the lines are missing in config files, we doubt if some one is removing.
I would like to write... (0 Replies)