INTRO ----- This guide will help you install nagios and pnp4nagios configured for Wireless Leiden on a FreeBSD based machine. THE REAL THING -------------- # Webserver & Install packages $ pkg install www/apache24 www/mod_php56 $ pkg install net-mgmt/nagios net-mgmt/nagios-plugins net-mgmt/pnp net-mgmt/p5-Net-SNMP net-mgmt/pnp net-mgmt/nagiosgraph # Our Nagios plugins $ svn co https://svn.wirelessleiden.nl/svn/code/nagios/trunk/plugins /usr/local/libexec/nagios/v2 # Nagios configuration files $ mv /usr/local/etc/nagios{,.orig} $ svn co https://svn.wirelessleiden.nl/svn/code/nagios/trunk/config /usr/local/etc/nagios # Nagios WWW files $ mv /usr/local/www/nagios{,.orig} $ svn co https://svn.wirelessleiden.nl/svn/code/nagios/trunk/www /usr/local/www/nagios # PNP configuration files $ mv /usr/local/etc/pnp{,.orig} $ svn co https://svn.wirelessleiden.nl/svn/code/nagios/trunk/pnp/etc /usr/local/etc/pnp # PNP WWW files $ mv /usr/local/www/pnp{,.orig} $ svn co https://svn.wirelessleiden.nl/svn/code/nagios/trunk/pnp/www /usr/local/www/pnp # Supporting (auto-update) tools $ svn co https://svn.wirelessleiden.nl/svn/services/tools /usr/local/tools # Disable installer files $ mv /usr/local/www/pnp/install.php /usr/local/www/pnp/install.php.done # Apache configuration file $ mv /usr/local/etc/apache24/Includes{,.orig} $ svn co https://svn.wirelessleiden.nl/svn/code/nagios/trunk/Includes /usr/local/etc/apache24/Includes # Enable services $ echo 'nagios_enable=YES' >> /etc/rc.conf $ echo 'apache24_enable=YES' >> /etc/rc.conf # (Re)start services $ service apache24 restart $ service nagios restart SUPPORT ------- Questions and comments: techniek@lijst.wirelessleiden.nl