Service monitoring escaping characters
Service monitoring escaping characters
I am having a problem trying to monitor a window service named
QsMAgE (servername)(UnifiedCalendarSync_)
This is the same for the description as well as the name of the service. How can I escape these characters to monitor the status of the service?
QsMAgE (servername)(UnifiedCalendarSync_)
This is the same for the description as well as the name of the service. How can I escape these characters to monitor the status of the service?
Re: Service monitoring escaping characters
Hi emartine,
Could you please show me the "Service Name" and "Display Name" of this running service?
Open "Task Manager" > Services > "QsMAgE (servername)(UnifiedCalendarSync_)" > right click "Open Services" > right click "Properties" of "QsMAgE (servername)(UnifiedCalendarSync_)"
Here's an example of "AxInstSV" showing "Service Name" and "Display Name": Here's an example of running check of "AxInstSV" using either "Service name" and "Display name":
Regards,
Vinh
Could you please show me the "Service Name" and "Display Name" of this running service?
Open "Task Manager" > Services > "QsMAgE (servername)(UnifiedCalendarSync_)" > right click "Open Services" > right click "Properties" of "QsMAgE (servername)(UnifiedCalendarSync_)"
Here's an example of "AxInstSV" showing "Service Name" and "Display Name": Here's an example of running check of "AxInstSV" using either "Service name" and "Display name":
Code: Select all
./check_nt -H XXX.XXX.XXX.XXX -p 12489 -s 'XXXXX' -v SERVICESTATE -d SHOWALL -l AxInstSV
AxInstSV: Stopped
./check_nt -H XXX.XXX.XXX.XXX -p 12489 -s 'XXXXX' -v SERVICESTATE -d SHOWALL -l "ActiveX Installer (AxInstSV)"
ActiveX Installer (AxInstSV): Stopped
Vinh
You do not have the required permissions to view the files attached to this post.
Re: Service monitoring escaping characters
They are all like this and putting quotes around them doesn't find the service:
SERVICE_NAME: QsMAgE (servername)(UnifiedCalendarSync_5)
DISPLAY_NAME: Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -l "QsMAgE (servername)(UnifiedCalendarSync)" -d SHOWALL
Failed to open service QsMAgE (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
[nagios@nagiosxi~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -l "Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync)" -d SHOWALL
Failed to open service Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
It does exist.
SERVICE_NAME: QsMAgE (servername)(UnifiedCalendarSync_5)
DISPLAY_NAME: Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -l "QsMAgE (servername)(UnifiedCalendarSync)" -d SHOWALL
Failed to open service QsMAgE (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
[nagios@nagiosxi~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -l "Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync)" -d SHOWALL
Failed to open service Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
It does exist.
Re: Service monitoring escaping characters
[nagios@nagiosxi~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "eventlog"
eventlog: Started
works for event log so I know the service is connecting so it must need some escape characters.
Position of -d SHOWALL doesn't matter either.
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "QsMAgE (servername)(UnifiedCalendarSync)"
Failed to open service QsMAgE (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync)"
Failed to open service Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
eventlog: Started
works for event log so I know the service is connecting so it must need some escape characters.
Position of -d SHOWALL doesn't matter either.
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "QsMAgE (servername)(UnifiedCalendarSync)"
Failed to open service QsMAgE (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync)"
Failed to open service Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync): 424: The specified service does not exist as an installed service.
Re: Service monitoring escaping characters
Hi emartine,
Thanks for getting back with the "Service Name" and "Display Name" (below).
SERVICE_NAME: QsMAgE (servername)(UnifiedCalendarSync_5)
DISPLAY_NAME: Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)
Your test commands (from your previous reply) were missing the "_5" at the end of both "Service Name" and "Display Name".
So, please try again with the correct "Service Name" and "Display Name":
Regards,
Vinh
Thanks for getting back with the "Service Name" and "Display Name" (below).
SERVICE_NAME: QsMAgE (servername)(UnifiedCalendarSync_5)
DISPLAY_NAME: Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)
Your test commands (from your previous reply) were missing the "_5" at the end of both "Service Name" and "Display Name".
So, please try again with the correct "Service Name" and "Display Name":
Code: Select all
/usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "QsMAgE (servername)(UnifiedCalendarSync_5)"
/usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)"
Vinh
Re: Service monitoring escaping characters
There are 8 services starting with _ all the way to _10 so that isn't a problem.
Re: Service monitoring escaping characters
Based on the "Server Name" and "Display Name" I got back from you,
SERVICE_NAME: QsMAgE (servername)(UnifiedCalendarSync_5)
DISPLAY_NAME: Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)
Please let me know if the following works or not:
Regards,
Vinh
SERVICE_NAME: QsMAgE (servername)(UnifiedCalendarSync_5)
DISPLAY_NAME: Quest Migration Agent for Exchange (servername)(UnifiedCalendarSync_5)
Please let me know if the following works or not:
Code: Select all
/usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -p 1248 -v SERVICESTATE -d SHOWALL -l "QsMAgE (servername)(UnifiedCalendarSync_5)"
Vinh
Re: Service monitoring escaping characters
It does not work.
Re: Service monitoring escaping characters
Hi,
You said that there are 8 to 10 running processes.
Can you please do the following and update those "Service Name" and "Display Name" here:
Regards,
Vinh
You said that there are 8 to 10 running processes.
Can you please do the following and update those "Service Name" and "Display Name" here:
Code: Select all
sc query
Vinh
Re: Service monitoring escaping characters
Please close and delete this thread I found someone else to help me local and resolve the character issue. Thanks!