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
bf7a99e7
Commit
bf7a99e7
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
fix json key for service link
parent
73535b2b
No related branches found
No related tags found
1 merge request
!36
director-cli: fix json key for service link
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
director-cli.sh
+5
-3
5 additions, 3 deletions
director-cli.sh
with
5 additions
and
3 deletions
director-cli.sh
+
5
−
3
View file @
bf7a99e7
...
...
@@ -22,10 +22,11 @@
# 2023-02-17 v0.7 ah check inc_getconfig.sh exists and hostname -f has a value
# 2023-10-25 v0.8 ah generate json with "jo"; optimze http requests on services; parallel service function call
# 2023-11-02 v0.9 ah fix json genration for multiple ports
# 2023-11-03 v0.10 ah fix json key for service link
# ======================================================================
_version
=
"0.
9
"
_version
=
"0.
10
"
which curl
>
/dev/null
||
exit
1
which jo
>
/dev/null
||
exit
1
...
...
@@ -172,11 +173,11 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
function
_generateJsonForSvclink
(){
local
JSONPARAMS
=
"
object_name="
\"
${
IDC_svcathost__obj_name
}
\"
"
ch
ec
k
_type=object
obj
ec
t
_type=object
host=
${
MY_NAME
}
imports[]="
\"
${
IDC_service__obj_name
}
\"
"
"
echo
"JSONPARAMS"
echo
"
$
JSONPARAMS
"
}
# ............................................................
...
...
@@ -334,6 +335,7 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
http.makeRequest
"
$_sMethod
"
"
$_sUrl
"
"
$_jsondata
"
if
$_bStopOnError
&&
http.isServerError
>
/dev/null
;
then
echo
"CRITICAL ERROR: Director API request failed with a server error
$_sMethod
$_sUrl
"
http.getResponse
exit
1
fi
if
[
$_bShowResponse
=
true
]
;
then
...
...
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