mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
Fix scenario example telnet
This commit is contained in:
parent
713f778bbe
commit
5d24497369
@ -34,8 +34,7 @@ sub new {
|
|||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
"scenario:s" => { name => 'scenario' },
|
"scenario:s" => { name => 'scenario' },
|
||||||
"warning:s" => { name => 'warning' },
|
"warning:s" => { name => 'warning' },
|
||||||
"critical:s" => { name => 'critical' },
|
"critical:s" => { name => 'critical' },
|
||||||
@ -55,7 +54,7 @@ sub check_options {
|
|||||||
# {"cmd": "open", "options": { "Host": "10.0.0.1", "Port": "23", "Timeout": "30" } },
|
# {"cmd": "open", "options": { "Host": "10.0.0.1", "Port": "23", "Timeout": "30" } },
|
||||||
# {"cmd": "login", "options": { "Name": "admin", "Password": "pass", "Timeout": "5" } },
|
# {"cmd": "login", "options": { "Name": "admin", "Password": "pass", "Timeout": "5" } },
|
||||||
# {"cmd": "waitfor", "options": { "Match": "/string/", "Timeout": "5" } },
|
# {"cmd": "waitfor", "options": { "Match": "/string/", "Timeout": "5" } },
|
||||||
# {"cmd": "put", "options": { "String": "/mystring/", "Timeout": "5" } },
|
# {"cmd": "put", "options": { "String": "mystring", "Timeout": "5" } },
|
||||||
# {"cmd": "close" }
|
# {"cmd": "close" }
|
||||||
#]
|
#]
|
||||||
if (!defined($self->{option_results}->{scenario})) {
|
if (!defined($self->{option_results}->{scenario})) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user