Page 1 of 1

Monitoring of Windows Services

Posted: Thu Apr 19, 2018 6:12 am
by amitgupta19
I am trying to monitor the one service of the Windows Server.

I have provided the following name in the Service Definition:
MSSQL$MICROSOFT##WID

Refer to the Attachment

But when i see on the Nagios Console:
I gets the Error as "Not found" also the Service name shown is different what i provided in the service definition.
MSSQL##WID$

Refer to the Screenshot in the attachment.

Re: Monitoring of Windows Services

Posted: Thu Apr 19, 2018 9:44 am
by scottwilkerson
This same problem was worked through on this thread
https://support.nagios.com/forum/viewto ... =7&t=39317

Re: Monitoring of Windows Services

Posted: Tue Apr 24, 2018 7:20 am
by amitgupta19
Thanks for pointing me to the Thread.

I was able to resolve the issue by defining the service name in the resource.cfg file .

Then i mentioned that variable in the service definition.

But one question when i try to run any command manually from the command line then it is giving me the error as follows:

Critical: Socket Timeout After 10 seconds

I am getting the above error for all the service definitions even they are reporting to Nagios Fine.

What could be the reason?

Re: Monitoring of Windows Services

Posted: Tue Apr 24, 2018 8:48 am
by scottwilkerson
amitgupta19 wrote:Thanks for pointing me to the Thread.

I was able to resolve the issue by defining the service name in the resource.cfg file .

Then i mentioned that variable in the service definition.

But one question when i try to run any command manually from the command line then it is giving me the error as follows:

Critical: Socket Timeout After 10 seconds

I am getting the above error for all the service definitions even they are reporting to Nagios Fine.

What could be the reason?
Can you give an example of your command you are running from the command line??

Just remember you cannot pass anything like $ARG1$ when testing from the command line, these need to be replaced with their actual values.

Re: Monitoring of Windows Services

Posted: Tue Apr 24, 2018 11:02 am
by amitgupta19
Please find attached screenshot.

Re: Monitoring of Windows Services

Posted: Tue Apr 24, 2018 12:21 pm
by scottwilkerson
The top one looks right but you likely needs -p 12489 added to the command to set the normal port that nsclient++ uses