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
52cf4466
Commit
52cf4466
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
icingacli - remove http statuscode
parent
a10cb6a8
No related branches found
No related tags found
1 merge request
!7
icingacli - remove http statuscode
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
icinga-cli.sh
+8
-4
8 additions, 4 deletions
icinga-cli.sh
inc_functions.sh
+1
-1
1 addition, 1 deletion
inc_functions.sh
with
9 additions
and
5 deletions
icinga-cli.sh
+
8
−
4
View file @
52cf4466
...
...
@@ -401,7 +401,7 @@ function processCheck(){
# --- check if data were sent successfully
# fgrep "HTTP/1.1 200" ${_response} >/dev/null
# _testHttpOk ${_response} >/dev/null
http.isOk
2
>/dev/null
http.isOk
>
/dev/null
if
[
$?
-eq
0
]
;
then
_log
"
${
_logPrefix
}
OK, response was sent to Icinga"
else
...
...
@@ -410,6 +410,7 @@ function processCheck(){
_echo
_echo For Debugging:
_echo
"
$(
$ch
--show
--json
)
"
_log
"
$(
$ch
--show
--json
)
"
fi
$ch
--flush
2>/dev/null
...
...
@@ -517,8 +518,9 @@ function showVersion(){
#
# ----------------------------------------------------------------------
.
"
$(
dirname
$0
)
/inc_functions.sh"
cat
<<
EOBANNER
_echo
"
______________________________________________________________________________________
_______ __
...
...
@@ -536,8 +538,10 @@ ________________________________________________________________________________
______________________________________________________________________________________
"
_log
"Starting
$_product
$_version
"
EOBANNER
if
[
"
$1
"
=
"--cfg"
]
&&
[
-n
"
$2
"
]
;
then
echo
"INFO: loading custom config [
$2
]..."
...
...
@@ -546,7 +550,7 @@ if [ "$1" = "--cfg" ] && [ -n "$2" ]; then
else
.
"
$(
dirname
$0
)
/inc_getconfig.sh"
fi
.
"
$(
dirname
$0
)
/inc_functions.sh"
.
"
$(
dirname
$0
)
/inc/rest-api-client.sh"
if
[
$#
-eq
0
]
;
then
...
...
This diff is collapsed.
Click to expand it.
inc_functions.sh
+
1
−
1
View file @
52cf4466
...
...
@@ -52,7 +52,7 @@
# echo if there is an interactive shell
# params string(s) message to log
function
_echo
(){
test
$isInteractiveShell
&&
echo
$*
test
$isInteractiveShell
&&
echo
"
$*
"
}
# ======================================================================
...
...
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