Hi,
We are using Nagios Core version 3.2.3.
1) What is the name of the configuration file where you can change the timeout value for the ssh service test?
2) What is the location of that file?
Any help on this would be greatly appreciated?
timeout value for check_ssh test
Re: timeout value for check_ssh test
Well, it can be a few different places depending on your configuration. First, look at the commands.cfg file for the check_ssh_test command. You may find a timeout declared there (-t n). Otherwise, you may want to add "-t <seconds>" to the command. If "-t" is declared, but the interval is replaced by and $ARGn$, then you want to specify your interval in the $ARGn$ for the actual service check.
If you have doubts, post the check_ssh_test command configuration and the associated service check definition and we will take a look.
If you have doubts, post the check_ssh_test command configuration and the associated service check definition and we will take a look.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
itIsMrKevin
- Posts: 28
- Joined: Tue Oct 23, 2012 1:28 pm
Re: timeout value for check_ssh test
Hi abrist,
Thanks for the reply. I looked in the commands.cfg file.
I found the following definition for check_ssh:
# 'check_ssh' command definition
define command{
command_name check_ssh
command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$
I don't see that time is declared there at all.
1) How could I modify this if I want the time for the ssh check to be 30 seconds?
Thanks.
Thanks for the reply. I looked in the commands.cfg file.
I found the following definition for check_ssh:
# 'check_ssh' command definition
define command{
command_name check_ssh
command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$
I don't see that time is declared there at all.
1) How could I modify this if I want the time for the ssh check to be 30 seconds?
Thanks.
Re: timeout value for check_ssh test
itIsMrKevin wrote:I don't see that time is declared there at all.
1) How could I modify this if I want the time for the ssh check to be 30 seconds?
You will want to put "-t <seconds> in your service definition for the $ARG1$ variable.abrist wrote:You may find a timeout declared there (-t n). Otherwise, you may want to add "-t <seconds>" to the command. If "-t" is declared, but the interval is replaced by and $ARGn$, then you want to specify your interval in the $ARGn$ for the actual service check.
Please provide the service definition if you have doubts.abrist wrote:If you have doubts, post the check_ssh_test command configuration and the associated service check definition and we will take a look.
Former Nagios employee
Re: timeout value for check_ssh test
Your new command will look like thisitIsMrKevin wrote:Hi abrist,
Thanks for the reply. I looked in the commands.cfg file.
I found the following definition for check_ssh:
# 'check_ssh' command definition
define command{
command_name check_ssh
command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$
I don't see that time is declared there at all.
1) How could I modify this if I want the time for the ssh check to be 30 seconds?
Thanks.
Code: Select all
command_line $USER1$/check_ssh -t 30 $ARG1$ $HOSTADDRESS$----------------------
Nagios Jedi in training.
Nagios Jedi in training.
Re: timeout value for check_ssh test
Technick is correct, let us know if this solves the timeout issues for you!technick wrote:Your new command will look like this
Code: Select all
command_line $USER1$/check_ssh -t 30 $ARG1$ $HOSTADDRESS$
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
itIsMrKevin
- Posts: 28
- Joined: Tue Oct 23, 2012 1:28 pm
Re: timeout value for check_ssh test
Hi,
This did resolve the issue for me. Feel free to close out this case. Thanks.
This did resolve the issue for me. Feel free to close out this case. Thanks.