mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
233 stars 91 forks source link

Nsclient check_centreon_nrpe3 : check_service does not return the correct status depending on the output #812

Open notorious-mso opened 9 months ago

notorious-mso commented 9 months ago

Issue and Steps to Reproduce

Good morning, I have a service probe which does not go to critical even though the service is stopped, the probe remains ok even though the correct behavior of it would rather be to go to critical in the event of a service stop

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H *.*.*.* -p 5666 -t 30 -u -2 -P 8192 -c  check_service -a "filter=name in ('MSSQL\$DO1_AUD','SQLAgent\$DO1_AUD')" "exclude=" "ok=state_is_ok()" "warning=none" "critical=not state_is_ok()" 'top-syntax=${problem_list}'  'detail-syntax=${name}=${state} (${start_type})' show-all

Expected Behavior

status CRITICAL

SQLAgent$DO1_AUD=stopped (delayed)

the probe should return a critical status

Actual Behavior

status OK

SQLAgent$DO1_AUD=stopped (delayed)

whereas normally if the service is STOP, the probe should return a status critical,

the probe result is correct but not the status

Details

Additional Details

NSClient++ log:

PLEASE PASTE LOG HERE