Page 4 of 4

Re: QUESTION: check_http and multiple instances of apache

Posted: Wed Feb 01, 2012 3:52 am
by msanbrug
I executed command, but parameter is not correctly:

nagios@sinampro$ su nagios -c 'ps -C ora_pmon_sinamp'
Password:
ps: illegal option -- C
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]

In man, appear:

-C cmdlist (UNIX Standard Only, see standards(5)) Select
processes executing a command with a basename
given in cmdlist.

Regards.

Re: QUESTION: check_http and multiple instances of apache

Posted: Wed Feb 01, 2012 12:56 pm
by scottwilkerson
msanbrug wrote:I executed command, but parameter is not correctly:

nagios@sinampro$ su nagios -c 'ps -C ora_pmon_sinamp'
Password:
ps: illegal option -- C
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]

In man, appear:

-C cmdlist (UNIX Standard Only, see standards(5)) Select
processes executing a command with a basename
given in cmdlist.

Regards.
We are kind of grabbing at straws here because we cannot replicate your environment, however I was discussing this case with another support rep and he recommended running the following to see if we can see the correct output

Code: Select all

su nagios -c 'env UNIX95=1 /usr/local/nagios/libexec/check_procs -C ora_pmon_sinamp'

Re: QUESTION: check_http and multiple instances of apache

Posted: Thu Feb 02, 2012 2:55 am
by msanbrug
The output is the same:

nagios$ su nagios -c 'env UNIX95=1 /usr/local/nagios/libexec/check_procs -C ora_pmon_sinamp'
Password:
PROCS OK: 0 processes with command name 'ora_pmon_sinamp'

Regards.

Re: QUESTION: check_http and multiple instances of apache

Posted: Thu Feb 02, 2012 11:22 am
by scottwilkerson
Unfortunately, I am really out of ideas other than finding a command that can return the correct results and making a custom plugin for it.

Re: QUESTION: check_http and multiple instances of apache

Posted: Fri Feb 03, 2012 2:16 am
by msanbrug
Thanks anyway for trying to solve my problem and for your time.

Regards,
Monica