NEMS Version 1.5.2
Working my way through adding my clients. I have a number of other RasPis on the network, one that I am particularly interested in is running my DHCP/DNS (PiHole). I have added as a new host and in the services section i have added :
Check CPU Temp
After adding, HTTP reports OK, but the other 3 are going into an alert status as the NEMS server is being refused connection to obtain the information.
I've then followed the user guide for installing NRPE on the remote box. This ends in an error:
Code: Select all
Switch is up to date (2.17). Reading '/root/.cpan/Metadata' Database was generated on Tue, 04 May 2021 00:17:03 GMT Set::IntSpan is up to date (1.19). Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version (1:2.20.1-2+deb10u3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Cloning into 'nems-migrator'... remote: Enumerating objects: 4376, done. remote: Counting objects: 100% (188/188), done. remote: Compressing objects: 100% (102/102), done. remote: Total 4376 (delta 117), reused 143 (delta 85), pack-reused 4188 Receiving objects: 100% (4376/4376), 9.51 MiB | 3.11 MiB/s, done. Resolving deltas: 100% (2736/2736), done. Checking out files: 100% (1683/1683), done. Installing check_wmi_plus... cp: cannot stat '/root/nems/nems-migrator/data/1.6/nagios/plugins/check_wmi_plus.pl': No such file or directory cp: cannot stat '/root/nems/nems-migrator/data/1.6/check_wmi_plus': No such file or directory mkdir: cannot create directory ‘/etc/check_wmi_plus/check_wmi_plus.d’: No such file or directory chown: cannot access '/etc/check_wmi_plus/': No such file or directory --2021-05-04 03:16:29-- https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/052-wmic Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 18.104.22.168, 22.214.171.124, 126.96.36.199, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|188.8.131.52|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2021-05-04 03:16:30 ERROR 404: Not Found.
One of the 'alerts' now stopped reporting that it couldn't connect to get the information (CPU Temp), but all others are still reporting that the connection was refused. They are trying to connect on a different ports to the port that the CPU Temp is connecting to and reporting back OK
Are there more clients needed on the remote PI box to provide this detail back when the NEMS server polls for it?
CPU temp seems to poll port 5666, whereas the others are polling 12489
The nrpe.cfg clearly shows port 5666, there is no documentation to show if you can add the second port (12489). Is there a way to change the port that NEMS polls the remote device for this information? So that is uses port 5666 as it does for the other information?
I can see this has been asked a couple of times before (or something similar), but never a resolution