Quantcast
Viewing all articles
Browse latest Browse all 36162

tool chain

i have been trying to set up a tool chain that will contact the admin by email for daily updates and an immediate mail if a high risk issue happens but everything i have tried wont work. please help with any and all options.
this works partially.
$ cat my_check.sh
egrep -i 'warn|error' /var/log/messages | mail -s 'issues worth reviewing' some_user@some_host
$ ./my_check.sh
$ crontab -e
#
1 0 * * * /path/to/my_check.sh
but it is not sending updates daily

Viewing all articles
Browse latest Browse all 36162

Trending Articles