roblem to register my windows 10 home 1903 64bits NSClient++

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.
Locked
titi1310
Posts: 2
Joined: Wed Sep 25, 2019 2:29 am

roblem to register my windows 10 home 1903 64bits NSClient++

Post by titi1310 »

Hello i'm a student in it.
I have a project to present and i need some informations on nagios core.

i encounter a problem to register my windows 10 home 1903 64bits NSClient++ on my Nagios core 4.4.5 on debian 10.0.1 up-to-date.

i have my debian 10.0.1 registered and he gives all the informations about himself. but the windows doesn't.

i must precise i'm running my debian on VirtualBox on the windows itself with bridge connection activated. (the debian updates and web is ok).

this is all what i did (except i changed the users and passwords) : (i'm root)

apt install apache2 ssh net-tools php perl curl build-essential openssl
libapache2-mod-php php-gd libgd-dev mariadb-server snmp php-imap php-curl
libxml-perl libxml-php libnet-snmp-perl libperl-dev libnumber-perl libdatetime-perl
libnet-dns-perl gcc make autoconf libc6 bc dc gawk gettext
libmcrypt-dev libssl-dev.
wget –o nagioscore.tar.gz https://assets.nagios.com/downloads/nag ... 4.5.tar.gz -P /tmp/
tar xvzf /tmp/nagioscore.tar.gz
./configure –with-http-conf=/etc/apache2/sites-enabled
make all
make install
make install-daemoninit
make install-commandmode
make install-config
make install-webconf
a2enmod rewrite
a2enmod cgi
iptables –I INPUT –p tcp –destination-port 80 –j ACCEPT
apt install –y iptables-persistent (yes to all)
mysql_secure_installation
adduser nagios
useradd –m –p $(openssl passwd nagios) nagios
groupadd nagcmd
usermod –a –G nagcmd nagios
usermod –a –G nagcmd www-data
htpasswd –c /usr/local/nagios/et /htpasswd.users adminnagios PASSWORD
systemctl restart apache2.service && systemctl start nagios.service
chown www-data :www-data /usr/local/nagios/etc/htpasswd.users
chmod 640 /usr/local/nagios/htpasswd.users
systemctl restart apache2 && systemctl restart nagios

then on my debian i test xxx.xxx.xxx.xxx/nagios and it shows my nagios page.

apt install bc dc gettext gawk libmcrypt-dev libssl-dev
wget https/nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz –P /tmp/
tar xvzf nagios-plugins-2.2.1.tar.gz
./configure –with-nagios-user=nagios –with-nagios-group=nagios
systemctl restart nagios
then i restart xxx.xxx.xxx.xxx/nagios and it shows my nagios page with my debian's informations displayed correctly.

So i try my windows 10 home 64bits up-to-date as follow :
c:/programmes/NSClient++/nsclient.ini modified rights full access to everyone group for testing.
Checkdisk = enabled
Checksystem = enabled
i restart nscp via powershell commands : net stop nscp and net start nscp

but then when i reload my nagios page on web it shows only my debian. My windows isn't there.
i also added my nagiosadmin password during the nsclient++ installation and have tried the same on another windows 10 home 64bits 1803 with no more results...

Thanks to you for reading, if you have any idea about whatès going wrong...
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: roblem to register my windows 10 home 1903 64bits NSClie

Post by benjaminsmith »

Hello,

Good luck with your project and let's try and get NSClient working for you. By the way, we also have another agent called NCPA ( Nagios Cross Platform Agent) that can be installed on Windows.

The issue is likely with the nsclient.ini settings file. Are you using check_nt or check_nrpe for monitoring from the Nagios Server? Take a look at the guide below for tips on setting up the configuration file on NSClient++.

Configuring The Windows Agent: NSClient++

You can run an nmap command from the terminal on the Nagios server to verify that the ports are open on the Windows 10 system. Post the output to the following command. Also, upload the nsclient.ini file for us to review. Thanks.

Code: Select all

nmap <Windows IP address>
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
titi1310
Posts: 2
Joined: Wed Sep 25, 2019 2:29 am

Re: roblem to register my windows 10 home 1903 64bits NSClie

Post by titi1310 »

hello,

thanks a lot for your answer.

I am already searching to solve this problem and I take notice of the ways and advice you gave me.
when I will find the right answer to correct it,
I'm going to post an information about all the right processes or the mistakes I made.
I pass my final test next week so I am working on it and will do so all this week-end.

Again thanks a lot for your kindness because I saw that even in the title I made a mistake "roplem" for problem.
Some other forums admin would have rejected my post...

Maillard Thierry 'it' student from france.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: roblem to register my windows 10 home 1903 64bits NSClie

Post by benjaminsmith »

Hi Maillard,

Thanks for the update. Here's a link to our knowledge base. Much of it is for Nagios XI, but as far agents go, you can follow those instructions for the most part.

Nagios Support Knowledgebase

Nagios Core Documentation

Good luck on your exams!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked