...
 
Commits (2)
...@@ -43,7 +43,7 @@ object NotificationCommand "statuspage-notifications-command" { ...@@ -43,7 +43,7 @@ object NotificationCommand "statuspage-notifications-command" {
log(LogDebug, "statuspage-notifications", "Sending notification...generating component state") log(LogDebug, "statuspage-notifications", "Sending notification...generating component state")
var component_status = "operational" var component_status = "operational"
if(service_state != '') { if(service_state != "OK") {
component_status = "major_outage" component_status = "major_outage"
} }
var component_id = component_map[service_component_name] var component_id = component_map[service_component_name]
......
...@@ -20,7 +20,7 @@ template Notification "statuspage-notifications-configuration" { ...@@ -20,7 +20,7 @@ template Notification "statuspage-notifications-configuration" {
command = "statuspage-notifications-command" command = "statuspage-notifications-command"
} }
template Notification "slack-notifications-default-configuration-services" { template Notification "statuspage-notifications-default-configuration-services" {
import "statuspage-notifications-configuration" import "statuspage-notifications-configuration"
states = [ OK, Warning, Critical, Unknown ] states = [ OK, Warning, Critical, Unknown ]
......