mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-12 12:28:24 +02:00
do not run lists with connector + add debug
This commit is contained in:
parent
4920cc46b9
commit
17ccfdb8d9
@ -28,7 +28,7 @@ List-Containers ${tc}
|
||||
... ${cmd}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^Containers: (\\\\n\\\\[.*\\\\]){3}\\\\Z
|
||||
|
@ -28,7 +28,7 @@ List-Pods ${tc}
|
||||
... ${cmd}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^Pods: (\\\\n\\\\[.*\\\\]){2}\\\\Z
|
||||
|
@ -23,8 +23,8 @@ list-instances ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --verbose List instances: [instance = default]
|
||||
... 2 --filter-instance='instance' List instances: [instance = default]
|
||||
... 2 --filter-instance='instance' List instances: [instance = default]
|
||||
|
@ -23,7 +23,7 @@ list-interfaces ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --add-extra-oid='alias,.1.3.6.1.2.1.31.1.1.1.18' List interfaces: '1/1/1' [speed = 100][status = up][id = 1][alias = ][type = ethernetCsmacd] '1/1/10' [speed = ][status = down][id = 10][alias = ][type = ethernetCsmacd] '1/1/11' [speed = ][status = down][id = 11][alias = ][type = ethernetCsmacd] '1/1/12' [speed = ][status = down][id = 12][alias = ][type = ethernetCsmacd] '1/1/13' [speed = ][status = down][id = 13][alias = ][type = ethernetCsmacd] '1/1/14' [speed = ][status = down][id = 14][alias = ][type = ethernetCsmacd] '1/1/15' [speed = 1000][status = up][id = 15][alias = ][type = ethernetCsmacd] '1/1/16' [speed = 1000][status = up][id = 16][alias = ][type = ethernetCsmacd] 'Anonymized 124' [speed = ][status = up][id = 16777217][alias = ][type = propVirtual] '1/1/2' [speed = ][status = down][id = 2][alias = ][type = ethernetCsmacd] '1/1/3' [speed = 1000][status = up][id = 3][alias = ][type = ethernetCsmacd] '1/1/4' [speed = ][status = down][id = 4][alias = ][type = ethernetCsmacd] '1/1/5' [speed = ][status = down][id = 5][alias = ][type = ethernetCsmacd] '1/1/6' [speed = ][status = down][id = 6][alias = ][type = ethernetCsmacd] '1/1/7' [speed = ][status = down][id = 7][alias = ][type = ethernetCsmacd] 'Anonymized 066' [speed = 2000][status = up][id = 769][alias = ][type = ieee8023adLag] '1/1/8' [speed = ][status = down][id = 8][alias = ][type = ethernetCsmacd] '1/1/9' [speed = ][status = down][id = 9][alias = ][type = ethernetCsmacd]
|
||||
|
@ -23,7 +23,7 @@ list-spanning-trees ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 ${EMPTY} List ports with spanning tree protocol: [port = Anonymized 147] [state = forwarding] [op_status = up] [admin_status = up] [index = 1] [port = Anonymized 026] [state = blocking] [op_status = down] [admin_status = up] [index = 10] [port = Anonymized 232] [state = blocking] [op_status = down] [admin_status = up] [index = 11] [port = Anonymized 093] [state = blocking] [op_status = down] [admin_status = up] [index = 12] [port = Anonymized 058] [state = blocking] [op_status = down] [admin_status = up] [index = 13] [port = Anonymized 118] [state = blocking] [op_status = down] [admin_status = up] [index = 14] [port = Anonymized 029] [state = blocking] [op_status = down] [admin_status = up] [index = 2] [port = Anonymized 088] [state = forwarding] [op_status = up] [admin_status = up] [index = 3] [port = Anonymized 220] [state = blocking] [op_status = down] [admin_status = up] [index = 4] [port = Anonymized 003] [state = blocking] [op_status = down] [admin_status = up] [index = 5] [port = Anonymized 118] [state = blocking] [op_status = down] [admin_status = up] [index = 6] [port = Anonymized 192] [state = blocking] [op_status = down] [admin_status = up] [index = 7] [port = Anonymized 218] [state = forwarding] [op_status = up] [admin_status = up] [index = 769] [port = Anonymized 123] [state = blocking] [op_status = down] [admin_status = up] [index = 8] [port = Anonymized 203] [state = blocking] [op_status = down] [admin_status = up] [index = 9]
|
||||
|
@ -29,7 +29,7 @@ List-Devices ${tc}
|
||||
${command} Catenate
|
||||
... ${cmd}
|
||||
... ${extraoptions}
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^Devices: (\\\\n\\\\[.*\\\\]){5}\\\\Z
|
||||
|
@ -27,7 +27,7 @@ certificates ${tc}
|
||||
... ${CMD}
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result} ${tc}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 ${EMPTY} CRITICAL: Certificate 'Anonymized 165' has expired - Certificate 'Anonymized 186' has expired | 'certificates-count'=9;;;0; '_Anonymized 981'=212738332s;;@0:0;0; '_Anonymized 165'=0s;;@0:0;0; '_Anonymized 982'=384058793s;;@0:0;0; '_Anonymized 983'=145466616s;;@0:0;0; '_Anonymized 196'=122214889s;;@0:0;0; '_Anonymized 141'=67955030s;;@0:0;0; '_Anonymized 881'=68447205s;;@0:0;0; '_Anonymized 068'=145466616s;;@0:0;0; '_Anonymized 186'=0s;;@0:0;0;
|
||||
|
@ -22,7 +22,7 @@ list-trunks ${tc}
|
||||
... --snmp-community=network/f5/bigip/snmp/slim-f5-bigip
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 ${EMPTY} List trunks: 'Anonymized 234' [status: up] [speed: 20000]
|
||||
|
@ -23,7 +23,7 @@ list-spanning-trees ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --filter-port='Anonymized 029' List ports with spanning tree protocol: [port = Anonymized 029] [state = forwarding] [op_status = up] [admin_status = up] [index = 2]
|
||||
|
@ -24,7 +24,7 @@ list-aps ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --verbose --filter-name='Anonymized 058' List aps [oid_path: 100.19.171.37.61.112] [name: Anonymized 058] [serial: Anonymized 021] [address: 192.168.42.33] [hardware: Anonymized 104] [software: Anonymized 014] [run_time: 1w 4d 3h 1m 45s] [ap_group: Anonymized 214] [oid_path: 128.105.51.109.163.32] [name: Anonymized 058] [serial: Anonymized 025] [address: 192.168.42.225] [hardware: Anonymized 167] [software: Anonymized 034] [run_time: 11M 1w 1d 6h 12m 17s] [ap_group: Anonymized 040] [oid_path: 52.30.107.186.232.64] [name: Anonymized 058] [serial: Anonymized 073] [address: 192.168.42.66] [hardware: Anonymized 033] [software: Anonymized 168] [run_time: 11M 1w 1d 6h 15m 30s] [ap_group: Anonymized 124]
|
||||
|
@ -23,7 +23,7 @@ List Bgp ${tc}
|
||||
... ${CMD}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List BGP peers: (\\\\n\\\\[.*\\\\]){5}\\\\Z
|
||||
|
@ -23,7 +23,7 @@ List-Disks ${tc}
|
||||
${command} Catenate
|
||||
... ${cmd}
|
||||
... ${extraoptions}
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List disks: (\\\\n\\\\[.*\\\\]){5}\\\\Z
|
||||
|
@ -23,7 +23,7 @@ List Interface ${tc}
|
||||
... ${CMD}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List interfaces: (\\\\n\\\\[.*\\\\]){6}\\\\Z
|
||||
|
@ -23,7 +23,7 @@ List Ldp ${tc}
|
||||
... ${CMD}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List LDP sessions: (\\\\n\\\\[.*\\\\]){4}\\\\Z
|
||||
|
@ -23,7 +23,7 @@ List Lsp ${tc}
|
||||
... ${CMD}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List LSP sessions: (\\\\n\\\\[.*\\\\]){3}\\\\Z
|
||||
|
@ -23,7 +23,7 @@ List Rsvp ${tc}
|
||||
... ${CMD}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List RSVP sessions: (\\\\n\\\\[.*\\\\]){2}\\\\Z
|
||||
|
@ -23,7 +23,7 @@ List Service Rpm ${tc}
|
||||
... ${CMD}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 ${EMPTY} ^List services RPM: (\\\\n\\\\[.*\\\\]){2}\\\\Z
|
||||
|
@ -24,7 +24,7 @@ list-interfaces ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 ${EMPTY} --name --interface='Anonymized 049' List interfaces: 'Anonymized 049' [speed = ][status = up][id = 1078199296][type = voiceFXS] 'Anonymized 049' [speed = ][status = up][id = 1079510016][type = voiceFXS]
|
||||
|
@ -25,7 +25,7 @@ list-processes ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Regexp ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --filter-name='gorgone-dbclean' name = gorgone-dbclean
|
||||
|
@ -25,7 +25,7 @@ list-storages ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --display-transform-src='dev' List storage: ${SPACE}Skipping storage 'Physical memory': no type or no matching filter type ${SPACE}Skipping storage 'Swap space': no type or no matching filter type ${SPACE}Skipping storage 'Available memory': no type or no matching filter type ${SPACE}Skipping storage 'Virtual memory': no type or no matching filter type ${SPACE}'/run' [size = 206262272B] [id = 35] ${SPACE} '/' [size = 105088212992B] [id = 36] ${SPACE} '//shm' [size = 1031299072B] [id = 38] ${SPACE} '/run/lock' [size = 5242880B] [id = 39] ${SPACE}'/run/user/0' [size = 206258176B] [id = 55] ${SPACE} Skipping storage 'Memory buffers': no type or no matching filter type ${SPACE} Skipping storage 'Cached memory': no type or no matching filter type ${SPACE} Skipping storage 'Shared memory': no type or no matching filter type
|
||||
|
@ -24,7 +24,7 @@ list-services ${tc}
|
||||
... --snmp-community=os/windows/snmp/services-en
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --filter-name='Windows Security Service' List services: [name = Windows Security Service] [operating = active] [installed = installed]
|
||||
|
@ -25,7 +25,7 @@ list-storages ${tc}
|
||||
... --snmp-timeout=1
|
||||
... ${extra_options}
|
||||
|
||||
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||||
Ctn Run Command Without Connector And Check Result As Strings ${command} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 1 --display-transform-src='dev' List storage: 'Serial Number 5a987053' [size = 63720910848B] [id = 1] Skipping storage 'D:\\\\ Label:SSS_X64FRE_FR-FR_DV9 Serial Number cf70e675': no type or no matching filter type Skipping storage 'Virtual Memory': no type or no matching filter type Skipping storage 'Physical Memory': no type or no matching filter type
|
||||
|
@ -74,6 +74,7 @@ Ctn Stop Connector
|
||||
|
||||
Ctn Run Command Without Connector And Check Result As Regexp
|
||||
[Arguments] ${command} ${expected_result}
|
||||
Log To Console s
|
||||
${output} Run ${command}
|
||||
${output} Strip String ${output}
|
||||
Should Match Regexp
|
||||
@ -84,6 +85,7 @@ Ctn Run Command Without Connector And Check Result As Regexp
|
||||
|
||||
Ctn Run Command Without Connector And Check Result As Strings
|
||||
[Arguments] ${command} ${expected_result}
|
||||
Log To Console s
|
||||
${output} Run ${command}
|
||||
${output} Strip String ${output}
|
||||
Should Be Equal As Strings
|
||||
@ -95,6 +97,7 @@ Ctn Run Command Without Connector And Check Result As Strings
|
||||
|
||||
Ctn Verify Command Without Connector Output
|
||||
[Arguments] ${command} ${expected_result}
|
||||
Log To Console w
|
||||
${output} Run ${command}
|
||||
${output} Strip String ${output}
|
||||
Should Contain
|
||||
@ -106,6 +109,7 @@ Ctn Verify Command Without Connector Output
|
||||
|
||||
Ctn Run Command With Connector And Check Result As Strings
|
||||
[Arguments] ${command} ${expected_result} ${tc}=0 ${timeout}=${TIMEOUT}
|
||||
Log To Console c
|
||||
Remove File /tmp/connector.output
|
||||
Remove File /tmp/connector.command.log
|
||||
Ctn Send To Connector ${tc} ${command} ${timeout}
|
||||
@ -125,6 +129,7 @@ Ctn Run Command With Connector And Check Result As Strings
|
||||
|
||||
Ctn Run Command With Connector And Check Result As Regexp
|
||||
[Arguments] ${command} ${expected_result} ${tc}=0 ${timeout}=${TIMEOUT}
|
||||
Log To Console c
|
||||
Remove File /tmp/connector.output
|
||||
Remove File /tmp/connector.command.log
|
||||
Ctn Send To Connector ${tc} ${command} ${timeout}
|
||||
@ -143,6 +148,7 @@ Ctn Run Command With Connector And Check Result As Regexp
|
||||
|
||||
Ctn Run Command With Connector And Check Multiline Result
|
||||
[Arguments] ${command} ${expected_result} ${tc}=0 ${timeout}=${TIMEOUT}
|
||||
Log To Console c
|
||||
Remove File /tmp/connector.output
|
||||
Remove File /tmp/connector.command.log
|
||||
Ctn Send To Connector ${tc} ${command} ${timeout}
|
||||
@ -186,7 +192,7 @@ Ctn Run Command And Check Result As Regexp
|
||||
|
||||
Ctn Run Command And Check Result As Json
|
||||
[Arguments] ${command} ${expected}
|
||||
Log To Console ${command}
|
||||
Log To Console j
|
||||
${output} Run ${command}
|
||||
${output} Strip String ${output}
|
||||
${json_output}= evaluate json.loads('''${output}''') json
|
||||
@ -196,6 +202,7 @@ Ctn Run Command And Check Result As Json
|
||||
|
||||
Ctn Run Command And Return Parsed XML
|
||||
[Arguments] ${command}
|
||||
Log To Console x
|
||||
${output} Run ${command}
|
||||
${output} Strip String ${output}
|
||||
${parsed}= Parse XML ${output}
|
||||
|
Loading…
x
Reference in New Issue
Block a user