Now that I’ve got Icinga up and running, I was looking to expand its’ reach by using NRPE to monitor some additional items, most noticeably Windows Event Log entries.
However, I could not get any NRPE commands to work. The reason, the check_nrpe plugin was missing from /usr/lib/nagios/plugins or anywhere else on the server.
It would seem that the check_nrpe plugin is no longer included within the standard Nagios Plugins, but it may be installed separately through apt-get:
apt-get install nagios-nrpe-plugin
However, this also command will prompt you install the additional packages of nagios3, nagios3-cgi, nagios3-common and nagios3-core. As I’m using Icinga, this is the last things I want or need to install.
The solution, is to run the apt-get command with –use-no-install-recommends parameter:
apt-get install nagios-nrpe-plugin --use-no-install-recommends
Worked like a treat.
– very few of the
The inevitable happened: I forgot the password for Webmin on one of my Ubuntu servers. In my defence, it is a server that I principally manage via SSH. Being Ubuntu, the necessary files are not in the same place as Webmin documentation. However, a quick Google search found a blog post with the solution. For my own records, I am duplicating below:
- Open a shell or SSH session on the target server
- Enter the command
- /usr/share/webmin/changepass.pl /etc/webmin username password
- Where username = webmin username. For me this was root
- And password = new password.
- Login to Webmin to test
Thanks to and original information from http://ranawd.wordpress.com/2010/06/14/reset-webmin-password-for-ubuntu/
Given the number of password I seemingly have to remember, I think it is time that I employed some for of Password Safe.
For those of us used to Windows management tools, getting a comprehensive list of data regarding installed hardware on a Linux box can be a little daunting. Whilst recently migrating a virtualised ubuntu box, I needed to find out just what network hardware was in use.
Within a linux shell, type the following
lshw -class network
This will produce a full list of all installed network hardware. For newbies, the define name you are probably looking for is called logical name.
No matter how many times I have installed and configured Linux, I can never remember the name of the configuration file that stores the DNS/Nameserver details. This really only applies if your Linux machine is using a static IP address. In most scenarios, it does not apply to DHCP clients.
DNS server settings are stored in /etc/resolve.conf To edit this file, enter the following command from the shell
$sudo nano /etc/resolv.conf
(If you have installed XWindows/Gnome, you can use sudo gedit /etc/resolve.conf instead)
Add the entries for your DNS or nameservers as follows
nameserver <IP address of DNS server 1>
nameserver <IP address of DNS server 2>