Go to All Forums

Server monitoring - send alert email if "service and processes" monitor is down

I'm using the AWS EC2 monitoring plugins.  Question is if I'm monitoring "services and processes" for a EC2 instance the only action it seems I can do is "restart".  How can I have site24x7 send me an email/alert when the service is DOWN?  

 

 

Like (1) Reply
Replies (3)

Hi,

You can configure alert mails and be notified if your service and process is down using one of the following ways:

  1. Edit the Threshold Profile of the Server Monitor
  2. Edit in the Process' threshold profile

Edit the Threshold Profile of the Server Monitor

  1. Login and go to AWS > All Accounts > EC2 Instance
  2. Click on the EC2 instance where the service or process is running
  3. Beside the display name at the top, hover on the hamburger icon. Click on Edit
  4. In the Edit EC2 Instance Monitor Details page, under Configuration Profiles, click on the pencil icon beside the option Agent Threshold Profile.
  5. Toggle to the option YES for the option Notify when process is down. You can also choose to be notified with a TROUBLE or DOWN alert.
    Note: You can map automations and execute actions automatically when a service or process is down. Click here to know how.
  6. Save your changes.

Edit the Process' Threshold Profile

  1. Login and go to AWS > All Accounts > EC2 Instance
  2. Click on the EC2 instance where the process or service is running
  3. Go to the Services and Processes tab
  4. You can find the list of services and processes being monitored. Under Action, click on the pencil icon against the process or service for which you wish to be alerted.
  5. Select Yes for the option Notify when process is down. You can also choose to opt for a TROUBLE or DOWN alert. 
    Note: You can map automations and execute actions automatically when a service or process is down. Click here to know how.
  6. Save your changes. 

 

Hope this helps. Let us know for further clarifications or questions, if any.

 

Happy Monitoring!

Like (0) Reply

Hello, is there an option for notification delay for process monitoring? ex. if a certain process was stopped, it will count based on the polling time before sending the notification, let's say. 3 x poll = 15 min. Thanks!

Like (0) Reply

Hi,

 Thanks for the asking this here. We don't have strategies for process and services at the moment. We'll add this to our roadmap. 

An alternative to overcome this is to create a custom plugin. The plugin can record up /down for a process. With plugin you also get strategies for the attributes you define. 

I have created a custom plugin (C# .NET) which checks if the process is running or not (The return value should be an integer for the plugin to use it as a threshold. The "ProcessAvailability" attribute will have strategies as you asked. 

public class Site24x7ProcessPlugin : IPlugins
{
public object DataCollect()
{
IDictionary<String, object> pluginCollector = new Dictionary<String, object>();
pluginCollector.Add("ProcessAvailability", ProcessVerifier.IsRunning("MonitoringAgent.exe"));
pluginCollector.Add("TeamsAvailability", new ProcessVerifier().IsRunning("Teams"));

//Add other processes if needed and have availability for each process.

return pluginCollector;
}
}

Strategy for the attribute.

You can use this to monitor your processes and also set strategies for it. 

Note: 2 plugin monitors are included as part of server monitor. 

-Jasper

Product Manager, Site24x7

Attachments
ProcessPlugin.zip
Size: 1.07 KB
Like (0) Reply

Was this post helpful?