Submit a ticketCall us

Welcome to the NEW Success Center. Search all resources (documentation, videos, training, knowledge base articles) or browse resources by product. If you are unable to find what you are looking for, please contact us at customersuccess@solarwinds.com

 

 

 

 

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

Notes:

  • Before configuring Custom SNMP Monitors to implement, the Net-SNMP Daemon must be installed and configured on each machine being monitored.
  • Add the PROC directive to your snmpd.conffile. The PROC directive increases the indexed OID values. For every PROC directive entered, the OID index value will increment by one (1). Once 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.

 

  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.

 

Last modified
19:36, 22 Jun 2016

Tags

Classifications

Public