# Invoke-IcingaCheckMSSQLBackupStatus local execution output differs from ICINGA2 check

**URL:** <https://community.icinga.com/t/invoke-icingacheckmssqlbackupstatus-local-execution-output-differs-from-icinga2-check/15660>\
**Category:** Icinga 2\
**Created:** [November 23, 2026, 11:17am UTC](https://community.icinga.com/t/invoke-icingacheckmssqlbackupstatus-local-execution-output-differs-from-icinga2-check/15660 "2026-11-23T11:17:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teqqy](https://community.icinga.com/user_avatar/community.icinga.com/teqqy/32/7497_2.png) [@teqqy](https://community.icinga.com/u/teqqy)\
**Post date:** [November 23, 2026, 11:17am UTC](https://community.icinga.com/t/invoke-icingacheckmssqlbackupstatus-local-execution-output-differs-from-icinga2-check/15660/1 "2026-11-23T11:17:35Z")

</div>

Hi,

If i execute this command

`Invoke-IcingaCheckMSSQLBackupStatus -SqlUsername 'icinga' -SqlPassword (ConvertTo-IcingaSecureString 'REDACTED') -SqlHost 'HOSTNAME' -Verbosity 2 -LastBackupLogAgeWarning 24h -DatabaseStatusWarning Emergency`

The state=0

If the ICINGA Server schedules the check via the ICINGA2 Windows Agent the state=1 because the master Database is in warning state. The Master sends the following command:

`'curl' '--verbose' '--tlsv1.2' '--fail-with-body' '--connect-to' 'HOSTNAME:5668:localhost:5668' '--ciphers' 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256' '--cert' 'C:\ProgramData\icinga2\var\lib\icinga2/certs//HOSTNAME.crt' '--key' 'C:\ProgramData\icinga2\var\lib\icinga2/certs//HOSTNAME.key' '--cacert' 'C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt' '--request' 'POST' '--url' '``https://``HOSTNAME``:5668/v1/checker?command=Invoke-IcingaCheckMSSQLBackupStatus``' '--user-agent' 'Icinga/v2.16.6' '--header' 'Accept: application/json' '--header' 'Content-Type: application/json' '--data-raw' '{"DatabaseStatusWarning":"Emergency","LastBackupAgeWarning":"24h","SqlHost":"HOSTNAME","SqlPassword":"REDACTED","SqlPort":"1433","SqlUsername":"icinga","Verbosity":"2"}'`

Is there anything i could debug by myself? Or is that expected behavior?

Thanks.
