From 9a14ebe66f7c443ca24474a6242151b5f4fac06b Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sat, 21 May 2022 14:34:30 -0400 Subject: Don't quit on non-zero return status from curl. --- monitoring/icinga-agent | 6 +++--- 1 file 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" base="$proto://$master_fqdn/icingaweb2/director/self-service/register-host" url="$base?name=$nodename&key=$apikey" result=$(curl -m 30 -i $url -H "Accept: application/json" -X "POST" \ --d "{\"display_name\":\"$displayname\",\"address\":\"$ipv4\",\"address6\":\"$ipv6\"}" \ -|| error "unable to register with master") + -d "{\"display_name\":\"$displayname\",\"address\":\"$ipv4\",\"address6\":\"$ipv6\"}") +#\|| error "unable to register with master") -echo $result | grep -q "error" && error "unable to register with master" +#echo $result | grep -q "error" && error "unable to register with master" # Initialize PKI with master -- cgit v1.2.3