Page 3 of 4
Re: QUESTION: check_http and multiple instances of apache
Posted: Fri Jan 27, 2012 3:32 am
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
Re: QUESTION: check_http and multiple instances of apache
Posted: Fri Jan 27, 2012 11:47 am
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
Re: QUESTION: check_http and multiple instances of apache
Posted: Mon Jan 30, 2012 3:53 am
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.
Re: QUESTION: check_http and multiple instances of apache
Posted: Mon Jan 30, 2012 12:52 pm
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'
Re: QUESTION: check_http and multiple instances of apache
Posted: Tue Jan 31, 2012 3:50 am
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,
Re: QUESTION: check_http and multiple instances of apache
Posted: Tue Jan 31, 2012 8:26 am
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'
Re: QUESTION: check_http and multiple instances of apache
Posted: Tue Jan 31, 2012 9:05 am
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.
Re: QUESTION: check_http and multiple instances of apache
Posted: Tue Jan 31, 2012 11:27 am
by scottwilkerson
please post the output of the following:
Code: Select all
su nagios -c 'ps -ef | grep ora_pmon_sinamp'
Re: QUESTION: check_http and multiple instances of apache
Posted: Tue Jan 31, 2012 11:41 am
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.
Re: QUESTION: check_http and multiple instances of apache
Posted: Tue Jan 31, 2012 12:28 pm
by scottwilkerson
this is so perplexing, lets run the following
Code: Select all
su nagios -c 'ps -C ora_pmon_sinamp'