This commit is contained in:
sfarouq-ext 2024-08-27 12:03:47 +02:00
parent 9ed6b92d6a
commit 1b732e4eba
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
package snmp_standard::mode::uptime;

View File

@ -28,8 +28,8 @@ time ${tc}
Should Match Regexp ${output} ${expected_result}
Examples: tc extra_options expected_result --
... 1 --oid='' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$
... 2 --warning-offset='0' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$
... 1 --oid='' ^(OK|WARNING|CRITICAL): Time offset (-?\\d+) second\\(s\\): Local Time : (\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}) \\(\\+\\d{4}\\) \\| 'offset'=(-?\\d+)s;.*$
... 2 --warning-offset='0' ^(OK|WARNING|CRITICAL): Time offset (-?\\d+) second\\(s\\): Local Time : (\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}) \\(\\+\\d{4}\\) \\| 'offset'=(-?\\d+)s;.*$
... 3 --critical-offset='125' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$
... 4 --ntp-hostname='NET' UNKNOWN: Cannot load module 'Net::NTP'
... 5 --ntp-port=123 ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$