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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source
icinga-passive-client
Merge requests
!20
mal doch Pipes replacen
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
mal doch Pipes replacen
react-on-pipe-in-output
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
react-on-pipe-in-output
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
4dbde0c7
Show latest version
1 file
+
8
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4dbde0c7
mal doch Pipes replacen
· 4dbde0c7
Hahn Axel (hahn)
authored
2 years ago
icinga-cli.sh
+
8
−
8
View file @ 4dbde0c7
Edit in single-file editor
Open in Web IDE
Show full file
@@ -359,14 +359,14 @@ function processCheck(){
_echo
--------
check output:
_echo
$(
cat
"
$_outfile
"
)
#
iPipes=$( grep -o "|" < "$_outfile" | wc -l )
#
_echo "Pipe chars: $iPipes"
#
if [[ $iPipes -gt 1 ]]; then
#
_elog "WARNING - pipes were found in plugin output"
#
_elog "command was: $myFullscript $myparams"
#
_log "${_logPrefix} WARNING - pipes were found in plugin output"
# sed -i "s#|#:#g" "$_outfile"
# fi
iPipes
=
$(
grep
-o
"|"
<
"
$_outfile
"
|
wc
-l
)
_echo
"Pipe chars:
$iPipes
"
if
[[
$iPipes
-gt
1
]]
;
then
_elog
"WARNING - pipes were found in plugin output"
_elog
"command was:
$myFullscript
$myparams
"
_log
"
${
_logPrefix
}
WARNING - pipes were found in plugin output"
fi
sed
-i
"s#|#:#g"
"
$_outfile
"
_echo
# echo -------- extracted performance data:
Loading