![](https://blackdevice.com/wp-content/uploads/2023/12/NEMS-Raspberry-PI-featured-image-uai-258x155.jpg)
What are we going to do ?
We are going to turn our Raspberry Pi into a network monitoring center, to have control over our network services. To do this we are going to use the Nagios program, which is a software that provides great versatility to query virtually any parameter of interest of a system, and generates alerts, which can be received by the corresponding managers via email and SMS messages, when these parameters exceed the margins defined by the network administrator.
SOURCE: https://docs.nemslinux.com/en/latest/index.html
NEMS is a free and open-source computer-software application that monitors systems, networks and infrastructure
![](https://blackdevice.com/wp-content/uploads/2023/12/IMG_3518-1-uai-258x264.jpg)
What we need ?
– Raspberry Pi model 3 or higher
– Minimum 16GB Micro SD card
– Micro SD card reader
– HDMI cable
– Raspberry Power
– Ethernet cable
Installation
On the Nems website we have all the information necessary for the installation, we can find the iso file to load it on the raspberry.
![](https://blackdevice.com/wp-content/uploads/2023/12/Captura-de-pantalla-2023-10-13-101807-1-uai-258x182.png)
We connect the Micro SD card reader to the laptop
![](https://blackdevice.com/wp-content/uploads/2023/12/IMG_3519-scaled-e1703840829868-uai-258x148.jpg)
With the Balenaetcher program we flash the SD and insert it into the Raspberry
![](https://blackdevice.com/wp-content/uploads/2023/12/Captura-de-pantalla-2023-10-13-112137-uai-258x163.png)
Connect the power, the ethernet cable and the HDMI
![](https://blackdevice.com/wp-content/uploads/2023/12/Imagen2-1-uai-258x215.jpg)
Setting
We are going to configure the Nems, to do this we press Ctrl + alt + Z + F2 to start and enter the following command
sudo nems-init
![](https://blackdevice.com/wp-content/uploads/2023/12/Imagen3-uai-258x141.jpg)
Once the program has started we have to make different configurations, we continue the process until everything is completed
![](https://blackdevice.com/wp-content/uploads/2023/12/Imagen5-1-uai-258x103.jpg)
![](https://blackdevice.com/wp-content/uploads/2023/12/Imagen4-2-uai-258x114.jpg)
NEMS Administrator User
Default Username and Password
The default username on a fresh installation of NEMS Linux is nemsadmin. This is used to sign-in to your NEMS Server (over SSH or keyboard connected to your NEMS Server) only until you run nems-init.
Username: nemsadmin
Password: nemsadmin
Post-Initialization
Once your nems-init process is complete, you will need to instead sign-in as your newly created account (which you specify during nems-init).
When you initialize NEMS, you will provide a password for the NEMS web interfaces. This username/password will be what you use to access NEMS features (eg., nCONF, Nagios Core, NagVis, Check_MK, Samba, Webmin, SSH, etc.).
![](https://blackdevice.com/wp-content/uploads/2023/12/Imagen6-1-uai-258x237.jpg)
Once the account is created and configured, we go to the following link https://nems.local , where we can explore the different functions of the NEMS system, add a host, monitor and configure our devices, add humidity and temperature sensors…
When you start messing around with Nagios, you’ll discover a wide selection of options and settings that can be configured. It is very easy to get lost in a maze of options.
So before we continue, keep this in mind. Start slowly with Nagios, adding additional checks only after you’ve confirmed whether the first ones worked correctly.