Page 1 of 2
windows server nscllient issue
Posted: Thu Dec 06, 2018 2:05 pm
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.
Re: windows server nscllient issue
Posted: Thu Dec 06, 2018 2:19 pm
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.
Re: windows server nscllient issue
Posted: Fri Dec 07, 2018 7:46 am
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"
Re: windows server nscllient issue
Posted: Fri Dec 07, 2018 11:44 am
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).
Re: windows server nscllient issue
Posted: Mon Dec 10, 2018 9:39 am
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
Re: windows server nscllient issue
Posted: Mon Dec 10, 2018 4:19 pm
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.
Re: windows server nscllient issue
Posted: Fri Dec 14, 2018 9:23 am
by sharding
all seems good now, apart from the memory service, please see screen shot
Re: windows server nscllient issue
Posted: Fri Dec 14, 2018 10:37 am
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?
Re: windows server nscllient issue
Posted: Fri Dec 14, 2018 11:51 am
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
Re: windows server nscllient issue
Posted: Fri Dec 14, 2018 12:47 pm
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.