Created
January 27, 2011 20:37
-
-
Save at0mz/799208 to your computer and use it in GitHub Desktop.
pnp4nagios install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# go to compile source | |
cd /usr/local/src/ | |
# get pnp4nagios | |
wget http://cdnetworks-kr-2.dl.sourceforge.net/project/pnp4nagios/PNP-0.6/pnp4nagios-0.6.11.tar.gz | |
# Extract the file | |
tar -xvzf pnp4nagios-0.6.11.tar.gz | |
# Go to pnp4nagios folder | |
cd pnp4nagios-0.6.11/ | |
# config & make & install | |
./configure --with-nagios-user=nagios --with-nagios-group=nagios | |
make all | |
make install install-config install-html install-processperfdata install-plugins install-webconf install-init | |
service apache2 restart | |
# create npcd config from pnp4nagios sample config | |
mv /usr/local/pnp4nagios/etc/npcd.cfg-sample /usr/local/pnp4nagios/etc/npcd.cfg | |
# edit nagios.cfg | |
nano /usr/local/nagios/etc/nagios.cfg | |
# adjustments in nagios.cfg | |
process_performance_data=1 | |
broker_module=/usr/local/pnp4nagios/lib/npcdmod.o config_file=/usr/local/pnp4nagios/etc/npcd.cfg | |
# Start it up and add it to the system's autostart: | |
invoke-rc.d npcd start | |
update-rc.d npcd defaults 20 | |
# test config | |
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg | |
service nagios restart | |
# enable mod_rewrite | |
a2enmod rewrite | |
service apache2 restart | |
# Use your webbrowser go to http://<ip address>/pnp4nagios/ | |
# Then, follow the instruction on the web. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment