Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
notorious-mso opened this issue Oct 12, 2023 · 0 comments

Comments

@notorious-mso
Copy link

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

  • NSClient++ version: 0.5.2.41
  • OS and Version: Windows Server 2016 (10.0.14393)
  • Checking from: Centreon,
  • Checking with: check_nrpe

Additional Details

NSClient++ log:

PLEASE PASTE LOG HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant