# Network Status Page

**URL:** <https://forums.plex.tv/t/network-status-page/45853>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [November 1, 2013, 12:53am UTC](https://forums.plex.tv/t/network-status-page/45853 "2013-11-01T00:53:35Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![SkuiD87](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/skuid87/32/201343_2.png) [@SkuiD87](https://forums.plex.tv/u/SkuiD87)\
**Post date:** [January 8, 2014, 4:53pm UTC](https://forums.plex.tv/t/network-status-page/45853/21 "2014-01-08T16:53:23Z")

</div>

OK, I've updated the config.ini location in functions.php and changed the services and links. Getting there!

The trakt recently viewed is incorrect though. Not sure why it thinks I'm watching Alpha House.

Still need to enable (local) bandwidth monitoring.

 ![ScreenShot2014-01-08at164931_zps66bba669](http://i12.photobucket.com/albums/a248/SkuiD87/Plex/ScreenShot2014-01-08at164931_zps66bba669.png)

---

<div class="post-metadata">

**Author:** ![ekadosh](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ekadosh/32/5018_2.png) [@ekadosh](https://forums.plex.tv/u/ekadosh)\
**Post date:** [January 8, 2014, 7:22pm UTC](https://forums.plex.tv/t/network-status-page/45853/22 "2014-01-08T19:22:56Z")

</div>

Hmm I haven't used the trakt thing (its not on the Linux version of this software).

I'll work on a script for local bandwidth monitoring for macs.&nbsp;

---

<div class="post-metadata">

**Author:** ![SkuiD87](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/skuid87/32/201343_2.png) [@SkuiD87](https://forums.plex.tv/u/SkuiD87)\
**Post date:** [January 9, 2014, 3:33pm UTC](https://forums.plex.tv/t/network-status-page/45853/23 "2014-01-09T15:33:43Z")

</div>

> Hmm I haven't used the trakt thing (its not on the Linux version of this software).
> 
> I'll work on a script for local bandwidth monitoring for macs.&nbsp;

Not so fussed about trakt to be honest. I have plexWatch for keeping stats of views.

It's the CPU/Disk space/Bandwidth monitoring that I'm more interested in.

What would be really useful, is to have some sort of chart/graph that shows peaks for usage. Not sure if this is possible...

Anyway, looking forward to your script for local bandwidth monitoring. Thanks again for all your help.

---

<div class="post-metadata">

**Author:** ![Mirabis](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mirabis/32/8526_2.png) [@Mirabis](https://forums.plex.tv/u/Mirabis)\
**Post date:** [January 9, 2014, 4:18pm UTC](https://forums.plex.tv/t/network-status-page/45853/24 "2014-01-09T16:18:19Z")

</div>

Lol my apologies for bothering people on previous posts... got the initial page to load  
  
But loads of 500 Internal Server Error

---

<div class="post-metadata">

**Author:** ![Treebeard\_44](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/treebeard_44/32/5563_2.png) [@Treebeard\_44](https://forums.plex.tv/u/Treebeard_44)\
**Post date:** [January 25, 2014, 6:24pm UTC](https://forums.plex.tv/t/network-status-page/45853/25 "2014-01-25T18:24:21Z")

</div>

Apologies, as not much of an expert when it comes to php!

Just had a quick go at getting this running on an unRAID server.. some of the page loads but this error message is repeated in various parts of the webpage.&nbsp; Anyone able to offer any clues of what may be the cause?

```
Parse error: syntax error, unexpected '[' in /mnt/cache/web/assets/php/functions.php on line 287
```

---

<div class="post-metadata">

**Author:** ![alilou](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alilou/32/141239_2.png) [@alilou](https://forums.plex.tv/u/alilou)\
**Post date:** [June 2, 2014, 8:42am UTC](https://forums.plex.tv/t/network-status-page/45853/26 "2014-06-02T08:42:53Z")

</div>

Very nice app!  
  
A windows version is it possible?  
  
Thank you in advance for your response

---

<div class="post-metadata">

**Author:** ![alilou](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alilou/32/141239_2.png) [@alilou](https://forums.plex.tv/u/alilou)\
**Post date:** [June 12, 2014, 7:25am UTC](https://forums.plex.tv/t/network-status-page/45853/27 "2014-06-12T07:25:17Z")

</div>

Hello,  
  
I installed the linux version everything works except the display images plex.  
  
The url type plex.php? = Http ... the image is correct but still nothing appears.  
  
Do you have an idea?  
  
Thank you for your answer!

---

<div class="post-metadata">

**Author:** ![pgammel](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pgammel](https://forums.plex.tv/u/pgammel)\
**Post date:** [July 18, 2014, 8:57pm UTC](https://forums.plex.tv/t/network-status-page/45853/28 "2014-07-18T20:57:04Z")

</div>

Does anyone know why my lines are working correctly? I've looked at them and don't see an error.

It says there is a parse error in lines 287.

I've pasted 287 -302

&nbsp;

&nbsp;

if ($name != "") echo '';

echo '
';

if ($name != "")

echo $name . ": ";

echo number\_format($dup, 0) . "%";

echo '
';

echo '

';

echo '
';

echo '
';

}

&nbsp;

function ping()

{

global $local\_pfsense\_ip;

global $ping\_ip;

&nbsp;

$clientIP = get\_client\_ip();

//$pingIP = '8.8.8.8';

if($clientIP != $local\_pfsense\_ip) {

$pingIP = $clientIP;

}

---

<div class="post-metadata">

**Author:** ![Ryan\_C](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ryan_c/32/96053_2.png) [@Ryan\_C](https://forums.plex.tv/u/Ryan_C)\
**Post date:** [July 18, 2014, 11:47pm UTC](https://forums.plex.tv/t/network-status-page/45853/29 "2014-07-18T23:47:34Z")

</div>

> Does anyone know why my lines are working correctly? I've looked at them and don't see an error.
> 
> It says there is a parse error in lines 287.
> 
> I've pasted 287 -302
> 
> &nbsp;
> 
> &nbsp;
> 
> if ($name != "") echo '';
> 
> echo '
> ';
> 
> if ($name != "")
> 
> echo $name . ": ";
> 
> echo number\_format($dup, 0) . "%";
> 
> echo '
> ';
> 
> echo '
> 
> ';
> 
> echo '
> ';
> 
> echo '
> ';
> 
> }
> 
> &nbsp;
> 
> function ping()
> 
> {
> 
> global $local\_pfsense\_ip;
> 
> global $ping\_ip;
> 
> &nbsp;
> 
> $clientIP = get\_client\_ip();
> 
> //$pingIP = '8.8.8.8';
> 
> if($clientIP != $local\_pfsense\_ip) {
> 
> $pingIP = $clientIP;
> 
> }

What version / repo are you using?

My lines 287 - 293 look like this but I'm using my own custom version:

```
echo $name . ": ";
			echo number_format($dup, 0) . "%";
		echo '
'; echo '

'; echo '
';
	echo '';
}
```

I will also post the entire functions for both the printDiskBar function and the ping function as that might also help:

printDiskBar (the one where your error is at):

```
function printDiskBar($dup, $name = "", $dsu, $dts)
{
	// Using autoByteFormat() the amount of space will be formatted as GB or TB as needed.
	if ($dup < 90)
	{
		$progress = "progress-bar";
	}
	else if (($dup >= 90) && ($dup < 95))
	{
		$progress = "progress-bar progress-bar-warning";
	}
	else
	{
		$progress = "progress-bar progress-bar-danger";
	}

```
if ($name != "") echo '<!-- ' . $name . ' -->';
echo '<div class="exolight">';
	if ($name != "")
		echo $name . ": ";
		echo number_format($dup, 0) . "%";
	echo '<div rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="' . byteFormat(autoByteFormat($dsu)[0], autoByteFormat($dsu)[1], autoByteFormat($dsu)[2]) . ' free out of ' . byteFormat(autoByteFormat($dts)[0], autoByteFormat($dts)[1], autoByteFormat($dts)[2]) . '" class="progress">';
		echo '<div class="'. $progress .'" style="width: ' . $dup . '%"></div>';
	echo '</div>';
echo '</div>';

```

}
```

ping function:

```
function ping()
{
	global $local_pfsense_ip;
	global $ping_ip;

```
$clientIP = get_client_ip();
//$pingIP = '8.8.8.8';
if($clientIP != $local_pfsense_ip) {
	$pingIP = $clientIP;
}
$terminal_output = shell_exec('ping -c 5 -q '.$ping_ip);
// If using something besides OS X you might want to customize the following variables for proper output of average ping.
$findme_start = '= ';
$start = strpos($terminal_output, $findme_start);
$ping_return_value_str = substr($terminal_output, ($start +2), 100);
$findme_stop1 = '.';
$stop = strpos($ping_return_value_str, $findme_stop1);
$findme_avgPing_decimal = '.';
$avgPing_decimal = strpos($ping_return_value_str, $findme_avgPing_decimal, 6);
$findme_forward_slash = '/';
$avgPing_forward_slash = strpos($ping_return_value_str, $findme_forward_slash);
$avgPing = substr($ping_return_value_str, ($stop + 5), ($avgPing_decimal - $avgPing_forward_slash - 1));
return $avgPing;

```

}
```

Again, it really depends on what version / repo you are using.

---

<div class="post-metadata">

**Author:** ![Ryan\_C](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ryan_c/32/96053_2.png) [@Ryan\_C](https://forums.plex.tv/u/Ryan_C)\
**Post date:** [July 18, 2014, 11:49pm UTC](https://forums.plex.tv/t/network-status-page/45853/30 "2014-07-18T23:49:52Z")

</div>

> OK, I've updated the config.ini location in functions.php and changed the services and links. Getting there!
> 
> The trakt recently viewed is incorrect though. Not sure why it thinks I'm watching Alpha House.
> 
> Still need to enable (local) bandwidth monitoring.
> 
> ![ScreenShot2014-01-08at164931_zps66bba669](http://i12.photobucket.com/albums/a248/SkuiD87/Plex/ScreenShot2014-01-08at164931_zps66bba669.png)

Did you change the config.ini value for the trakt username to your own?

---

<div class="post-metadata">

**Author:** ![Ryan\_C](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ryan_c/32/96053_2.png) [@Ryan\_C](https://forums.plex.tv/u/Ryan_C)\
**Post date:** [November 8, 2014, 6:36pm UTC](https://forums.plex.tv/t/network-status-page/45853/31 "2014-11-08T18:36:02Z")

</div>

Pushed version 0.2.0 to [github](https://github.com/d4rk22/Network-Status-Page).

Mainly just visual refinements and more info about whats being played and by who.

0.2.0 Change log:

\* Updated bandwidth\_ajax.php  
&nbsp;&nbsp;&nbsp;&nbsp;\* Added support for multi wan  
&nbsp;&nbsp;&nbsp;&nbsp;\* Changed how ping is displayed  
\* Removed header from disk\_space\_ajax.php  
\* Reduced the column width of Now Playing section so it looks better  
\* Added progress bars to Now Playing section  
\* Reduced movie & episode summary length to 50 words  
\* Added name of Plex user to now playing status  
\* Added play or pause icons to now playing status for each stream  
\* Added getTranscodeSessions fuction to give me the number of sessions that require transcoding  
\* Added getPing function that includes source IP, required to ping from various NICs  
\* Added countWords & limitWords functions  
\* Updated SabThrottle for multi WAN support  
\* If SAB is downloading show the speed in the service area  
\* Weather panel  
&nbsp;&nbsp;&nbsp;&nbsp;\* Added sun rise & sun set times  
&nbsp;&nbsp;&nbsp;&nbsp;\* Wind speed reads "calm" if speed is 0  
\* Moved javascript to the end of index.php  
\* Updated Mobile\_Detect to 2.8.0

![1hfF8+.png](http://d.pr/i/1hfF8+.png)

![1eTEu+.png](http://d.pr/i/1eTEu+.png)

---

<div class="post-metadata">

**Author:** ![kerbys](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kerbys](https://forums.plex.tv/u/kerbys)\
**Post date:** [November 18, 2014, 2:21pm UTC](https://forums.plex.tv/t/network-status-page/45853/32 "2014-11-18T14:21:10Z")

</div>

Is there support for two servers? i.e showing info from both on one page? p.s on ubuntu

---

<div class="post-metadata">

**Author:** ![Ryan\_C](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ryan_c/32/96053_2.png) [@Ryan\_C](https://forums.plex.tv/u/Ryan_C)\
**Post date:** [November 23, 2014, 8:12am UTC](https://forums.plex.tv/t/network-status-page/45853/33 "2014-11-23T08:12:43Z")

</div>

Support for two servers is not built in my default but it wouldn't be too difficult to add. Feel free to branch the code and make it so. One of the recent branches goal is to rewrite this project using python and socketIO so that the server pushes out events rather than the clients polling for updates. If you look at the github repo there have been quite a few branches that have done some incredible things in the past.

---

<div class="post-metadata">

**Author:** ![bb12489](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bb12489/32/162163_2.png) [@bb12489](https://forums.plex.tv/u/bb12489)\
**Post date:** [November 25, 2014, 8:13pm UTC](https://forums.plex.tv/t/network-status-page/45853/34 "2014-11-25T20:13:00Z")

</div>

Any got this to work on Windows yet? I've been trying all day, but I can't get it to display anything. I've got PHP installed in IIS, and it does load the page somewhat. However it won't populate any of the frames where the content should be.&nbsp;

---

<div class="post-metadata">

**Author:** ![miked82](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@miked82](https://forums.plex.tv/u/miked82)\
**Post date:** [December 9, 2014, 10:37pm UTC](https://forums.plex.tv/t/network-status-page/45853/35 "2014-12-09T22:37:24Z")

</div>

I guess you need plexpass in order for this to work correctly? May tried to rewrite the Linux version to work with XBMC

---

<div class="post-metadata">

**Author:** ![trizcuit](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/trizcuit/32/10027_2.png) [@trizcuit](https://forums.plex.tv/u/trizcuit)\
**Post date:** [March 17, 2015, 2:03am UTC](https://forums.plex.tv/t/network-status-page/45853/36 "2015-03-17T02:03:17Z")

</div>

I worked around a lot of the issues I was having with this (love this by the way). For some reason my hosts primarily my Plex, Sab and Sickbeard hosts show up as offline. Also my trakt isn't showing any images of what is being watched looks like a broke link but I cannot figure out where it's broken. Is there a fix for this?

Edit: nevermind on the offline online problem. It's just the trakt issue not loading anything.

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [March 19, 2015, 3:40am UTC](https://forums.plex.tv/t/network-status-page/45853/37 "2015-03-19T03:40:18Z")

</div>

Apparently nobody has updated to your latest 0.2.0 release yet for the linux versions. I'm probably going to fork it and make it linux friendly. I'll try to keep it maintained along with your changes. I will likely also build a windows version for all of you who would like one as well. Depending on demand I may or may not dockerize this for my Unraid box too. I've done a bunch of work tonight to familiarize myself with your code structure, so I'll get cracking on code in the next day or two.

**Update:**

So my first coding session went quite well. I'm making a lot of under the hood changes to better support any OS. I'm still cleaning up some areas of the codebase that were hardcoded for the OP server and making them point to the config.ini file. When I'm done with that I'm going to tackle cross platform modularity and then make UI elements more dynamic and user specifiable from the config file as well. I should be able to do most of this over the weekend, not necessarily totally stable but it'll at least be a good first pass. I'll do a release sometime after that. I'm trying to keep my changes tame enough that I can still easily, or relatively at least, take in new changes from ryanc when he pushes out new features.

**Update 2:**

Added a few new features that I wanted in the app. I'm now "feature" complete for myself and I'll start the work to get things squared away for a cross-plat launch. Here's a teaser. This is running on unRaid at the moment with bandwidth coming from OpenWRT.

 ![94GVDPM.png](http://i.imgur.com/94GVDPM.png)

---

<div class="post-metadata">

**Author:** ![Predator04](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Predator04](https://forums.plex.tv/u/Predator04)\
**Post date:** [March 20, 2015, 9:38pm UTC](https://forums.plex.tv/t/network-status-page/45853/38 "2015-03-20T21:38:55Z")

</div>

Man i wish this was for windows. this is awesome! I would want the posters to be a list of recently added shows/movies

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [March 21, 2015, 2:16am UTC](https://forums.plex.tv/t/network-status-page/45853/39 "2015-03-21T02:16:53Z")

</div>

I'm going to be spending tonight working on getting it ready for windows. There are only a handful of functions that will need to be edited to allow for this, and the load section of the app will need to have the UI tweaked. Would you like a development/beta build when I have something hacked together?

---

<div class="post-metadata">

**Author:** ![Predator04](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Predator04](https://forums.plex.tv/u/Predator04)\
**Post date:** [March 21, 2015, 4:26am UTC](https://forums.plex.tv/t/network-status-page/45853/40 "2015-03-21T04:26:47Z")

</div>

> I'm going to be spending tonight working on getting it ready for windows. There are only a handful of functions that will need to be edited to allow for this, and the load section of the app will need to have the UI tweaked. Would you like a development/beta build when I have something hacked together?

Well of course. That would be great. contact me @ neal &nbsp; &nbsp;Billy &nbsp; @ &nbsp; Gmail &nbsp; &nbsp;.com

[Previous page](https://forums.plex.tv/t/network-status-page/45853.md?page=1)

[Next page](https://forums.plex.tv/t/network-status-page/45853.md?page=3)
