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.
QUESTION: check_http and multiple instances of apache
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: QUESTION: check_http and multiple instances of apache
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 outputmsanbrug 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.
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
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: QUESTION: check_http and multiple instances of apache
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
Thanks anyway for trying to solve my problem and for your time.
Regards,
Monica
Regards,
Monica