Configure Nagios in Centos 6
By
Faisal Md. Jiaur Rahman
By
Faisal Md. Jiaur Rahman
269 useradd -m nagios
270
passwd nagios
271
groupadd nagiosgroup
272
usermod -a -G nagiosgroup nagios
273
usermod -a -G nagiosgroup apache
274
wget
https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.0.8.tar.gz
275
wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
276 ls
277
tar xzf nagios-4.0.8.tar.gz
278 ls
279 cd
nagios-4.0.8
280 ls
281
./configure --with-command-group=nagiosgroup
282 ls
283
make all
284
make install
285 make
install-init
286
make install-config
287
make install-commandmode
288
make install-webconf
289
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadminit
290
service httpd restart
291
tar xzf nagios-plugins-2.0.3.tar.gz
297 cd
nagios-plugins-2.0.3
299
./configure --with-nagios-user=nagios --with-nagios-group=nagios
300
make
301
make install
302 vi
/usr/local/nagios/etc/objects/contacts.cfg
303
vim /etc/httpd/conf.d/nagios.conf
304
service httpd restart
306
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
307
service nagios start
308
chkconfig nagios on

Post a Comment