Its now possible to install the latest version of Nagios NRPE v 3.0.1 (source install) on RaspberryPi (incl. Pixel OS). Just follow this simple article and you will be up and running with NRPE on Nagios clients as well as on the Nagios server which needs to communicate to clients via nrpe agent. This guide is valid for Raspbian Jessie and the latest version that is Raspbian Pixel OS.
In Raspberry Pi from version Jessie onwards the “root” login for SSH sessions (via Putty Login) has been disabled by default. It can be enabled by just editing “sshd_config” file and then restarting “ssh” service.
To start with login to raspi via ssh using the default “pi” credentials. Then elevate yourself to super user “sudo”
# sudo -i
Then edit “/etc/ssh/sshd_config” and update the field “PermitRootLogin”
# vi /etc/ssh/sshd_config
If you are getting this error while installing Nagios Core on RaspberryPi run these commands to resolve the error and get Nagios up and running in no time. These commands wil need to be run as ROOT. You need to restart the nagios service after you carry out the changes.
Its now possible to install latest Nagios CORE version on Raspbian by following the steps in this article. Before writing this article I Googled for the same but couldn’t find a single article covering install of latest version of Nagios on RasberryPi hence this guide. It has been fully tested and working on my personal RasPi.
This guide was originally written for Ubuntu but will work for Raspbian (Debian Jessie) flavour for RasberryPi as well. It might work for all debian distros but not guranteed, you can try it out yourself.
Wake-On-LAN (WOL) is a very useful feature if you have got a LAB at home and want to make it energy efficient. I have written a small BASH script to automate the Wake-On-LAN (WOL) procedure which can be used in an instance where there is a ESXi server which can turned on as and when required and then shutdown when not needed. Believe me it saves a lot on electric bills as the Servers are not running 24/7 and powered on only when required.
It’s possible to enable DNS forwarding using BIND and including reverse lookup for the zone. Once you are done with the config of a basic bind server, all you need to do is configure “/etc/bind/named.conf.options and conf.local” with the following options and restart the service.
In this example we have got 2 DNS server’s resolving.
SERVER1 = raspi-qud.hm.local = domain : HM.LOCAL : IP: 172.16.64.1
SERVER 2 = viz-raspi-st.dev.local = domain : DEV.LOCAL :IP: 172.16.66.212
We need to resolve local requests for “hm.local” on SERVER 1 and forward any “dev.local” domain requests (forward and reverse lookups) to SERVER 2 and hence need to configure SERVER 1 to achieve this.
To start with add the zone dev.local to “/etc/bind/named.conf.local” and add the forward zone to the config file.
If you are finding it difficult to recognize files and folders in RaspberryPi DebianWheezy dist OS, you can enable Ls COLORS to make them more recognizable. All you need to do is edit /.bashrc and logout and login back to enable it.
If you can’t spend thousands for a static IP, Try out this script which sends out an email alert whenever Public IP address changes. In a situation where you need a VPN solution without spending thousands on a static IP no matter if you are a HOME user or a Small Business owner, all you need to have is a RasberryPi and a decent Small Business VPN Router. For this article I used a Cisco RV110w VPN Router.
SSMTP is a email service for Raspbian and is used for sending out emails internally in a network and externally.Its a very simple install and will get you up and running in no time. This process would need a Root account and make sure you update Raspbian to the latest patch level. You can update by running “sudo apt-get update“.
This article will show you how to Setup and configure DNS Server on Raspbian. Its called as Bind9 on RasberryPi and is used for resolving IP address to domain name and vice-versa. Make sure that you are logged in as ROOT user and update the OS to the latest.
For reference the IP of this test RasPi is 172.16.64.9