windows server nscllient issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

windows server nscllient issue

Post by sharding »

:? I have one windows server that was being monitored fine for a while, standard stuff, drive space, CPU,memory and three named services, all setup via the windows server wizard in Nagioxi, and used the NSClient++-Stable-64 client on the server from March this year (stable)

Then a few weeks ago one of the service checks started being reported as down (false positive ) so I thought well let me upgrade the NSC client to latest and see if that resolves the issue.I see the client had changed so I used NSCP-0.5.2.35-x64 from Nov 18.

This fixed the issue and all was good. we then had to restart the win server and then all checks failed, I removed clients re-installed, tried various different versions, none of the service checks now run.

I am stuck at this point.

we are on Nagiosxi 5.4.13 (I have another case where the latest Nagiosxi upgrade does not work on our box, (#336013 we are just not getting anywhere with this case)

I have attached the client config and log files from the windows server.

Thanks in advance

Shaun

please contact me via e-mail, I don't watch threads for replies, work is too busy for that being a net admin.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: windows server nscllient issue

Post by npolovenko »

@sharding, Please add the following options to the [/settings/NRPE/server] section of the nsclient.ini file.
allow arguments = 1
allow nasty characters = 1
use SSL = 1
Then restart the nsclient.
I don't see any errors in the log file. Can you go to the windows services menu, find the nsclient service and let me know if its running or not.

Also, please post the error message that you're seeing from the nagios server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: windows server nscllient issue

Post by sharding »

God morning,

I copied the lines and restarted the local client and set checks to force check now, no change, they are still showing "connect to address servername and port 12489: Connection refused"
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: windows server nscllient issue

Post by lmiltchev »

Is your firewall blocking port 12489?

The nsclient.ini file is missing many of the default entries. It's hard to say if everything has been configured correctly. Take a look at the top few lines in the file.
# If you want to fill this file with all avalible options run the following command:
# nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
# nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help
I would recommend that you run the following command from the CMD prompt:

Code: Select all

nscp settings --generate --add-defaults --load-all
and restart the nsclient service.

Post the "new" config file (nsclient.ini).
Be sure to check out our Knowledgebase for helpful articles and solutions!
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: windows server nscllient issue

Post by sharding »

we don't use firewalls on the LAN,only ingress and egress to internet.

the advised cmd had an error, I tried to attach a screen shot,maybe i just ran it incorrectly. I have removed all the clients and re-installed them. maybe I missed an option.

Can we just have someone remote in please, this forum posting thing is a little slow for a paying customer, it can just be fixed more quickly.

I also need to get the bottom of my nagiosxi update issue case # 336013 via a remote session too please.

Thank in advance

Shaun
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows server nscllient issue

Post by tgriep »

I think when you reinstalled the NSClient++ agent, something did not get installed all of the way so remove it and delete the C:\Program Files\NSClient++ folder to remove all of the files.
Backup any custom scripts if needed.
Then, take a look at this link for instructions for installing the NSClient++ agent.
https://support.nagios.com/kb/article/n ... t-116.html

This just sets up the agent for the check_nt command but if you want to enable the agent for NRPE access, replace the nsclient.ini file with the one attached here but change the following line in the ini file with the IP address of the Nagios server.

Code: Select all

allowed hosts = xxx.xxx.xxx.xxx
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: windows server nscllient issue

Post by sharding »

all seems good now, apart from the memory service, please see screen shot
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows server nscllient issue

Post by tgriep »

Can you login to the XI GUI and go to the Core Config Manager > Services menu, find that service and click on the View Config icon (Right Side of the menu) copy the configuration settings and post them here?
Be sure to check out our Knowledgebase for helpful articles and solutions!
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: windows server nscllient issue

Post by sharding »

it's the standard one the wizard creates. as i started this thread every worked fine and then stopped.

here is the info

$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$

CheckMEM

-a MaxWarn=90% MaxCrit=95% ShowAll type=physical
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows server nscllient issue

Post by tgriep »

The command looks good but lets see that the output is when you run it as root in a shell.
Run the following example command as root on the Nagios server. Replace xxx.xxx.xxx.xxx with the IP address of the Windows System and post the full output here so we can view it.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c CheckMEM -a MaxWarn=90% MaxCrit=95% ShowAll type=physical
If if fails, go to the following folder on the windows system and open the nsclient.log file for any errors when the check was ran and post them here.

Code: Select all

C:\Program Files\NSClient++
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked