Nagios Core Administrators Cookbook
上QQ阅读APP看书,第一时间看更新

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "Nagios Core will only need whatever information the PING tool would need for its own check_ping command".

A block of code is set as follows:

define service {
    use                    generic-service
    host_name              sparta.naginet
    service_description    HTTP
    check_command          check_http
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

define host {
    host_name              sparta.naginet
    alias                  sparta
    address                10.128.0.21
    max_check_attempts     3
    check_period           24x7
    check_command          check-host-alive
    contacts               nagiosadmin
 notification_interval 60
    notification_period    24x7
}

Any command-line input or output is written as follows:

# cd /usr/local/nagios/etc/objects
# vi sparta.naginet.cfg

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "If the server restarted successfully, the web interface should show a brand new host in the Hosts list, in PENDING state as it waits to run a check that the host is alive".