Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon Nov 25, 2019 9:26 am
Edit the nsclient.ini and change this line from
to
Save the change and restart NSClient++.
Run this in a shell to see if the check is fixed.
Code: Select all
./check_nt -H DALSRVPRDIIS02 -v SERVICESTATE -d SHOWALL -l eSPNaniConnector\$MN -p 12489
If so, change the command to the following.
Code: Select all
check_command check_nt!SERVICESTATE!-d SHOWALL -l eSPNaniConnector\$MN
Be sure to check out our
Knowledgebase for helpful articles and solutions!
vho
Posts: 11 Joined: Thu Nov 14, 2019 4:13 pm
Post
by vho » Mon Nov 25, 2019 1:29 pm
We modified the nsclient.ini and ran the command in the shell and that started. The command in the config file was already the same. The issue is still there.
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon Nov 25, 2019 2:47 pm
Out of all of the combinations for escaping a $ in the service name is to do the following.
All of the other examples failed.
Make sure the name of the service in the Windows server is exactly like the following.
Make the change, reboot the server so we know that the processes have been restarted.
Last thing to try is to install the latest version of Core 4.x.x.
https://support.nagios.com/kb/article/n ... ce-96.html
Be sure to check out our
Knowledgebase for helpful articles and solutions!
kmartin2007
Posts: 66 Joined: Thu Nov 14, 2019 3:31 pm
Post
by kmartin2007 » Mon Nov 25, 2019 4:02 pm
tgriep wrote: Out of all of the combinations for escaping a $ in the service name is to do the following.
All of the other examples failed.
Make sure the name of the service in the Windows server is exactly like the following.
Make the change, reboot the server so we know that the processes have been restarted.
Last thing to try is to install the latest version of Core 4.x.x.
https://support.nagios.com/kb/article/n ... ce-96.html
I made the change. validated the service. Did you want me to reboot the nagios server?
define service{
use production-service
host_name DALSRVPRDIIS02, DALSRVPRDIIS07
service_description MN_Connector_NANI2.0
display_name MN_Connector_NANI2.0
check_command check_nt!SERVICESTATE!-d SHOWALL -l "eSPNaniConnector$"$"MN"
Attachments
MN nani.png (1.58 KiB) Viewed 2393 times
kmartin2007
Posts: 66 Joined: Thu Nov 14, 2019 3:31 pm
Post
by kmartin2007 » Mon Nov 25, 2019 4:07 pm
kmartin2007 wrote: tgriep wrote: Out of all of the combinations for escaping a $ in the service name is to do the following.
All of the other examples failed.
Make sure the name of the service in the Windows server is exactly like the following.
Make the change, reboot the server so we know that the processes have been restarted.
Last thing to try is to install the latest version of Core 4.x.x.
https://support.nagios.com/kb/article/n ... ce-96.html
I made the change. validated the service. Did you want me to reboot the nagios server?
define service{
use production-service
host_name DALSRVPRDIIS02, DALSRVPRDIIS07
service_description MN_Connector_NANI2.0
display_name MN_Connector_NANI2.0
check_command check_nt!SERVICESTATE!-d SHOWALL -l "eSPNaniConnector$"$"MN"
I restarted Nagios Service on the nagios server
now getting this.
MN_Connector_NANI2.0
Perform Extra Service Actions
UNKNOWN 2019-11-25 21:05:59 9d 23h 30m 55s 2/2 Failed to open service eSPNaniConnector$$MN: 1060: The specified service does not exist as an installed service.
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon Nov 25, 2019 4:25 pm
Now is seems to be adding both $ to the check.
Try this
or this
Be sure to check out our
Knowledgebase for helpful articles and solutions!
kmartin2007
Posts: 66 Joined: Thu Nov 14, 2019 3:31 pm
Post
by kmartin2007 » Mon Nov 25, 2019 4:33 pm
tgriep wrote: Now is seems to be adding both $ to the check.
Try this
or this
both yeild same result
MN_Connector_NANI2.0
Perform Extra Service Actions
UNKNOWN 2019-11-25 21:32:30 9d 23h 57m 47s 2/2 Failed to open service eSPNaniConnector$$MN: 1060: The specified service does not exist as an installed service.
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon Nov 25, 2019 5:16 pm
That's weird, you put in one $ and it shows up as 2. Never seen that before.
Be sure to check out our
Knowledgebase for helpful articles and solutions!
kmartin2007
Posts: 66 Joined: Thu Nov 14, 2019 3:31 pm
Post
by kmartin2007 » Mon Nov 25, 2019 6:27 pm
tgriep wrote: That's weird, you put in one $ and it shows up as 2. Never seen that before.
Yeah im at a loss here, and really frustrated. We also started observing socket timeout afer 10 second error messages on some of the servers on things that WERE working before.
CRITICAL - Socket timeout after 10 seconds
Please let us know what next steps are.
kmartin2007
Posts: 66 Joined: Thu Nov 14, 2019 3:31 pm
Post
by kmartin2007 » Tue Nov 26, 2019 10:52 am
Please let us know what the next steps are.