check_by_ssh time out issue
Re: check_by_ssh time out issue
nop, noting
Re: check_by_ssh time out issue
I know you tried with "su nagios" but just for the sake of testing, can you try it with "su - nagios" and post the full output if it fails?
Code: Select all
su - nagios
/usr/local/nagios/libexec/check_by_ssh -H x.x.x.x -C "/usr/local/nagios/libexec/check_disk /" -vRe: check_by_ssh time out issue
it works
[nagios@nagmonus1 ~]$ /usr/local/nagios/libexec/check_by_ssh -H x.x.x.x -C "/usr/local/nagios/libexec/check_disk /" -t 90
DISK OK - free space: / 324 MB (56% inode=90%);| /=251MB;;;0;576
[nagios@nagmonus1 ~]$ /usr/local/nagios/libexec/check_by_ssh -H x.x.x.x -C "/usr/local/nagios/libexec/check_disk /" -t 90
DISK OK - free space: / 324 MB (56% inode=90%);| /=251MB;;;0;576
Re: check_by_ssh time out issue
bosecorp,
I know that you have mod_gearman installed. Is it possible that this check is being picked up by one of your mod_gearman workers, and therefore the check times out?
I know that you have mod_gearman installed. Is it possible that this check is being picked up by one of your mod_gearman workers, and therefore the check times out?
Re: check_by_ssh time out issue
the worker who is doing the check runs where the XI server runs.
Re: check_by_ssh time out issue
Is your gearman workers running as a different user?
Try adding this to your command's $ARG2$ variable in XI and see if it works.
Try adding this to your command's $ARG2$ variable in XI and see if it works.
Code: Select all
-l nagiosBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_by_ssh time out issue
it's running as Nagios.
I tried that already and still the same.
I tried that already and still the same.
Re: check_by_ssh time out issue
Try running the command in a shell using the hostname and not the IP address. Maybe there is a DNS issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_by_ssh time out issue
Did running the command using the hostname and not the IP address work?
Can you run the following and post the results back?
Can you run the following and post the results back?
Code: Select all
grep nag /etc/passwd
grep nag /etc/group
ls -alR /home/nagios
gearman_top
Be sure to check out our Knowledgebase for helpful articles and solutions!