Extended host information entries are basically used to make the output from the status, statusmap, statuswrl, and extinfo CGIs look pretty. They have no effect on monitoring and are completely optional.
Note
Tip: As of Nagios 3.x, all directives contained in extended host information definitions are also available in host definitions. Thus, you can choose to define the directives below in your host definitions if it makes your configuration simpler. Separate extended host information definitions will continue to be supported for backward compatibility.
Bold directives are required, while the others are optional.
define hostextinfo{ | |
host_name | *host_name* |
notes | notes |
notes_url | notes_url |
action_url | action_url |
icon_image | image_file |
icon_image_alt | alt_string |
vrml_image | image_file |
statusmap_image | image_file |
2d_coords | x_coord,y_coord |
3d_coords | x_coord,y_coord,z_coord |
} |
define hostextinfo{
host_name netware1
notes This is the primary Netware file server
notes_url http://webserver.localhost.localdomain/hostinfo.pl?host=netware1
icon_image novell40.png
icon_image_alt IntranetWare 4.11
vrml_image novell40.png
statusmap_image novell40.gd2
2d_coords 100,250
3d_coords 100.0,50.0,75.0
}