Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-passive-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source
icinga-passive-client
Commits
54c1ad58
Commit
54c1ad58
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update creation check
parent
a9d94a6e
No related branches found
No related tags found
1 merge request
!40
update creation check
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
director-cli.sh
+6
-6
6 additions, 6 deletions
director-cli.sh
with
6 additions
and
6 deletions
director-cli.sh
+
6
−
6
View file @
54c1ad58
...
...
@@ -396,7 +396,7 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
ObjAction create host
if
[
-z
"
$(
http.isOk
)
"
]
;
then
echo
"ERROR
,
host was NOT created."
echo
"ERROR
$(
http.getStatuscode
)
:
host was NOT created."
else
echo
"OK, host was created successfully."
fi
...
...
@@ -507,11 +507,11 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
# if ObjAction $_action service; then
ObjAction
$_action
service
if
[
-z
"
$(
http.isOk
)
"
]
;
then
echo
"ERROR
$(
http.getStatuscode
)
:/
$_action
service
${
IDC_service__obj_name
}
"
return
1
else
echo
"OK
$_action
service
${
IDC_service__obj_name
}
"
return
0
else
echo
"ERROR :/
$_action
service
${
IDC_service__obj_name
}
"
return
1
fi
}
...
...
@@ -531,9 +531,9 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
# if ObjAction create svclink; then
ObjAction create svclink
if
[
-z
"
$(
http.isOk
)
"
]
;
then
echo
"
OK:
linked service
${
checkName
}
on host [
$MY_NAME
]
was created
"
echo
"
ERROR
$(
http.getStatuscode
)
:-/ unable to create
linked service
${
checkName
}
on host [
$MY_NAME
]"
else
echo
"
ERROR :-/ unable to create
linked service
${
checkName
}
on host [
$MY_NAME
]"
echo
"
OK:
linked service
${
checkName
}
on host [
$MY_NAME
]
was created
"
fi
else
echo
"SKIP: linked service on host [
${
IDC_svcathost__obj_name
}
] exists"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment