Đang Thực Hiện

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

Kỹ năng: Linux, UNIX

Xem thêm: unix mail color, unix send email script, problems match, problem archive, match problems, match problem, job matches, diaplay, archive problems, archive problem, simple unix shell script, shell, unix, unix c, shell script, modify code, ln, it su, dfp, df, shell unix, simple database problems, code disk, region code, red status code

Về Bên Thuê:
( 0 nhận xét ) Pune, India

Mã Dự Án: #1627303

8 freelancer đang chào giá trung bình ₹1563 cho công việc này

coderz01

Hello. I can make your script.

₹2000 INR trong 2 ngày
(1 Đánh Giá)
1.4
Tzctgeta

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

₹1500 INR trong 5 ngày
(0 Đánh Giá)
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 trong 1 ngày
(0 Đánh Giá)
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 trong 1 ngày
(0 Đánh Giá)
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 trong 1 ngày
(0 Đánh Giá)
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 trong 1 ngày
(0 Đánh Giá)
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 Thêm

₹1500 INR trong 1 ngày
(0 Đánh Giá)
0.0
mishrati

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

₹1500 INR trong 1 ngày
(0 Đánh Giá)
0.0