Posts

Showing posts from June, 2019

Install pnp nagios a monitoring graph

yum install rrdtool rrdtool-perl perl-Time-HiRes perl-GD -y Download from here https://sourceforge.net/projects/pnp4nagios/files/latest/download tar xvf pnp4nagios-0.6.25.tar.gz cd pnp4nagios-0.6.25 ./configure make all make fullinstall --Now enable vi /usr/local/nagios/etc/nagios.cfg process_performance_data=1 # service performance data service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$ service_perfdata_file_mode=a service_perfdata_file_processing_interval=15 service_perfdata_file_processing_command=process-service-perfdata-file # host performance data host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata host_perfdata_file_template=DATATYPE::HO

Setup Nagios Server for monitoring with Redhat 7

$ yum -y install httpd php gcc glibc glibc-common wget perl gd gd-devel unzip zip $ useradd nagios $ groupadd nagcmd $ usermod -a -G nagcmd nagios $ usermod -a -G nagcmd apache $ cd /tmp/ $ wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz $ tar -zxvf nagios-4.4.3.tar.gz $ cd /tmp/nagios-4.4.3 $ ./configure --with-nagios-group=nagios --with-command-group=nagcmd make all make install make install-init make install-config make install-commandmode make install-webconf make install-exfoliation htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin systemctl restart httpdyum -y install httpd php gcc glibc glibc-common wget perl gd gd-devel unzip zip useradd nagios groupadd nagcmd usermod -a -G nagcmd nagios usermod -a -G nagcmd apache cd /tmp/ wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz tar -zxvf nagios-4.4.3.tar.gz cd /tmp/nagios-4.4.3 ./configure --with-nagios-group=nagios --with-command-group=nagcmd make all make