Installing the Nagios plugin on the Snare Servers
SUMMARY
Oct 26, 2015
Even though Nagios is not required for the Snare Server, some sites require Nagios to be installed on their Snare Server.
Nagios is an opensource software and made of many smaller packages which have to be brought together to allow it to be installed on your systems. Other customers that run other enterprise management software tend to have an install package that has everything they need to run included in their installers. As Nagios does not, it’s a bit more complex. Some customers run things like HP Openview/Operations Manager, CA Technologies ( formally CA Unicentre), IBM Tovoli, or other SNMP based agents on their servers to for monitoring.
Some links that will help you find all the software components you need for Nagios to download can be found here.
https://help.ubuntu.com/lts/serverguide/nagios.html
http://packages.ubuntu.com/trusty/nagios3 this has a lot of the starting point links to get all of the following software packages you will need to download. You will have to navigate down the tree paths to find all of the packages.
The packages you need are as follows:
apache2-utils_2.4.7-1ubuntu4.5_amd64.deb
bsd-mailx_8.1.2-0.20131005cvs-1ubuntu0.14.04.1_amd64.deb
nagios3_3.5.1-1ubuntu1_amd64.deb
nagios3-cgi_3.5.1-1ubuntu1_amd64.deb
nagios3-common_3.5.1-1ubuntu1_all.deb
nagios3-core_3.5.1-1ubuntu1_amd64.deb
nagios-images_0.8_all.deb
nagios-nrpe-plugin_2.15-0ubuntu1_amd64.deb
nagios-plugins-basic_1.5-3ubuntu1_amd64.deb
nagios-plugins-common_1.5-3ubuntu1_amd64.deb
postfix_2.11.0-1_amd64.deb
After you download all of these using wget on the Snare server ( assuming the servers have Internet access, if not then you will need to download manually then upload the files to the snare server maybe /home/snare via sftp or scp) then you will need to add the packages to the system. This can be done via the following command.
dpkg -i nagios3_3.5.1-1ubuntu1_amd64.deb nagios3-cgi_3.5.1-1ubuntu1_amd64.deb nagios3-common_3.5.1-1ubuntu1_all.deb nagios3-core_3.5.1-1ubuntu1_amd64.deb nagios-images_0.8_all.deb nagios-nrpe-plugin_2.15-0ubuntu1_amd64.deb nagios-plugins-basic_1.5-3ubuntu1_amd64.deb nagios-plugins-common_1.5-3ubuntu1_amd64.deb apache2-utils_2.4.7-1ubuntu4.5_amd64.deb bsd-mailx_8.1.2-0.20131005cvs-1ubuntu0.14.04.1_amd64.deb postfix_2.11.0-1_amd64.deb
This will then install all of the software packages and should allow you to run your Nagios agents.
This may be more than you require as you won’t need to run all of Nagios on the Snare servers, but only the agents but they seem to integrate a lot of these functions together. Consult with your Nagios admin to determine what settings to change for your environment.
Since Nagios is not required for the Snare Server, they will not be patched in our base build, so you are required to maintain them.