Service: Total Processes


#1

Hello,

Looking for help.

We just upgraded with a fresh installation of Nagios 3.06 on Red Hat 5.0 enterprise and we are getting this email error…

***** Nagios *****

Notification Type: PROBLEM

Service: Total Processes
Host: Network Monitor
Address: XXX.XXX.XXX.XXX (Blanked for security reasons)
State: UNKNOWN

Date/Time: Tue Dec 23 12:24:43 PST 2008

Additional Info:

Usage: check_procs -w range -c range -m metric] -s state] -p ppid]

I will admitt that Im a novius at this but could use some insight as to what is going on.

Thank you for your response.

Happy Holidays!

J. M~


#2

Pls, post the service definition of a Total Processes service, and a command definition for the check_command used in Total Processes service. It is very possible you’re using the wrong syntax of a command or wrong arguments within check_command


#3

from services.cfg

[code]# Define a service to check the number of currently running procs

on the local machine. Warning if > 250 processes, critical if

> 400 users.

define service{
use generic-service ; Name of service template to use
host_name netmon
service_description Total Processes
contact_groups netmonadmins
check_command check_local_procs!600!800
}[/code]

from checkcommands.cfg

# 'check_local_procs' command definition define command{ command_name check_local_procs command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$

When I run the command manually from the CLI with the parameters in the service definition it runs fine.

Thanks!


#4

It looks like I resolved this. I was pointing to commands.cfg instead of checkcommands.cfg in nagios.cfg.