QUESTION: check_http and multiple instances of apache
Re: QUESTION: check_http and multiple instances of apache
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
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
-
- 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
for a sanity check, can you run
and post the output
Code: Select all
su nagios -c '/usr/local/nagios/libexec/check_procs -a ora'
Re: QUESTION: check_http and multiple instances of apache
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.
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.
-
- 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
I understand but I just wanted to verify it was working at all...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.
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
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,
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,
-
- 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
That's not the command I ask you to run, trymsanbrug 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,
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
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.
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.
-
- 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
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
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.
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.
-
- 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
this is so perplexing, lets run the following
Code: Select all
su nagios -c 'ps -C ora_pmon_sinamp'