Submit a ticketCall us

Don’t fall victim to a ransomware attack
Backups are helpful, but sometimes that’s not enough to protect your business against ransomware. At our live webcast we will discuss how to protect against ransomware attacks with SolarWinds® Patch Manager and how to leverage log data to detect ransomware. Register now for our live webcast.

Home > Success Center > ipMonitor > Net-SNMP: Monitor a process on a Unix-based OS using ipMonitor

Net-SNMP: Monitor a process on a Unix-based OS using ipMonitor

Table of contents

Overview

This article describes how to monitor a specified process on a Unix-based OS using ipMonitor's custom SNMP monitor and the Net-SNMP daemon.

The custom SNMP monitor can be configured in various ways to monitor:

  • The current status of the process
  • The number of instances of the defined processes currently running

Environment

All ipMonitor versions

Steps

Pre-requisites:

  • Install and configure the Net-SNMP daemon on each monitored machine before configuring custom SNMP monitors to implement.
  • Add the PROC directive to your snmpd.conf file. The PROC directive increases the indexed OID values. For every PROC directive entered, the OID index value will increment by one (1). When changes to the configuration file have been made, the Net-SNMP daemon may have to be restarted.
    Directive: PROC
    Examples:
    • PROC sshd
    • PROC syslogd
    • PROC httpd
  • You may need to include the complete path of the process being monitored. For detailed information on adding the PROC directive to the configuration file, refer to SNMPCONF (© 2017 Net-SNMP, available at http://net-snmp.sourceforge.net/, obtained on April 4, 2017.).

 

  1. On the Devices tab, select the device to be monitored.
  2. Click Add > Add New Monitor.
  3. On the left-hand side, click SNMP.
  4. On the right-hand side, click Custom SNMP (Wizard).
  5. Verify that the Address and SNMP Community are correct and replace the OID with one of the following: 

    Group: NET-SNMP Process Group

Monitor 1 

Monitor Name

NET-SNMP Daemon :: Number Processes [sshd - Index 1]

Monitor Type

Custom SNMP -Monitor

SNMP Object Type

prCount.1

OID

1.3.6.1.4.1.2021.2.1.5.1

Returns

The number of processes currently running of the defined type.

Monitoring Condition

Pass if greater than or equal to 1

Monitor failure indicates that no processes of the defined type are currently running.

Monitor 2 

Monitor Name

NET-SNMP Daemon :: Number Processes [syslogd - Index 2]

Monitor Type

Custom SNMP -Monitor

SNMP Object Type

prCount.2

OID

1.3.6.1.4.1.2021.2.1.5.2

Returns

The number of processes currently running of the defined type.

Monitoring Condition

Pass if greater than or equal to 1

Monitor failure indicates that no processes of the defined type are currently running.

Monitor 3 

Monitor Name

NET-SNMP Daemon :: Number Processes [httpd - Index 3]

Monitor Type

Custom SNMP -Monitor

SNMP Object Type

prCount.3

OID

1.3.6.1.4.1.2021.2.1.5.3

Returns

The number of processes currently running of the defined type.

Monitoring Condition

Pass if greater than or equal to 1

Monitor failure indicates that no processes of the defined type are currently running.

Monitor 4 

Monitor Name

NET-SNMP Daemon :: Process Status [sshd - Index 1]

Monitor Type

Custom SNMP -Monitor

SNMP Object Type

prErrorFlag.1

OID

1.3.6.1.4.1.2021.2.1.100.1

Returns

The process status value.

Monitoring Condition

Pass if equal to 0

Monitor failure (returned result = 1) indicates that the process is not functioning as expected.

Monitor 5 

Monitor Name

NET-SNMP Daemon :: Process Status [syslogd - Index 2]

Monitor Type

Custom SNMP -Monitor

SNMP Object Type

prErrorFlag.2

OID

1.3.6.1.4.1.2021.2.1.100.2

Returns

The process status value.

Monitoring Condition

Pass if equal to 0

Monitor failure (returned result = 1) indicates that the process is not functioning as expected.

Monitor 6 

Monitor Name

NET-SNMP Daemon :: Process Status [httpd - Index 3]

Monitor Type

Custom SNMP -Monitor

SNMP Object Type

prErrorFlag.3

OID

1.3.6.1.4.1.2021.2.1.100.3

Returns

The process status value.

Monitoring Condition

Pass if equal to 0

Monitor failure (returned result = 1) indicates that the process is not functioning as expected.

 Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.

Last modified
23:19, 3 Apr 2017

Tags

Classifications

Public