Alfred, is it possible to get a read only cvar to check if VAC is enabled
or not?

/Bjorn

On Mon, 1 May 2006, kama wrote:

>
> Well, it would be preferably to have a readonly cvar sv_secure that can be
> queried from within a plugin.
>
> /Bjorn
>
> On Mon, 1 May 2006, W0kk3L wrote:
>
> > As far as i could find... no. Well, you can get the status externally by
> > using something like qstat, or by sending an rcon command to the server. The
> > easiest way is trough qstat, because you don't need a rcon password for it.
> > I believe this is the same way the clients do it for displaying the VAC
> > state in the favorites list.
> >
> > -W0kk3L-
> >
> > ----- Original Message -----
> > From: "kama" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Monday, May 01, 2006 12:44 AM
> > Subject: Re: [hlds_linux] Vac turning off / Server going insecure regularly
> >
> >
> > >
> > > Is there any other way than using status that will say if the server is
> > > secure or not?
> > >
> > > /Bjorn
> > >
> > > On Sun, 30 Apr 2006, W0kk3L wrote:
> > >
> > >> Sure,
> > >>
> > >> I haven't included everything of the script, cause our script is mostly
> > >> SQL
> > >> based, so it wouldn't work on your servers.
> > >> But here are the most important parts. I've stripped it down so it would
> > >> work for one server. If you want it to work on more servers, just select
> > >> them first, and place the code below in that loop.
> > >>
> > >> Here it comes:
> > >> ------------------------------------------------------------------------------------------------------------------
> > >> #
> > >> # Script to check if the www.Crew-Nexus.net CS servers are secure. If
> > >> not,
> > >> restart them...
> > >> #
> > >>
> > >> echo " - Scanning servers..."
> > >> QSTAT_INFO=`qstat -timeout 5 -R -raw % -a2s <ip>:<port>|grep secure=1`;
> > >> if [ "$QSTAT_INFO" != "" ]; then
> > >>         echo "      Server is secure"
> > >> else
> > >>         echo "      [$DATE] Server nex1cs is INSECURE...Rebooting this
> > >> server!"
> > >>         ./kkrcon.pl -a <ip> -p <port> -t new <rconpassword> "say Server
> > >> is
> > >> VAC insecure... will restart now!"
> > >>         sleep 3
> > >>         echo "    Sending RCON QUIT to nex1cs <ip>:<port>)"
> > >>         ./kkrcon.pl -a <ip> -p <port> -t new <rconpassword> quit
> > >> fi
> > >> echo " - Done."
> > >> -----------------------------------------------------------------------------------------------
> > >>
> > >> Just place this in a sh file, and give it executable rights. And finally
> > >> add
> > >> it to a cronjob on hourly basis.
> > >> As you can see it's very basic. But it does the trick :)
> > >>
> > >> -W0kk3L-
> > >>
> > >> ----- Original Message -----
> > >> From: "FiRe" <[EMAIL PROTECTED]>
> > >> To: <[email protected]>
> > >> Sent: Sunday, April 30, 2006 6:42 PM
> > >> Subject: Re: [hlds_linux] Vac turning off / Server going insecure
> > >> regularly
> > >>
> > >>
> > >> > Would you be kind enough to post the script W0kk3L?
> > >> >
> > >> > FiRe
> > >> >
> > >> > ----- Original Message -----
> > >> > Subject:
> > >> > Re: [hlds_linux] Vac turning off / Server going insecure regularly
> > >> > From:
> > >> > "W0kk3L" <[EMAIL PROTECTED]>
> > >> > Date:
> > >> > Sun, 30 Apr 2006 08:47:09 +0200
> > >> > To:
> > >> > <[email protected]>
> > >> >
> > >> > To:
> > >> > <[email protected]>
> > >> >
> > >> >
> > >> > Yep, the VAC servers are unreachable for quite a few times on daily
> > >> > basis.
> > >> > We have 20 VAC-based server running (CS and CS:S) and we've performed
> > >> > 21
> > >> > VAC-insecure reboots yesterday on those server. But i have to say there
> > >> > was
> > >> > one major reboot of all 20 server at 0:00 hour.Most likely the VAC
> > >> > servers
> > >> > themself were being restarted. Usually we have about 4 or 5 "VAC
> > >> > insecure"
> > >> > reboots per day.
> > >> >
> > >> > What can you do against it? Well, nothing. It's not in our hands. It
> > >> > can
> > >> > be
> > >> > caused by VAC or by the connection from your server to VAC. In both
> > >> > ways,
> > >> > you can't prevent it. The only thing you can do about it is making the
> > >> > reboots automated, so the server are protected most of the time. On our
> > >> > servers i've created a script which reads the "secure" status by qstat.
> > >> > If
> > >> > that status is not "1" (e.g. "0" or not available), it will send a
> > >> > message
> > >> > to the server that it's going to reboot, and 10 secs later it sends an
> > >> > rcon
> > >> > quit. The runs every hour checking all VAC protected servers. Quite
> > >> > simple,
> > >> > but effective.
> > >> >
> > >> > -W0kk3L-
> > >> >
> > >> > ----- Original Message -----
> > >> > From: <[EMAIL PROTECTED]>
> > >> > To: <[email protected]>
> > >> > Sent: Sunday, April 30, 2006 7:43 AM
> > >> > Subject: [hlds_linux] Vac turning off / Server going insecure regularly
> > >> >
> > >> >
> > >> >> Greetings
> > >> >>
> > >> >> Has anyone of you experienced the Problem of your Server going
> > >> >> insecure
> > >> >> regulary after a while, so you got to restart it, so have Vac running
> > >> >> again?
> > >> >> If yes, what can I do against it?
> > >> >>
> > >> >> cheers
> > >> >> SecurityFox
> > >> >>
> > >> >> _______________________________________________
> > >> >> To unsubscribe, edit your list preferences, or view the list archives,
> > >> >> please visit:
> > >> >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > >> >
> > >> > _______________________________________________
> > >> > To unsubscribe, edit your list preferences, or view the list archives,
> > >> > please visit:
> > >> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > >>
> > >>
> > >> _______________________________________________
> > >> To unsubscribe, edit your list preferences, or view the list archives,
> > >> please visit:
> > >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > >>
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives, 
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to