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
Commits
1d446e77
Commit
1d446e77
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
more strict check for currently running instance
parent
7445c261
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
director-cli.sh
+2
-1
2 additions, 1 deletion
director-cli.sh
icinga-cli.sh
+1
-1
1 addition, 1 deletion
icinga-cli.sh
plugins
+1
-1
1 addition, 1 deletion
plugins
with
4 additions
and
3 deletions
director-cli.sh
+
2
−
1
View file @
1d446e77
...
...
@@ -78,7 +78,8 @@ IDC_svcathost__cachefile="${dir_data}/services_on_host__at-director.txt"
# local MY_OSName=`facter os -y | grep " distid:" | cut -f 2 -d ":" | cut -f 2 -d " " | tr '[:upper:]' '[:lower:]'`
# local MY_OSMajorVersion=`facter os -y | grep " majdistrelease:" | cut -f 2 -d ":" | cut -f 2 -d "'"`
local
MY_Platform
=
`
facter kernel |
tr
'[:upper:]'
'[:lower:]'
`
# local MY_Platform=`facter kernel | tr '[:upper:]' '[:lower:]'`
local
MY_Platform
=
`
uname
-a
|
cut
-f
1
-d
' '
`
.
`
dirname
$0
`
/plugins/inc_pluginfunctions
local
MY_OSName
=
`
ph.getOS
`
local
MY_OSMajorVersion
=
`
ph.getOSMajor
`
...
...
This diff is collapsed.
Click to expand it.
icinga-cli.sh
+
1
−
1
View file @
1d446e77
...
...
@@ -101,7 +101,7 @@ function loopChecks(){
local
snapShotCurrent
=
${
dir_data
}
/
`
basename
$0
`
-last
.fingerprint
if
[
-f
"
${
lockfile
}
"
]
;
then
local
lockpid
=
`
cat
"
${
lockfile
}
"
|
cut
-f
2
-d
"-"
|
cut
-f
4
-d
" "
|
grep
"[0-9]"
`
ps
-f
--pid
$lockpid
>
/dev/null
ps
-f
--pid
$lockpid
|
grep
"
`
basename
$0
`
"
|
grep
loop
>
/dev/null
if
[
$?
-eq
0
]
;
then
_log
"ABORT: Loop seems to run already. See process with PID
$lockpid
"
echo
...
...
This diff is collapsed.
Click to expand it.
plugins
@
ee916f18
Subproject commit
7591e7456609b9313937662bfce4823669f60eda
Subproject commit
ee916f183663f7a694490cf91ea6f0c3d64b59bf
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