Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
define service {
use generic-service
host_name SERVER2
service_description Check Postfix Service
check_command check_nrpe!check_procs -a '-w 10 -c 20 -a postfix'
I think I'm using the right command, or do I need to be using something else?
I believe that it's because of your check command:
check_command check_nrpe!check_procs -a '-w 10 -c 20 -a postfix'
if you change -w 10 to -w 0 and then run your test, what happens?
If i'm reading what you have correctly, you won't get a warning notification unless 10 "postfix" processes are running and then you won't get a critical notification until 20 "postfix" processes are running.
Edit:
Actually now that I think of it:
1). I think you have to use the -C flag for the process name
2). -c 1: -w 3: -C [process name], in this example you will get a critical alert if it can't find one process that matches and warn if it can't find atleast three.
00_kl250 wrote:I believe that it's because of your check command:
check_command check_nrpe!check_procs -a '-w 10 -c 20 -a postfix'
if you change -w 10 to -w 0 and then run your test, what happens?
If i'm reading what you have correctly, you won't get a warning notification unless 10 "postfix" processes are running and then you won't get a critical notification until 20 "postfix" processes are running.
Edit:
Actually now that I think of it:
1). I think you have to use the -C flag for the process name
2). -c 1: -w 3: -C [process name], in this example you will get a critical alert if it can't find one process that matches and warn if it can't find atleast three.
scottwilkerson wrote:postfix isn't a process, it's a service
I think when I was trying to figure out how to do this, I thought i could use check_procs, so it could look at the processes and see if postfix was running.