En cours

add simple features unix shell script

Project Description:

I want to add features in the a simple unix script(ATTACHED) but do not want any changes in it.

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 : UNIX

Voir plus : problems match, problem archive, match problems, match problem, job matches, diaplay, archive problems, archive problem, unix, unix c, shell script, ln, it su, dfp, df, shell unix, simple database problems, code disk, region code, unix project, red status code, zero email server, mail connectivity, email database region, check status

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

N° du projet : #1632466

Décerné à :

tehif

Hired by the Employer

30 $ USD en 2 jours
(9 Commentaires)
4.1