check_nt service state check not working
Posted: Tue Nov 19, 2019 9:56 am
So we also have this check defined for services running on alot of the IIS servers.
define service{
use production-service
host_name DALSRVPRDIIS02, DALSRVPRDIIS07
service_description IA_Connector_NANI2.0
display_name IA_Connector_NANI2.0
check_command check_nt!SERVICESTATE!-d SHOWALL -l eSPNaniConnector\$$MN
}
it is getting the following error on nagios page
MN_Connector_NANI2.0
Perform Extra Service Actions
UNKNOWN 2019-11-19 14:35:28 3d 17h 7m 12s 2/2 Failed to open service eSPNaniConnector: 1060: The specified service does not exist as an installed service.
HOWEVER this check reverted to 1248 rather than using 12489
executing without port
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$MN
connect to address DALSRVPRDIIS02 and port 1248: Connection refused
could not fetch information from server
with port defined and not a double $
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$MN -p12489
eSPNaniConnector$MN: Started
with the double $
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$$mn -p12489
Failed to open service eSPNaniConnector$: 1060: The specified service does not exist as an installed service.
attached is my check_nt config file nt.cfg
define service{
use production-service
host_name DALSRVPRDIIS02, DALSRVPRDIIS07
service_description IA_Connector_NANI2.0
display_name IA_Connector_NANI2.0
check_command check_nt!SERVICESTATE!-d SHOWALL -l eSPNaniConnector\$$MN
}
it is getting the following error on nagios page
MN_Connector_NANI2.0
Perform Extra Service Actions
UNKNOWN 2019-11-19 14:35:28 3d 17h 7m 12s 2/2 Failed to open service eSPNaniConnector: 1060: The specified service does not exist as an installed service.
HOWEVER this check reverted to 1248 rather than using 12489
executing without port
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$MN
connect to address DALSRVPRDIIS02 and port 1248: Connection refused
could not fetch information from server
with port defined and not a double $
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$MN -p12489
eSPNaniConnector$MN: Started
with the double $
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$$mn -p12489
Failed to open service eSPNaniConnector$: 1060: The specified service does not exist as an installed service.
attached is my check_nt config file nt.cfg