define contact {
       contact_name                             <%= @name %>
       alias                                    Campfire Pseudo Contact
       service_notification_period              24x7
       host_notification_period                 24x7
       service_notification_options             w,c,r,f
       host_notification_options                d,r,u,f,s
       service_notification_commands            notify-service-by-campfire
       host_notification_commands               notify-host-by-campfire
}

# 'notify-host-by-campfire' command definition
define command{
    command_name    notify-host-by-campfire
    command_line    /usr/local/bin/campfire_nagios -s <%= @campfire_subdomain %> -t <%= @campfire_token %> -r <%= @campfire_room %> -m "[nagios] $NOTIFICATIONTYPE$ : $HOSTDISPLAYNAME$ is $HOSTSTATE$"
    }

# 'notify-service-by-campfire' command definition
define command{
    command_name    notify-service-by-campfire
    command_line    /usr/local/bin/campfire_nagios -s <%= @campfire_subdomain %> -t <%= @campfire_token %> -r <%= @campfire_room %> -m "[nagios] $SERVICESTATE$: $SERVICEDESC$ on $HOSTALIAS$"
    }

define contact {
       contact_name                             <%= @name %>
       alias                                    Campfire Pseudo Contact
       service_notification_period              24x7
       host_notification_period                 24x7
       service_notification_options             w,c,r,f
       host_notification_options                d,r,u,f,s
       service_notification_commands            notify-service-by-campfire
       host_notification_commands               notify-host-by-campfire
}

# 'notify-host-by-campfire' command definition
define command{
    command_name    notify-host-by-campfire
    command_line    /usr/local/bin/campfire_nagios -s <%= @campfire_subdomain %> -t <%= @campfire_token %> -r "<%= @campfire_room %>" -m "[nagios] $NOTIFICATIONTYPE$ : $HOSTDISPLAYNAME$ is $HOSTSTATE$"
    }

# 'notify-service-by-campfire' command definition
define command{
    command_name    notify-service-by-campfire
    command_line    /usr/local/bin/campfire_nagios -s <%= @campfire_subdomain %> -t <%= @campfire_token %> -r "<%= @campfire_room %>" -m "[nagios] $SERVICESTATE$: $SERVICEDESC$ on $HOSTALIAS$"
    }

Allow multi-word room names for Campfire
Allow multi-word room names for Campfire

This has been silently failing since I changed the room which Nagios
alerts get sent to. The cause of this is that the room name has changed
from one word (Zeitgeist) which does to require quoting to "GOV.UK
Monitoring Alerts" which would need to be quoted.

The addition of some quotes fixes this.
