Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > ipMonitor > Monitor processes on UNIX-based systems

Monitor processes on UNIX-based systems

Table of contents
No headers

Using ipMonitor's Custom SNMP Monitor and the NET-SNMP Daemon, Administrators can monitor a specified process on a Unix-based Operating System.

About Net-SNMP
Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both Internet Protocol (IP) version 4 and Internet Protocol (IP) version 6. Net-SNMP is available for many Unix and Unix-like operating systems and also for Microsoft Windows. Detailed information on downloading and configuring the Net-SNMP daemon is available from the Net-SNMP website

Before You Begin
Before configuring Custom SNMP Monitors to implement the examples outlined in this tutorial, the Net-SNMP Daemon must be installed and configured on each machine being monitored.

Important! You must 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). Once changes to the configuration file have been made, the Net-SNMP Daemon may have to be restarted.

Directive:
PROC [process name]

Examples:
PROC sshd
PROC syslogd
PROC httpd

Note: 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 the following Net-SNMP resources:

http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html
http://net-snmp.sourceforge.net/docs/man/snmp_config.html

Once SNMPD.Conf has been configured, here's how to create the Custom SNMP Monitor:

  1. Click on the Devices tab.
  2. Click on "All Managed Devices"
  3. Select the Device that represents the UNIX server you wish to monitor and click "Add - Add New Monitor"
  4. In the left-hand pane, click "SNMP".
  5. In the right-hand pane, click "Custom SNMP"
  6. Give the Monitor a unique and descriptive name and ensure the address is correct.
  7. For the OID, use one of the OIDs found in the tables below, depending on what you wish to monitor.
  8. Under Analysis of Test Results, set the "Analyze the test results" as "Numeric Data" and the "Result is" to the desired threshold
  9. Click OK

Example OIDs:

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 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 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 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.

 

Last modified
15:24, 13 Nov 2015

Tags

Classifications

Public