article Ensuring an Application is Always Running

The Process Count Check monitor can be used to ensure an application is always running but to configure the monitor you must first identify the process name associated with the application.

Identifying Process Names on Windows Platforms

Finding the process name assocated with an application is often as simple as locating the application in the Windows Task Manager. To find a Windows application's process name:

  1. Open Task Manager on the system that is running the application you want to monitor.
  2. On the Applications tab, right-click the application then click Go To Process on the context menu. The Task Manager should switch to the Processes tab and highlight the process belonging to the selected application.

  3. Make note of this process name as it will be used when you configure the Process Count Check monitor.

If the application you want to monitor is running as a Windows service (i.e. as a background process), it will typically not have a graphical front end and will not appear as an application in the Task Manager. To find a Windows service's process name:

  1. On the system that is running the application you want to monitor, open Services, which is accessed from the Administrative Tools Control Panel.
  2. Locate the service name (in the example below, it is Microsoft SQL Server Reporting Services).

  3. Right-click the service name, then click Properties. Locate the service's executable name in the Path to executable box (in this case, it is ReportingServicesService):

  4. To verify that this service is running as a Windows process, open Task Manager, select the Processes tab and select the Show processes from all users check box. Confirm that the service executable is listed as a current process (in this case, ReportingServicesSerivce.exe is listed):

  5. Make note of this process name as it will be used when you configure the Process Count Check monitor.

Identifying a UNIX Process Name

Finding a process on a UNIX system depends on the application you want to monitor. Some applications do not need to be started with their actual name, some may rename themselves while running and some can start multiple processes while running. For example, with Oracle Database on UNIX, a process may exist for every database instance, whereas on Windows, a single process contains as many threads as there are database instances.

Given the less visibly direct association between UNIX processes and applications, you may need to use a utility to help you find the process you are looking for. Some examples include:

  • ps: the process statistics command reports a snapshot of all currently running processes. For example, using "ps -ef" produces a full listing of every running process.
  • pstree: this command is similar to ps except processes are displayed in a tree view. Using this command can help you determine which process is associated with an application by easily identifying parent processes. You can also add an application username as an argument to only display process trees that belong to applications initiated by the supplied user name.
  • pgrep: this command expands on grep (which is used to find text in files based on a matching pattern) by finding processes based on attributes such as the executable's name. A regular expression that is supplied as an argument is matched against executable file names associated with running processes (e.g. "pgrep payroll$" would return all processes whose names end with "payroll"). If you have an idea of which application you are looking for, pgrep returns a relatively refined list of results and is an ideal method.

Configuring the up.time Process Count Check Monitor

To create a service in up.time:

  1. Add a new service instance on the Services panel.
  2. In the Add Service Monitor window, and in the Agent Monitors section, select the Process Count Check monitor. When configuring the monitor, make note of the Process Count Check Settings section:

  3. In the Process Name box, enter the name of the process (or parent process) associated with the application that you want to monitor.
  4. In the Process Occurrences / Critical drop-down list, select is less than, then enter 0 in the box beside it.
  5. Continue to configure the service instance, making sure you also select a pre-defined alert profile. The alert profile will determine how up.time reacts if the monitored application stops running.

Related Articles


Application Availability Does Not Match Average Status of Service...

RatingViews
article

By: uptime Support | Date Created: 7-9-2007 | Last Modified: 6-28-2011 | Index: 192

  4174

Ensuring that a non-Windows agent is listening

RatingViews
article

Learn how to determine if a non-Windows agent is listening from within the up.time user interface.

By: uptime Support | Date Created: 1-2-2007 | Last Modified: 7-5-2011 | Index: 112

  3012

How do I create an Application?

RatingViews
article

Applications are used in up.time to group together dispersed service monitors into a single status of up/down. To create an application follow these steps 1) Create all of the service monitors you...

By: uptime Support | Date Created: 12-31-1969 | Last Modified: 8-25-2011 | Index: 344

  4378

Do I need a different agent for each monitored application?

RatingViews
article

No, only one agent installation is required on each monitored server. That agent provides all the standard up.time monitoring functionality. Additional components can be monitored via custom...

By: uptime Support | Date Created: 12-31-1969 | Last Modified: 8-10-2011 | Index: 250

  2824

https and Web Application Transaction (WAT) Monitor

RatingViews
article

Web Browsers are continuously being updated to improve security.  Some recent patches have changed how browsers handle the SSL Certificates required for https encryption.  This change...

By: uptime Support | Date Created: 8-8-2012 | Last Modified: 8-9-2012 | Index: 582

  2389

User Comments



No comments have been posted.

Copyright © 2021 IDERA, Inc.   Legal   Privacy Statement