0% found this document useful (0 votes)
63 views3 pages

NAGIOS

The document discusses how to install and configure Nagios, an open source infrastructure monitoring tool. It covers installing Nagios server components like Nagios core and plugins, as well as configuring the server to define hosts, services, and alerts. Commands are also provided to check specific services and plugins.

Uploaded by

brutalxrop
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views3 pages

NAGIOS

The document discusses how to install and configure Nagios, an open source infrastructure monitoring tool. It covers installing Nagios server components like Nagios core and plugins, as well as configuring the server to define hosts, services, and alerts. Commands are also provided to check specific services and plugins.

Uploaded by

brutalxrop
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

NAGIOS

monitoring:
Nagios: it is an open source it infra monitoring: tools

nagios bacically works on plugin concept

How to install Nagios server


Package depend:
1) httpd
2 )php
3) gcc

Nagios Package:
1) Nagios-core
2) Nagios-Pligin

Client:
Nagios-NRPE

# yum install -y httpd httpd-tools php gcc glibc glibc-common gd gd-devel make
net-snmp

# useradd nagios

# groupadd nagcmd

# usermod -G nagcmd nagios

# usermod -G nagcmd apache

# wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-
4.4.5.tar.gz

# ls

# tar -xzf nagios-4.4.5.tar.gz

# ls

# cd nagios-4.4.5.tar.gz

# ./configure --with-command-group=nagcmd

# make all

# make install

# make install-init

# make install-commandmode

# make install-config

# ls /usr/local/nagios/etc/objects

# make install-webconf
# vi /etc/httpd/conf.d/nagios.conf (to see only)

#nagiosadmin

# cat /usr/local/nagios/etc/htpasswd.users

# systemctl start httpd

# systemctl start nagios

# systemctl enable httpd

# systemctl enable nagios

# systemctl status nagios

Your Nagios is ready to work, please open it in your browser with


�http://Your-server-IP-address/nagios� or �http://FQDN/nagios� and
Provide the username �nagiosadmin� and password.

Now How to install nagios Plugins ?

# wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz

wget https://www.nagios.org/downloads/nagios-plugins-2.3.3.tar.gz

# ls

# tar -xzf nagios-plugins-2.2.1.tar.gz

# ls

# cd nagios-plugins-2.2.1

# ls /usr/local/nagios/libexec/

# ./configure --with-nagios-user=nagios --with-nagios-group=nagios

# make

# make install

# cd

# ls /usr/local/nagios/libexec

# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
( verify the semple Nagios configuration files )

Nagios server configured successfully

Now we are going to know how's the Nagios working in backend .

# cd /usr/local/nagios

# ls
# cd etc/

# ls

# objects/

# ls

# vim localhost.cfg

if you want to stop any service so just go to this localhost.cfg file and type
register 0

# systemctl restart nagios

Now to go web nagios and check service is stop or not

# ./check_users -w 5 -c 10

# ./check_users -w 0 -c 1

# ./check_disk -w 20% -p /

# ./check_disk --help

You might also like