I'm trying to monitor mssql service in OMD nagios, but with no success so far.
Communication port: 1433
instance name is like: MSSQL$instance
Here's my check:
check_command check_nt!SERVICESTATE!-l 'MSSQL$$instance' (like you've suggested here http://serverfault.com/questions/517291/monitor-services-with-in-the-service-name-in-icinga-nagios, nagios said: Failed to open service: MSSQL)
I've tried some other combinations:
MSSQL\$$instance (Failed to open service: MSSQL\$SQL2012)
MSSQL"$$"instance (Failed to open service: MSSQL"$"SQL2012)
"MSSQL"$$"instance" (Failed to open service: "MSSQL"$"SQL2012")
Any suggestions very appreciated.
Don't know what causes the problem.
Thanks in advance.
I had to trial and error this one. What works for me is
as in
When I add -d SHOWALL to my check command, so it's like:
then nagios (in check_mk) shows: No service/process specified
Do you know what can cause this problem?
Solution
Finally I've found the soultion. It turns out the problem was in check_nt command definition.
Oryginally I've used it like this:
And that causes above problems with "No service/process specified" and "failed to open service" .
When I change my check_nt definition to:
it works like a charm :) with:
So the problem finally resolved :)
Kind regards