Fix the Nagios host configuration file

Source: Internet
Author: User

# Cat 172.16.1.1.cfg

Define Host{

Use Linux-server

HOST_NAME 172.16.1.1

Alias 172.16.1.1

Address 172.16.1.1

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description check_ping

Check_command check_ping!100.0,20%!200.0,50%

Max_check_attempts 5

Normal_check_interval 1

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Check_ssh

Check_command Check_ssh

Max_check_attempts 5

Normal_check_interval 1

Notification_interval 60

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description check_http

Check_command check_http

Max_check_attempts 5

Normal_check_interval 1

Notification_interval 60

}



Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Root Partition

Check_command Check_nrpe!check_root

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Current Users

Check_command check_nrpe!check_users

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Total Processes

Check_command Check_nrpe!check_total_procs

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Check_load

Check_command Check_nrpe!check_load

Max_check_attempts 5

Normal_check_interval 1

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description check_disk_opt

Check_command check_nrpe!check_opt

Max_check_attempts 5

Normal_check_interval 1

}




Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Port 12345

Check_command check_tcp!12345

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Port 12310

Check_command check_tcp!12310

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Port 12306

Check_command check_tcp!12306

}


Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Port 12307

Check_command check_tcp!12307

}



Define Service{

Use Generic-service

HOST_NAME 172.16.1.1

Service_description Check_mem

Check_command Check_nrpe!check_mem

Max_check_attempts 5

Normal_check_interval 1

}



Fix the Nagios host configuration file

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.