Build precise queries to find exactly what you need
Press ESC to close
Great plugin, thanks for sharing.
Protip: To get the services status to work correctly you have to add “; exit($lastexitcode)” to the end of your cmd part of the handler in nsclient.ini.
EX:
check_mailbox_health = cmd /c echo C:ScriptsNagiosMailboxHealth.ps1; exit($lastexitcode) | PowerShell.exe -Command –
Otherwise the status code returned by the script dies with that Powershell session.
Thanks!