# How to know the server status ?

**URL:** https://community.wowza.com/t/how-to-know-the-server-status/426
**Category:** Wowza Streaming Engine
**Created:** [June 30, 2010, 1:06pm UTC](https://community.wowza.com/t/how-to-know-the-server-status/426 "2010-06-30T13:06:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [June 30, 2010, 1:06pm UTC](https://community.wowza.com/t/how-to-know-the-server-status/426/1 "2010-06-30T13:06:10Z")

</div>

Hi,

I want to know the status of the server ( Wowza server on Amazon EC2 ) when flow is sent from the encoder to be relayed.

I use Adobe Flash Media Encoder, and I want to get the server status in a variable that I can read with php.

For example, a variable set to “false” when no flow, and set to “true” when I push the “send” button on Flash Media Encoder.

Could someone inform me on what to do?

Thank you

Best regards,

Gerard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [June 30, 2010, 4:01pm UTC](https://community.wowza.com/t/how-to-know-the-server-status/426/2 "2010-06-30T16:01:20Z")

</div>

You can use a HTTProvider.

[http://community.wowza.com/t/-/245](http://community.wowza.com/t/-/245)

You will send querystring with stream name and application name, then you will have to write some code to test the stream, then you can respond with your result.

Richard

---

<div class="post-metadata">

### Author: ![bai\_shuzhan](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bai\_shuzhan](https://community.wowza.com/u/bai_shuzhan)
#### Post date: [July 12, 2010, 7:05pm UTC](https://community.wowza.com/t/how-to-know-the-server-status/426/3 "2010-07-12T19:05:20Z")

</div>

[PHP]\<?php

//wowza status

$url =http://domain.com:8086/’;

$curl =curl\_init();

curl\_setopt($curl,CURLOPT\_HEADER,0);

curl\_setopt($curl,CURLOPT\_URL,$url);

curl\_setopt($curl,CURLOPT\_RETURNTRANSFER,1);

$content =curl\_exec($curl);

curl\_close($curl);

if($content==‘Wowza Media Server 2 Perpetual 2.1.0 build24349Wowza Media Server 2 Perpetual 2.1.0 build24349’){

echo “start”

}else{

echo “stop”;

}

?\>[/PHP]

---

<div class="post-metadata">

### Author: ![Gerard\_Fauveau](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@Gerard\_Fauveau](https://community.wowza.com/u/Gerard_Fauveau)
#### Post date: [June 30, 2010, 5:16pm UTC](https://community.wowza.com/t/how-to-know-the-server-status/426/4 "2010-06-30T17:16:03Z")

</div>

Thank you Richard for your response. But … I am unable to implement your recommendations …

A volunteer to help me ?

This volunteer must be patient and educator 🙂
