10-29-2013
How to write a script to send these alerts?
Hello AIXians
I want to complete this task using a script.
The task is:
We have a file called (alerts.log), this file is receiving all new alerts from ORACLE application all the day, I want to send email to a specific mail address when this file receives all alerts that starts with (ORA-).
Is the idea clear?
Please help me to finish this task.
Many thanks
---------- Post updated 10-29-13 at 12:10 AM ---------- Previous update was 10-28-13 at 10:20 PM ----------
Dear AIXians,
I know how to send mails from AIX, but the problem now, how to tell the script to send the new notification when the file (alerts.log) receives new alerts that have the word (ORA-) in the beginning of each line.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I want to know how to send an email using shell script .....
I tried a command call mail but it did not work..
Please any one reply.. With example if you know thanks..
Madhu (4 Replies)
Discussion started by: madhumathikv
4 Replies
2. Shell Programming and Scripting
Hi all, Please suggest
I want to write a scritp which will send a email to my mail address before the time duration of the password reset,
Should write mail stating that your password will expire in so and so days""
Rgds:b:
Ann. (2 Replies)
Discussion started by: Haque123
2 Replies
3. Shell Programming and Scripting
Hi All,
I have a have a script which checks for some processes whether they are running or not and if they are not running then it send a mail specifying that the processes are not running.
This particular script example abc.ksh is runs in a cron like this
0,5,10,15,20,25,30,35,40,45,50,55 * * *... (5 Replies)
Discussion started by: usha rao
5 Replies
4. Shell Programming and Scripting
Hi,
I have written below disk space monitoring script to monitor disk space every minute. I have scheduled this script through cron. But now my problem is this script alerts the users continuously until the space is freed up. These emails are filling up the inbox exponentially until the space... (3 Replies)
Discussion started by: svajhala
3 Replies
5. Solaris
Hello Everyone,
I need your expertise in creating script on how to automate sending of alert/notification of NAS Space and also File counts with the following requirements.
1. Automatically send to assigned sysadmin if it crosses threshold level.
2. Threshold is 80% utilization of the... (4 Replies)
Discussion started by: sam09
4 Replies
6. UNIX for Dummies Questions & Answers
We are moving from using the syslog facility to sysmon. My question is what API's are used to write alerts to sysmon (2 Replies)
Discussion started by: thenrett
2 Replies
7. Shell Programming and Scripting
Hi Guys,
I am not Good at scripting.
I need to write a script such that if output of command shows the particular word in output then send mail to abc@compay.com
-bash-3.2$ ps -ef | grep bpbkar
root 6040 1 0 13:05:19 ? 0:00 bpbkar -r 2678400 -ru root -dt 47395 -to 0... (20 Replies)
Discussion started by: manalisharmabe
20 Replies
8. Shell Programming and Scripting
Can someone get me script to find swap space for linux servers (1 Reply)
Discussion started by: Moon1234
1 Replies
9. UNIX for Dummies Questions & Answers
Good Day
Kindly assist:
I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script.
Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
I got a requirement to send a mail to the individual users of a unix server about their respective groups. can some one help me to provide the script as I am unable to write that.
I tried with below lines but I come out with errors.
cat /etc/passwd | awk -F':' '{ print $1}' |... (6 Replies)
Discussion started by: harshabag
6 Replies
LEARN ABOUT DEBIAN
hobbitd_channel
HOBBITD_CHANNEL(8) System Manager's Manual HOBBITD_CHANNEL(8)
NAME
hobbitd_channel - Feed a hobbitd channel to a worker module
SYNOPSIS
hobbitd_channel --channel=CHANNEL [options] workerprogram [worker-options]
DESCRIPTION
hobbitd_channel hooks into one of the hobbitd(8) channels that provide information about events occurring in the Xymon system. It
retrieves messages from the hobbitd daemon, and passes them on to the workerprogram on the STDIN (file descripter 1) of the worker program.
Worker programs can then handle messages as they like.
A number of worker programs are shipped with hobbitd, e.g. hobbitd_filestore(8) hobbitd_history(8) hobbitd_alert(8) hobbitd_rrd(8)
If you want to write your own worker module, a sample worker module is provided as part of the hobbitd distribution in the hobbitd_sample.c
file. This illustrates how to easily fetch and parse messages.
OPTIONS
hobbitd_channel accepts a few options.
--channel=CHANNELNAME
Specifies the channel to receive messages from, only one channel can be used. This option is required. The following channels are
available:
"status" receives all Xymon status- and summary-messages
"stachg" receives information about status changes
"page" receives information about statuses triggering alerts
"data" receives all Xymon "data" messages
"notes" receives all Xymon "notes" messages
"enadis" receives information about hosts being disabled or enabled.
--daemon
hobbitd_channel is normally started by hobbitlaunch(8) as a task defined in the hobbitlaunch.cfg(5) file. If you are not using hob-
bitlaunch, then starting hobbitd_channel with this option causes it to run as a stand-alone background task.
--pidfile=FILENAME
If running as a stand-alone daemon, hobbitd_channel will save the proces-ID of the daemon in FILENAME. This is useful for automated
startup- and shutdown- scripts.
--env=FILENAME
Loads the environment variables defined in FILENAME before starting hobbitd_channel. This is normally used only when running as a
stand-alone daemon; if hobbitd_channel is started by hobbitlaunch, then the environment is controlled by the task definition in the
hobbitlaunch.cfg(5) file.
--log=FILENAME
Redirect output to this log-file.
--debug
Enable debugging output.
FILES
This program does not use any configuration files.
SEE ALSO
hobbitd(8), xymon(7)
Xymon Version 4.2.3: 4 Feb 2009 HOBBITD_CHANNEL(8)