Checks

ECmanaged provides two kinds of monitor: Checks and Availability. You can configure them to check performance of your server. Here we discuss about checks. You can define different kind of checks using different Check Type. Different Check Types support different metrics. Depending on the metric, condition and threshold, you can set the status either to CRITICAL or to WARNING.You can create a new Check using the New Server Check button which will bring up the Add Monitor Check wizard, as shown:

Different supported check types are discussed here:

Check Type

Default

ECmanaged provides a default service check, as shown below:

This default service check can also be accessed via Rules tab and it monitors Overall capacity (CPU, Memory, Disk, Network) metric with the default notification profile. As shown below:

Any CPU, memory, disk and network specific check can be created by editing this rule.

Check URL

You can monitor the availability of a URL from your server using this Check Type. You can define your URL, port and timeout, as shown below:

The metrics it supports are: Response Time, Size, Content and Response Code.

Check TCP

You can monitor TCP connectivity to a host:port from your server.

The metric it supports is Response Time.

File Stat

You can monitor a file, you need to provide full path of the file.

The metrics it supports are: MD5 sum, SHA1 sum, inode, uid, gid, size, Access Time, Modify Time and Creation Time.

File Content

You can monitor a file for its content.

The metric it supports is Content.

Apache Server Status

You can monitor apache server status. Apache mod_status should be enabled.

The metrics it supports are: Busy Worker, Idle Worker, Bytes per Request, Bytes per Second etc.

Check Process

You can monitor a process. You can provide either the process name or regex.

The metrics it supports are: Number of Processes, Status, Running Time, Number of Threads, Process Nice, Memory Used(VMS) and Memory Used(RSS).

Reactions

In the last step of Add Monitor Check wizard, you define reactions depending on the state, as shown below:

You can define separate reactions for CRITICAL and WARNING state. ECmanaged adds by default the default notification. Here we discuss the available reactions.

Notification

You can launch a notification based on the state change trigger. Notification is discussed here.

Autosolver

You can launch an autosolver to restart selected services or kill selected processes. You can mention the processes either by name or by regex. You can create the autosolver by clicking on the OPTIONS button, as shown:

Run Script

You can provide a bash script to run as a reaction.

Reboot

You can soft/hard reboot your cloud server.