roblem to register my windows 10 home 1903 64bits NSClient++
Posted: Sun Sep 29, 2019 7:26 am
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...
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...