Hi, thanks for your response.
I have a Server that I want to monitor 2 grouped MSSQL services on.
I did added the server using the wizard and I just put a SQL service, now I want to modify that check so that it checks the status of two SQL services:
If I edit the SQL service check command the wizard configured it like this:
Code: Select all
-t 'token' -P 5693 -M 'services' -q 'service=MSSQL$$InstanceName,status=running'
so, looking at the documentation there are a few differences, on my command some parte are with ' ', and the word after -M is services instead service
I can't get it to work, below are the tests I did.
Added the new servicename to the wizard configured command
Code: Select all
-t 'token' -P 5693 -M 'services' -q 'service=MSSQL$$InstanceName,SQLAgent$InstanceName,status=running'
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details.
remove quotation marks
Code: Select all
-t token -P 5693 -M services -q service=MSSQL$$InstanceName,SQLAgent$InstanceName,status=running
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details.
remove added new service
Code: Select all
-t token -P 5693 -M services -q service=MSSQL$$InstanceName,status=running
UNKNOWN: No services found for service names: MSSQL
added quotation marks arround servicename
Code: Select all
-t token -P 5693 -M services -q service='MSSQL$$InstanceName',status=running
OK: MSSQL$InstanceName is running
added the new servicename
Code: Select all
-t token -P 5693 -M services -q service='MSSQL$$InstanceName,SQLAgent$InstanceName',status=running
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details.
added the new servicename with split quotation marks
Code: Select all
-t token -P 5693 -M services -q service='MSSQL$$InstanceName','SQLAgent$InstanceName',status=running
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details.
remove the s to the command -M services (a per documentation)
Code: Select all
-t token -P 5693 -M service -q service='MSSQL$$InstanceName',status=running
UNKNOWN: The node (service) requested does not exist. You may be trying to access the 'services' node.
I don´t know what else to do.