diff options
-rwxr-xr-x | monitoring/icinga-agent | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monitoring/icinga-agent b/monitoring/icinga-agent index e4690fe..6b8e853 100755 --- a/monitoring/icinga-agent +++ b/monitoring/icinga-agent | |||
@@ -58,10 +58,10 @@ proto="http" | |||
58 | base="$proto://$master_fqdn/icingaweb2/director/self-service/register-host" | 58 | base="$proto://$master_fqdn/icingaweb2/director/self-service/register-host" |
59 | url="$base?name=$nodename&key=$apikey" | 59 | url="$base?name=$nodename&key=$apikey" |
60 | result=$(curl -m 30 -i $url -H "Accept: application/json" -X "POST" \ | 60 | result=$(curl -m 30 -i $url -H "Accept: application/json" -X "POST" \ |
61 | -d "{\"display_name\":\"$displayname\",\"address\":\"$ipv4\",\"address6\":\"$ipv6\"}" \ | 61 | -d "{\"display_name\":\"$displayname\",\"address\":\"$ipv4\",\"address6\":\"$ipv6\"}") |
62 | || error "unable to register with master") | 62 | #\|| error "unable to register with master") |
63 | 63 | ||
64 | echo $result | grep -q "error" && error "unable to register with master" | 64 | #echo $result | grep -q "error" && error "unable to register with master" |
65 | 65 | ||
66 | 66 | ||
67 | # Initialize PKI with master | 67 | # Initialize PKI with master |