The default option for this connector (App-Salesforce-Instance-Status-Restapi) is:
--warning-status Set warning threshold for instance status (default: '').
--critical-status Set critical threshold for instance status (default: '%{status} !~ /OK/').
since the return of the Saleforce API is documented to be:
"OK": { "value": "0" }, "INFORMATIONAL_NONCORE": { "value": "1" }, "MAINTENANCE_NONCORE": { "value": "1" }, "MINOR_INCIDENT_NONCORE": { "value": "2" }, "MAJOR_INCIDENT_NONCORE": { "value": "3" }, "INFORMATIONAL_CORE": { "value": "1", "messageCode": "CORE" }, "MAINTENANCE_CORE": { "value": "1", "messageCode": "CORE" }, "MINOR_INCIDENT_CORE": { "value": "2", "messageCode": "CORE" }, "MAJOR_INCIDENT_CORE": { "value": "3", "messageCode": "CORE" } }
I will suggest to better default to:
--warning-status '%{status} !~ /OK/'
--critical-status '%{status} =~ /MAJOR/'
This will avoid Critical alerting when the status of Salesforce is not so Critical.
