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 »

Hello,

I executed from root, but output is the same:


sinampro# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
sinampro# su nagios -c '/usr/local/nagios/libexec/check_procs -C ora_pmon_sinamp'
PROCS OK: 0 processes with command name 'ora_pmon_sinamp'

thank you very much for your help
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 »

for a sanity check, can you run

Code: Select all

su nagios -c '/usr/local/nagios/libexec/check_procs -a ora'
and post the output
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 »

If I executed, the line is correctly:

nagios@sinampro$ su nagios -c '/usr/local/nagios/libexec/check_procs -a ora'
Password:
PROCS OK: 15 processes with args 'ora'

but I have to monitonig only 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 »

msanbrug wrote:If I executed, the line is correctly:

nagios@sinampro$ su nagios -c '/usr/local/nagios/libexec/check_procs -a ora'
Password:
PROCS OK: 15 processes with args 'ora'

but I have to monitonig only ora_pmon_sinamp.

Regards.
I understand but I just wanted to verify it was working at all...
now lets try

Code: Select all

su nagios -c '/usr/local/nagios/libexec/check_procs -a 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 »

Hello,

I put output:


sinampro# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
sinampro# su nagios -c '/usr/local/nagios/libexec/check_procs -C ora_pmon_sinamp'
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 »

msanbrug wrote:Hello,

I put output:


sinampro# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
sinampro# su nagios -c '/usr/local/nagios/libexec/check_procs -C ora_pmon_sinamp'
PROCS OK: 0 processes with command name 'ora_pmon_sinamp'


Regards,
That's not the command I ask you to run, try

Code: Select all

 su nagios -c '/usr/local/nagios/libexec/check_procs -a 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 »

Hello,

I send you output is the same:

nagios@sinampro$ su nagios -c '/usr/local/nagios/libexec/check_procs -a ora_pmon_sinamp'
Password:
PROCS OK: 0 processes with args '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 »

please post the output of the following:

Code: Select all

su nagios -c 'ps -ef | grep 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:

nagios@sinampro$ su nagios -c 'ps -ef | grep ora_pmon_sinamp'
Password:
oracle 17249 1 0 03:05:30 ? 0:07 ora_pmon_sinamp
nagios 4485 20093 1 17:40:30 pts/1 0:00 sh -c ps -ef | grep ora_pmon_sinamp
nagios 4487 4485 0 17:40:34 pts/1 0:00 grep 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 »

this is so perplexing, lets run the following

Code: Select all

su nagios -c 'ps -C ora_pmon_sinamp'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked