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
a10cb6a8
Commit
a10cb6a8
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
fix isInteractiveShell; less output for service
parent
9907f6f4
No related branches found
No related tags found
1 merge request
!6
fix isInteractiveShell; less output for service
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
icinga-cli.sh
+0
-1
0 additions, 1 deletion
icinga-cli.sh
inc_functions.sh
+4
-4
4 additions, 4 deletions
inc_functions.sh
with
4 additions
and
5 deletions
icinga-cli.sh
+
0
−
1
View file @
a10cb6a8
...
@@ -172,7 +172,6 @@ function processAllChecks(){
...
@@ -172,7 +172,6 @@ function processAllChecks(){
_log
""
_log
""
_log
"------ looping over all checks"
_log
"------ looping over all checks"
getChecks
for
myconfig
in
$(
getChecks
)
for
myconfig
in
$(
getChecks
)
do
do
iCounter
=
$iCounter
+1
iCounter
=
$iCounter
+1
...
...
This diff is collapsed.
Click to expand it.
inc_functions.sh
+
4
−
4
View file @
a10cb6a8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# ======================================================================
# ======================================================================
isInteractiveShell
=
false
isInteractiveShell
=
false
test
-n
"
$PS1
"
&&
isInteractiveShell
=
true
test
$PPID
-ne
1
&&
isInteractiveShell
=
true
# ..................................................................
# ..................................................................
# write debug output to STDERR
# write debug output to STDERR
...
@@ -248,12 +248,12 @@ function _getIpPrivate(){
...
@@ -248,12 +248,12 @@ function _getIpPrivate(){
http.makeRequest
"
$1
"
"
$2
"
"
$3
"
http.makeRequest
"
$1
"
"
$2
"
"
$3
"
if
http.isServerError
>
/dev/null
;
then
if
http.isServerError
>
/dev/null
;
then
echo
"CRITICAL ERROR: API request failed with a server error
$1
$2
"
_elog
"CRITICAL ERROR: API request failed with a server error
$1
$2
"
exit
1
exit
1
fi
fi
http.getResponseHeader
_echo
"
$(
http.getResponseHeader
)
"
http.getResponse
_echo
$(
http.getResponse
)
}
}
...
...
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