@@ -109,13 +109,13 @@ def test_simple_single_instance(self):
109
109
self ._basic_test_single_instance (kwargs , 'OK hello | value1=5;5;10;' , NAGIOS_EXIT_OK )
110
110
# goutside warning range, perfdata with warning in message
111
111
kwargs ['value1' ] = 7
112
- self ._basic_test_single_instance (kwargs , 'WARNING value1 | value1=7;5;10;' , NAGIOS_EXIT_WARNING )
112
+ self ._basic_test_single_instance (kwargs , 'WARNING value1, hello | value1=7;5;10;' , NAGIOS_EXIT_WARNING )
113
113
# outside critical range?
114
114
kwargs ['value1' ] = 10
115
- self ._basic_test_single_instance (kwargs , 'WARNING value1 | value1=10;5;10;' , NAGIOS_EXIT_WARNING )
115
+ self ._basic_test_single_instance (kwargs , 'WARNING value1, hello | value1=10;5;10;' , NAGIOS_EXIT_WARNING )
116
116
# greater
117
117
kwargs ['value1' ] = 15
118
- self ._basic_test_single_instance (kwargs , 'CRITICAL value1 | value1=15;5;10;' , NAGIOS_EXIT_CRITICAL )
118
+ self ._basic_test_single_instance (kwargs , 'CRITICAL value1, hello | value1=15;5;10;' , NAGIOS_EXIT_CRITICAL )
119
119
120
120
# mixed
121
121
kwargsmore = {
@@ -129,17 +129,17 @@ def test_simple_single_instance(self):
129
129
kwargs .update (kwargsmore )
130
130
131
131
# critical value in message
132
- self ._basic_test_single_instance (kwargs , 'CRITICAL value1 | value0=3;5;10; value1=15;5;10; value2=7;5;10;' ,
132
+ self ._basic_test_single_instance (kwargs , 'CRITICAL value1, hello | value0=3;5;10; value1=15;5;10; value2=7;5;10;' ,
133
133
NAGIOS_EXIT_CRITICAL )
134
134
135
135
# all warning values in message
136
136
kwargs ['value1' ] = 7
137
137
self ._basic_test_single_instance (
138
- kwargs , 'WARNING value1, value2 | value0=3;5;10; value1=7;5;10; value2=7;5;10;' , NAGIOS_EXIT_WARNING )
138
+ kwargs , 'WARNING value1, value2, hello | value0=3;5;10; value1=7;5;10; value2=7;5;10;' , NAGIOS_EXIT_WARNING )
139
139
140
140
# warning in message
141
141
kwargs ['value1' ] = 5
142
- self ._basic_test_single_instance (kwargs , 'WARNING value2 | value0=3;5;10; value1=5;5;10; value2=7;5;10;' ,
142
+ self ._basic_test_single_instance (kwargs , 'WARNING value2, hello | value0=3;5;10; value1=5;5;10; value2=7;5;10;' ,
143
143
NAGIOS_EXIT_WARNING )
144
144
145
145
# no warning/critical; so regular message
0 commit comments