En cours

modify simple unix shell script

I want to modify the a simple unix script(ATTACHED).

like to add some condition .If the condition matches it will send a mail with a particular subject(i will provide code of email) and if any of the condition not match

it will send mail with the problems in subject and email body(like subject "DFP RFB CHECK for LN,NY,HK is RED" and email body is" database connectivity RED")

condition1:

if $a=$b=$c=$d=$e=0

condition2:

and $x>20

condition3:

and Disk Space <90

condition4:

and job IM_DFP-PROD_MESSAGING status OI

and job IM_DFP-PROD_MESSAGING_S status OI

and job IM_DFP-PROD_NOTIFICATION_CPS status RU

and job IM_DFP-PROD_NOTIFICATION_CPS_S status SU

then send email1 (i will provide code) .just you will add color in email body

like "DFP RFB CHECK for LN,NY,HK is GREEN" ----(diaplay GREEN with green color)

------------------------------------------------------------------------------------------------------------

if any of the above condition fails then send email2 (i will provide code)

just you will add color in email body

like "DFP RFB CHECK for LN,NY,HK is RED" ----(diaplay RED with red color)

also add the problem in email body

condition1:

#if $a,$b,$c,$d,$e any one of them is not zero then MQ Connectivity Check status RED

condition2:

if $x<20 then Database Connectivity Check status RED

condition3:

if any of the below diskspace is>90 then Disk Space Check status RED

(df -k /v/region/na/appl/imdlink/data_feeds_platform/instance/feeds/prod

df -k /v/region/na/appl/imdlink/data_feeds_platform/instance/app_data/prod

df -k /v/region/na/appl/imdlink/data_feeds_platform/instance/archive/prod

df -k /v/region/na/appl/imdlink/data_feeds_platform/instance/logs/prod

df -k /v/region/na/appl/imdlink/data_feeds_platform/instance/comet_in/prod/

df -k /v/region/na/appl/imdlink/data_feeds_platform/instance/comet_out/prod/)

condition4:

if the job IM_DFP-PROD_MESSAGING status not OI

or job IM_DFP-PROD_MESSAGING_S status not OI

or job IM_DFP-PROD_NOTIFICATION_CPS status not RU

or job IM_DFP-PROD_NOTIFICATION_CPS_S status not SU

then Message server Status check is RED

Compétences : Linux, UNIX

Voir plus : unix mail color, send mail unix shell script, unix send email script, problems with match, problem archive, match problems, match problem, job matches, diaplay, archive problems, archive problem, simple unix shell script, modify simple unix shell script, shell, in linux shell script, shell script or, e mail ru, unix\\, unix, unix C, shell script, modify code, ln, it su, DFP

Concernant l'employeur :
( 0 commentaires ) Pune, India

N° du projet : #1627303

8 freelance ont fait une offre moyenne de 1563 ₹ pour ce travail

coderz01

Hello. I can make your script.

2000 ₹ INR en 2 jours
(1 Commentaire)
1.4
Tzctgeta

Experienced System Administrator with blue chip companies would be glad to help.

1500 ₹ INR en 5 jours
(0 Commentaires)
0.0
akaresumit

I have script almost ready for this. Do the same job from two years. Go hands-on for shell scripting.

1500 ₹ INR en 1 jour
(0 Commentaires)
0.0
tarkahc

Hi, Being acquainted with both UNIX and AutoSys , I can do this easily and accurately. I will provide you with the working sample very soon.

1500 ₹ INR en 1 jour
(0 Commentaires)
0.0
mnixon

Hi, I'm a Unix Administrator mainly AIX/Solaris/HP & Redhat with over 22 years experince I can offer a very quick turn around on this project.

1500 ₹ INR en 1 jour
(0 Commentaires)
0.0
asterguy

Dear Mr. Sovanlalsaha, I can do it in less than a day. I have a wide experience in linux scripting for 5 years now.

1500 ₹ INR en 1 jour
(0 Commentaires)
0.0
Aziroshin

I have almost completed an optimized version of the script provided. It only still lacks the e-mail features and code to tweak output further and to your e-mail requirements. But, please see for yourself. The script Plus

1500 ₹ INR en 1 jour
(0 Commentaires)
0.0
mishrati

I am a unix,shell script expert.i can do it in a day thx

1500 ₹ INR en 1 jour
(0 Commentaires)
0.0