Guide how to configurate Monitor CPU, RAM, HDD
Published: 2024-11-04 all articlesGuide how to configurate Monitor CPU, RAM, HDD
Monitor values from your server: cpu, ram, disks usage, port and db connection times, etc...
To monitor CPU, RAM, and HDD, follow these steps:
-
Under “Monitoring type,” select “Monitor CPU, RAM, HDD.”
-
Below are the instructions for monitoring CPU, RAM, and HDD using different platforms:
-
Value Provider (Your Own Web Service):
-
Host your site at the specified URL.
-
Your site should return JSON in the following format:
-
{"v": , "e": , "vs": }
-
Ensure that the overall response size does not exceed 1KB.
-
Use concise error messages.
-
Examples of valid responses:
-
{"v":12.34} (monitored value only)
-
{"e":"some exception happened"} (error occurred)
-
{"v":42,"e":"unexpected"} (both value and error)
-
{"v":42,"vs":"0.0.0.1"} (both value and version)
-
-
-
HostTracker (PHP Script for Nix Web Servers):
-
For CPU, RAM, and disk information:
-
Ensure that shell_exec is not denied in php.ini.
-
The user executing the PHP script should have rights to run shell commands (top for CPU usage, free for RAM usage, and df for file system usage).
-
-
For MySQL connection monitoring:
-
Check that mysql and mysqli extensions are enabled in php.ini.
-
Create a user with only connect permission.
-
-
Provide an HTTPS endpoint for secure communication with the hosted agent.
-
-
HostTracker (ASP.NET 4.0 Handler for IIS, Windows):
-
Requires ASP.NET 4.0 or higher.
-
Check process permissions; they must include the ability to retrieve performance counters (access registry keys).
-
Specify ‘NETWORK SERVICE’ as the user for the handler application pool.
-
Sensitive data exchange is possible with the hosted monitor (connection strings, etc.), but it is not encrypted.
-
-
If needed, provide your own web service URL in the specified field.
-
Name your task under “Task name.”
-
Set the interval for how often you want to monitor; for example, every 3 minutes.
-
Add tags to categorize your monitoring tasks for easier search and organization.
-
Enable the “Monitoring enabled” option to activate monitoring.
-
If desired, enable “Full log” to save every check result of your tasks without grouping.
-
Enable “Open stats” if you want to share statistics and logs with other people, including unregistered users.
-
Enable “Retry on connect fail” if you want the system to retry connecting in case of a failure.
To monitor CPU, RAM, and HDD, set up Limits:
Set Error Conditions:
-
Specify conditions that will trigger an alert (e.g., CPU exceeds a certain threshold).
-
Adjust the “Error Delay” setting to determine how many consecutive checks can be skipped before treating the situation seriously.
.
Choose Your Notification Preferences:
-
In the “Subscribe all selected” section, you’ll find three options:
-
“Up”: Select this if you want to receive notifications via email one month, 7 days, and 3 days before your domain expiration date.
-
“Down”: Choose this option to get notified when your domain name has already expired.
-
“Repeat”: Opt for this if you wish to receive daily alerts until the issue is resolved.
-
Uptime Reports:
-
Under “Subscribe all selected,” choose the frequency of uptime reports: daily, weekly, or monthly.
-
Enter an email address where these reports will be sent.
-
Click “Save” to apply your settings.