xml monitoring script

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

I need to get an email notification and the option to also execute a curl command when the XML "STREAMSTATUS" attribute changes on a server. The value will either be 1 or 0. And if the value changes from 1 to 0 I need a server down email and the ability to execute a curl command if needed. and if it changes from 0 to 1 I need a server up email and also the ability to execute a curl command. There will be two different curl commands one for up and one for down. It needs to be easily modified in the event I need to change the poll frequency, server, etc.

OS= CentOS 6

I will need the ability to monitor multiple servers so it needs to be made so that I can add additional profiles easily.

So I will need to set the following for each server to be monitored:

server1

URL=""

email subject=""

email body=""

curl enabled=yes/no

curl command=""

server2

URL=""

email subject=""

email body=""

curl enabled=yes/no

curl command=""

example url: [url removed, login to view]

example output:

<SHOUTCASTSERVER>

<CURRENTLISTENERS>0</CURRENTLISTENERS>

<PEAKLISTENERS>0</PEAKLISTENERS>

<MAXLISTENERS>300</MAXLISTENERS>

<UNIQUELISTENERS>0</UNIQUELISTENERS>

<AVERAGETIME>0</AVERAGETIME>

<SERVERGENRE/>

<SERVERGENRE2/>

<SERVERGENRE3/>

<SERVERGENRE4/>

<SERVERGENRE5/>

<SERVERURL/>

<SERVERTITLE/>

<SONGTITLE/>

<STREAMHITS>0</STREAMHITS>

<STREAMSTATUS>0</STREAMSTATUS>

<BACKUPSTATUS>0</BACKUPSTATUS>

<STREAMLISTED>0</STREAMLISTED>

<STREAMLISTEDERROR>200</STREAMLISTEDERROR>

<STREAMPATH>/stream</STREAMPATH>

<BITRATE>0</BITRATE>

<CONTENT/>

<VERSION>[url removed, login to view] (posix(linux x64))</VERSION>

</SHOUTCASTSERVER>

I just need the value of "<STREAMSTATUS>0</STREAMSTATUS>"

I know this is a pretty basic project, However I am interested in getting this built immediately if possible.

Software Architecture XML

Project ID: #10280885

About the project

1 proposal Remote project Active 7 years ago

Awarded to:

kozaktr

Hello there ! I can code for your project and giving back files in 3 hours . I hope we can work . Have a nice day !

$30 USD in 0 days
(7 Reviews)
3.5

1 freelancer is bidding on average $30 for this job

technowise2

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c More

$25 USD in 1 day
(0 Reviews)
0.0