Nagios Monitoring Services

Source: Internet
Author: User

Previous post: Nagios monitoring installation http://wangjiatong.blog.51cto.com/11834370/1886423

Nagios Server: 192.168.217.131

Monitored side: 192.168.217.154


Vim/usr/local/nagios/etc/objects/hosts.cfg (Hosts.cfg New)

Define Host{

Use Linux-server

HOST_NAME Lamp

Alias lamp

Address 192.168.217.154

}

definehostgroup{

Hostgroup_name Lamp-server

Alias Lamp-server

Members lamp

}

VIM/USR/LOCAL/NAGIOS/ETC/OBJECTS/SERVICES.CFG (Service New)

Define Service{

Use Local-service

HOST_NAME Lamp

Service_description check-host-alive

Check_command check-host-alive

}

Define Service{

Use Local-service,services-pnp

HOST_NAME lamp

Service_description Ping // indicates monitoring ping service

Check_command check_ping!100.0,20%!500.0,60%

}

Define Service{

Use Local-service

HOST_NAME lamp

Service_description SSH

Check_command Check_ssh

}

Define Service{

Use Local-service

HOST_NAME lamp

Service_description Swap Usage

Check_command check_local_swap!20!10

}

Define Service{

Use Local-service

HOST_NAME lamp

Service_description Current Users

Check_command check_local_users!20!50

}

Check if there is a problem with the configuration:/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg

Total warnings:0
Total errors:0
See 2 of the 0 instructions configuration no problem:

add in vim/usr/local/nagios/etc/nagios.cfg

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8C/19/wKioL1hiL2ahfwP7AAAzH-2mWJc686.png-wh_500x0-wm_3 -wmp_4-s_686066321.png "title=" 1.png "alt=" Wkiol1hil2ahfwp7aaazh-2mwjc686.png-wh_50 "/>

Then restart the Nagios service:

[Email protected] objects]#/etc/init.d/nagios restart
Restarting Nagios (via Systemctl): [OK]
In the browser of the server: http://http://192.168.217.131 (server IP)/nagios/

To enter your account and password, see the installation of Nagios monitoring http://wangjiatong.blog.51cto.com/11834370/1886423

Then you see the effect:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8C/19/wKioL1hiMEuQnc3rAAHGePhvIas628.png-wh_500x0-wm_3 -wmp_4-s_2739495111.png "title=" 2.png "alt=" Wkiol1himeuqnc3raahgephvias628.png-wh_50 "/>






This article from "Do not forget Beginner's mind" blog, reproduced please contact the author!

Nagios Monitoring Services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.