07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

define host{<br />

use<br />

generic-host ; Name of host template to use<br />

host_name<br />

www-host<br />

alias<br />

www.falcot.com<br />

address 192.168.0.5<br />

contact_groups falcot-admins<br />

hostgroups<br />

debian-servers,ssh-servers<br />

}<br />

define host{<br />

use<br />

generic-host ; Name of host template to use<br />

host_name<br />

ftp-host<br />

alias<br />

ftp.falcot.com<br />

address 192.168.0.6<br />

contact_groups falcot-admins<br />

hostgroups<br />

debian-servers,ssh-servers<br />

}<br />

# 'check_ftp' command with custom parameters<br />

define command{<br />

command_name<br />

check_ftp2<br />

command_line<br />

/usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$<br />

➥ -w 20 -c 30 -t 35<br />

}<br />

# Generic Falcot service<br />

define service{<br />

name<br />

falcot-service<br />

use<br />

generic-service<br />

contact_groups falcot-admins<br />

register 0<br />

}<br />

# Services to check on www-host<br />

define service{<br />

use<br />

falcot-service<br />

host_name<br />

www-host<br />

service_description HTTP<br />

check_command<br />

check_http<br />

}<br />

define service{<br />

use<br />

falcot-service<br />

host_name<br />

www-host<br />

service_description HTTPS<br />

348 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!