Page 1 of 1

Monitor the services

Posted: Wed Nov 09, 2016 2:16 am
by gselvakumar
Hi Team,

Could please help me in monitoring the 'Ipswitch WS_FTP Web Server$FTPServer' service on the windows server.I tried using the below mentioned command but still I am getting the error.Please find the attachment for service name

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nt -H WUSRCPSFTP00 -s "Password7" -p 12489 -v SERVICESTATE -l 'Ipswitch WS_FTP Web Server$FTPServer' -d SHOWALL  -t 60
OUTPUT:  Failed to open service Ipswitch WS_FTP Web Server\$FTPServer: 123: The filename, directory name, or volume label syntax is incorrect.
I even tried using \ before $ but still getting the error.

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nt -H WUSRCPSFTP00 -s "Password7" -p 12489 -v SERVICESTATE -l 'Ipswitch WS_FTP Web Server$FTPServer' -d SHOWALL  -t 60
OUTPUT:  Failed to open service Ipswitch WS_FTP Web Server\$FTPServer: 123: The filename, directory name, or volume label syntax is incorrect.

Re: Monitor the services

Posted: Wed Nov 09, 2016 11:04 am
by avandemore
From the CLI as user nagios, what is the output of:

Code: Select all

/usr/local/nagios/libexec/check_nt -H WUSRCPSFTP00 -s "Password7" -p 12489 -d SHOWALL

Re: Monitor the services

Posted: Thu Nov 10, 2016 6:27 am
by gselvakumar
Hi,

Please find output for the below mentioned command from the CLI as user nagios

Code: Select all

 /usr/local/nagios/libexec/check_nt -H WUSRCPSFTP00 -s "Password7" -p 12489 -d SHOWALL
check_nt: Could not parse arguments
Usage:
check_nt -H host -v variable [-p port] [-w warning] [-c critical]
[-l params] [-d SHOWALL] [-u](DEPRECATED) [-t timeout]

I am having issue in monitoring only "WS_FTP Web Server$FTPServer" service. Rest services mentioned in attachment I am able to configure in nagios and it is working.

Re: Monitor the services

Posted: Thu Nov 10, 2016 3:42 pm
by avandemore
Try this one instead:

Code: Select all

/usr/local/nagios/libexec/check_nt -H WUSRCPSFTP00 -s "Password7" -p 12489 -v SERVICESTATE -d SHOWALL

Re: Monitor the services

Posted: Fri Nov 11, 2016 2:07 am
by gselvakumar
Hi Team,

We can close this thread.I got the solution.
I tried below mentioned command and it worked for me.

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nt -H WUSRCPSFTP00.fossil.com -s "Password7" -p 12489 -v SERVICESTATE -l 'Ipswitch WS_FTP Web Server$$FTPServer' -d SHOWALL  -t 60