Forum

> > CS2D > Servers > Connect Serverstats with Website?
ForenübersichtCS2D-Übersicht Servers-ÜbersichtEinloggen, um zu antworten

Englisch Connect Serverstats with Website?

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Zitieren
It's possible if your website is being hosted from your VPS as well. Have you set up a virtual server on your VPS or do you have a seperate hosting for your website?

alt Re: Connect Serverstats with Website?

Hajt
User Off Offline

Zitieren
@user Rygna: You have to install web server e.g. Apache2 or nginx and then type this command in your terminal to create a directory with permissions:
1
mkdir -m 777 /var/www/serverstats

And then use this command to set path for statistics cs2d cmd stats_output "/var/www/serverstats/dust2.html"

Make sure you replace the example path to root of your web server, in my case it's just /var/www/. That's it. To check if everything went well, direct your browser to your server's IP address eg. 12.34.56.789/serverstats/dust2.html

alt Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Zitieren
It's not possible then.

However there is a way to collect the data from the server directly by execution of a cron script for it, parsing it and make a custom serverstats page. That requires programming with socket libraries (which your freehost may not have enabled).

Your website is suspended by the way.
1× editiert, zuletzt 10.04.16 12:01:48

alt Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Zitieren
@user Hajt, Freehosts usually don't allow these type of connections but it would be great if his did.
@user ead, Sadly that can't work unless the serverstats.html is on the same machine as the executing S:E (given that there' a valid access to it)
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Servers-ÜbersichtCS2D-ÜbersichtForenübersicht