Hello,
I'm wondering why in Nagios Core latest version under Service - Total processes it shown only 184 when from OS level:
root@xxxx62:/usr/local/nagios/libexec# ps -ef|wc -l
282
Current Status: OK (for 20d 18h 4m 6s)
Status Information: PROCS OK: 184 processes with STATE = RSZDT
Performance Data: procs=184;250;400;0;
Current Attempt: 1/4 (HARD state)
Last Check Time: 04-23-2015 10:03:44
Check Type: ACTIVE
Check Latency / Duration: 0.000 / 0.026 seconds
Next Scheduled Check: 04-23-2015 10:08:44
Last State Change: 04-02-2015 16:01:25
Last Notification: N/A (notification 0)
Is This Service Flapping? NO (0.00% state change)
In Scheduled Downtime? NO
Last Update: 04-23-2015 10:05:25 ( 0d 0h 0m 6s ago)
Active Checks:
ENABLED
Passive Checks:
ENABLED
Obsessing:
ENABLED
Notifications:
ENABLED
Event Handler:
ENABLED
Flap Detection:
ENABLED
Nagios Core - Total processes Service
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios Core - Total processes Service
with STATE = RSZDT
Code: Select all
[jdalrymple@localhost libexec]$ ./check_procs -s RSZDT
PROCS OK: 313 processes with STATE = RSZDT | procs=313;;;0;
[jdalrymple@localhost libexec]$ ps -ef | wc -l
399
[jdalrymple@localhost libexec]$ ./check_procs
PROCS OK: 396 processes | procs=396;;;0;
Re: Nagios Core - Total processes Service
Hello,
How do I configure the command so it will show all processes?
define service{
use local-service ; Name of service template to use
host_name localhost
service_description Total Processes
check_command check_local_procs!250!400
}
I removed -s and it won't work anymore in Nagios:
Current Status: UNKNOWN (for 0d 0h 5m 9s)
Status Information: Usage:
check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
[-C command] [-k] [-t timeout] [-v]
I just want to see all processes with warning at 250 and critical at 400
Thanks,
How do I configure the command so it will show all processes?
define service{
use local-service ; Name of service template to use
host_name localhost
service_description Total Processes
check_command check_local_procs!250!400
}
I removed -s and it won't work anymore in Nagios:
Current Status: UNKNOWN (for 0d 0h 5m 9s)
Status Information: Usage:
check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
[-C command] [-k] [-t timeout] [-v]
I just want to see all processes with warning at 250 and critical at 400
Thanks,
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios Core - Total processes Service
Where did you remove the -s?
Can you show us your current command definition for check_procs? It's probably in your commands.cfg file.
Can you show us your current command definition for check_procs? It's probably in your commands.cfg file.