QUESTION: check_http and multiple instances of apache

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: QUESTION: check_http and multiple instances of apache

Post 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.
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

Post 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'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: QUESTION: check_http and multiple instances of apache

Post 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.
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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: QUESTION: check_http and multiple instances of apache

Post by msanbrug »

Thanks anyway for trying to solve my problem and for your time.

Regards,
Monica
Locked