The Server Monitor is used to monitor server resources, gameserver status, cache information, and many other things. We HIGHLY recommend using the server monitor to get the best performance out of GSP-Panel.
The server monitor can be ran by using your local crontab/task scheduler on your master server, or by using the GSP-Panel scheduler which utilizes our servers to call your scheduled tasks. When using the GSP-Panel scheduler you will also have the ability to schedule server restarts and other options.
To change the scheduler method go into Configuration > General Settings > Change “Scheduler Method” to the desired setting.
NOTE: By default the scheduler method is set to GSP-Panel and requires an active license.
Windows Scheduled Tasks
- Remote desktop into the server and navigate to Control Panel > Administrative Tools > Task Scheduler
- Click “Create Task”
- Fill in the follow settings:
- General Tab
- Name: GSP-Panel Server Monitor
- Select “Run whether user is logged on or not”
- Trigger Tab
- Click New
- Begin the task: On a schedule
- Check “Repeat task every:” and set this to “5 minutes” for a duration of “Indefinitely”
- Click “Ok”
- Actions tab
- Click New
- Action: Start a Program
- Program/Script: Locate php.exe
- Add Arguments: Location to [panel install directory]\api\servermon.php
- Start In: [panel install directory]
- Click Ok
- Click Ok
- Your task should now be all set.
Server Monitor not running
You may see one of the following messages:
- The server monitor has not ran in the past 20 minutes, for optimal performance please enable the server monitor
- The server monitor does not appear to be setup or has not ran on your system yet, for optimal performance please enable the server monitor
Local crontab/task scheduler
If you have already setup the cron(Linux) or scheduled task(Windows) and are still seeing the messages(after 5 minutes) then ionCube may not be loaded in the php-cli configuration, this is different then the standard php.ini/php5.ini. To find the correct ini you can use the following commands:
php -i |find /i "Configuration File"
php -i | grep 'Configuration File'
You will need to create the scheduled task by doing the following:
- Go to Utilities > Scheduler > Add
- Select 'Server Monitor' as the 'Schedule Type'
- Select '5 Minutes' for the interval
- Wait 5 minutes for the job to run
Contact support if you are having problems with any scheduled tasks while using the GSP-Panel scheduler.