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
e06f93ad
Commit
e06f93ad
authored
6 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update director cli
parent
3d22d4e8
Branches
Branches containing commit
No related tags found
1 merge request
!45
OP#7617 Icinga client - Zertifikatsprüfung bei Senden an Sattelit prüfen https://projects.iml.unibe.ch/work_packages/7617
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
director-cli.sh
+17
-13
17 additions, 13 deletions
director-cli.sh
with
17 additions
and
13 deletions
director-cli.sh
+
17
−
13
View file @
e06f93ad
...
...
@@ -14,21 +14,22 @@
#
# ----------------------------------------------------------------------
# ah = axel.hahn@unibe.ch
# 2022-02-16 v0.2 ah add --cfg param
# 2022-03-04 v0.3 ah abort on http 5xx error
# 2023-01-22 v0.4 ah fix _bStopOnError; some shellfixes
# 2023-02-17 v0.5 ah add hostnamme into CFGSTORAGE
# 2023-02-17 v0.6 ah remove invalid line in cleanup
# 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
# 2024-03-26 v0.11 ah on service creation: use http status code instead of exitcode
# 2024-04-09 v0.12 ah add host_notes_url on host
# 2022-02-16 v0.2 ah add --cfg param
# 2022-03-04 v0.3 ah abort on http 5xx error
# 2023-01-22 v0.4 ah fix _bStopOnError; some shellfixes
# 2023-02-17 v0.5 ah add hostnamme into CFGSTORAGE
# 2023-02-17 v0.6 ah remove invalid line in cleanup
# 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
# 2024-03-26 v0.11 ah on service creation: use http status code instead of exitcode
# 2024-04-09 v0.12 ah add host_notes_url on host
# 2024-11-20 v0.13 ah update rest api client; show --hs param in the help
# ======================================================================
_version
=
"0.1
2
"
_version
=
"0.1
3
"
which curl
>
/dev/null
||
exit
1
which jo
>
/dev/null
||
exit
1
...
...
@@ -664,6 +665,9 @@ Host actions
--hostdelete
Delete [
$MY_NAME
] in the icinga director
--hs
--hostshow
Show generated JSON for cur current host what should be sent
Check actions
...
...
@@ -743,7 +747,7 @@ else
.
"
$_cfg
"
fi
.
$(
dirname
$0
)
/inc_functions.sh
.
$(
dirname
$0
)
/inc/
rest-api-client
.sh
.
$(
dirname
$0
)
/inc/
http.class
.sh
if
[
$#
-eq
0
]
;
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