Adding and Monitoring a Remote Server to Icinga
Monitoring localhost is nice, but of course, it would be even better if we could monitor all of our servers in one location. This is possible with Icinga, and this chapter describes how we can add our second Debian Squeeze server (server2.example.com) to the setup.
To do this, we need to install the Nagios NRPE (Nagios Remote Plugin Executor) server on server2, and the Nagios NRPE plugin on server1. The NRPE server will listen on server2; server1 will connect to it using the NRPE plugin and pass commands to it that the NRPE server will execute on server2; it will pass back the results to server1. Continue reading
The main Icinga configuration file is /etc/icinga/icinga.cfg, additional configurations are stored in /etc/icinga/commands.cfg and /etc/icinga/resource.cfg. Usually the default configuration is ok, so you don’t have to change these files.
The first thing you should change is the contact details in /etc/icinga/objects/contacts_icinga.cfg so that notifications are sent to the correct email address:
alias Falko Timme
[...] Continue reading
Icinga is an enterprise grade open source monitoring system which keeps watch over networks and any conceivable network resource, notifies the user of errors and recoveries and generates performance data for reporting. It is a fork of Nagios. This tutorial explains how to install Icinga on a Debian Squeeze server to monitor this server and another Debian Squeeze server.
Before we begin installation, let’s prepare the enviornment first by installing Apache, MySQL, Postfix, and Courier-IMAP/-POP3 and some other packages-
Change The Default Shell
/bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this: Continue reading
- Start Registry Editor.
- Locate and then click the following registry subkey:
- On the Edit menu, click Modify, and then click Decimal.
- Type the new port number, and then click OK.
- Quit Registry Editor.
- Restart the computer.
Note When you try to connect to this computer by using the Remote Desktop connection, you must type the new port. Maybe you have to set the firewall to allow the new port number before you connect to this computer by using the Remote Desktop connection. Read More
I have tested this on a CentOS 6.2 server (host system) with the IP address 192.168.0.100 where I’m logged in as a normal user (user name vbox in this example) instead of as root.
If you only have a root account, but no normal user account, create one as follows (user admin, group admin)…
# groupadd vbox
# useradd -d /home/vbox -m -g vbox -s /bin/bash vbox
… create a password for the new user…
# passwd admin
… and log in as that user.
To install VirtualBox 4.1 on our CentOS 6.2 server, we need root privileges, therefore we run
Then we install the dependencies for VirtualBox 4.1 as follows: Continue reading