Cron Job Automated Email Alternatives?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cron Job Automated Email Alternatives?
# 1  
Old 08-11-2010
Question Cron Job Automated Email Alternatives?

Hi guys, not sure if this would be the right place for this but I dont where else it would go... I'm new to Unix too, so please bare with me Smilie

I guess first up some background on the situation. We have some scripts that run as cron jobs which monitor and check the health, etc of our servers. They are configured to alert us (by sending emails to us) whenever they get an exception or appear to be critical or even go down.

This is all well and good, however at the moment we are having some issues and their stability has been more than rocky so they are sending A LOT of emails. I arrived this morning to 250 alerts in my inbox.

Now granted this is for about 8 different servers, but that's still alot of noise. We even get alerted that the server is down each time we manually bounce them. The team is at the point where they are basically ignoring all these emails which is not a good thing because when something really bad does actually happen, we'll miss it in the noise.

Now, my question is kind of two-fold. First up, is there a way we can make these scripts "smarter" so they only alert us when a certain threshold of errors is reached over a certain time period or something?

Secondly, rather than spam our inboxes with emails is there a method or solution to publish alerts to a webpage or a widget or something so only the person who is on support that particular day/week can log on and then be informed of the server activity (rather than all of us getting emails)?
# 2  
Old 08-11-2010
I am not an expert in this..but I have heard Nagios based monitoring provide flexible options for centralized monitoring and threshold based alerts..

You can explore further.

-Raja
# 3  
Old 08-11-2010
Thanks Raja, I'll look into that.

Anyone else have any suggestions?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script that will send an email if the cron job did not run.

Team, Would like to know what is the best script that will send you an email if cronjob did not run. Thanks (4 Replies)
Discussion started by: kenshinhimura
4 Replies

2. Shell Programming and Scripting

I want to send an email after cron job

I am using centos 6.4. I have a few cron jobs setup and they all work fine. However, I would like to enhance one of the crons. This is what I have at the moment: nice rsync -au /home/samba/wsaler/* /home/samba/wsaler.backup/wsaler.backup18pm date | /bin/mail -s "wsaler 3:00pm backup... (8 Replies)
Discussion started by: countrydj
8 Replies

3. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

4. Solaris

Solaris cron job email generation not required

Hi, How do we stop default cron job emails bein generated in Solaris 10? All our cron entries are ending with /dev/null 2>&1 but still emails are being generated. And all these emails are nuisance, as they are also get relayed to our local network sendmail MTA server (for system email... (14 Replies)
Discussion started by: hasan.kamali
14 Replies

5. Shell Programming and Scripting

Automated SCP from a job?

Hi all - I have a script which runs on the OS level, but refuses to run as a cron or as an Oracle job. The Script is pretty straight forward: #!/bin/bash username="MyUsername" host="Remote.server" path="Remote.directory/files/*.*" password="MyPassword" expect -c " spawn /usr/bin/scp... (3 Replies)
Discussion started by: danimaltex
3 Replies

6. Shell Programming and Scripting

how to avoid cron job output to send to the junk email folder?

Hi i created a cron job which invoke a shell script and output some content via email. Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do? (4 Replies)
Discussion started by: vidhyaS
4 Replies

7. Shell Programming and Scripting

Echo print in different lines within email sent by Cron job

Hi all, I think this could have a simple solution, just I canīt get it so far. I have the script below that includes several echo commands in order to show that every part of the script have been executed. A cron job executes this script and when is completed the output is sent by email. ... (4 Replies)
Discussion started by: cgkmal
4 Replies

8. AIX

Cron Job notification email

Hi, I'm fairly new to Aix and am looking for some help on the following. I have setup a cron job under root and want it to send the email once it's run to an external email address. I can get it to send the output in an email to me by using mail on the end of the crontab entry. But I would... (1 Reply)
Discussion started by: elmesy
1 Replies

9. Shell Programming and Scripting

Need logic for check automated Job work in awk or SED.

I have a Java program which will automatically trigger some scheduled job to update Db or some other work. I am tracking the jobs with log messages and finding out it is properly run or not. I want to write a script to capture it correctly on time. Say Job1 is running on 15, 30, and 45 every... (5 Replies)
Discussion started by: senthilkumar_ak
5 Replies

10. Shell Programming and Scripting

automated email on a log event

I am monitoring a logfile using tail -f file.log|"ERROR" I would like to write a korn script that monitors this for me and emails me if the event happens. It would be great if it attached the file to the email as well. Any Ideas? (2 Replies)
Discussion started by: seran128
2 Replies
Login or Register to Ask a Question