We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8c7a6 commit 88f320bCopy full SHA for 88f320b
mkp/local/share/check_mk/agents/plugins/yum
@@ -145,7 +145,7 @@ if [ "$YUM_CURRENT" != "$YUM_CACHED" ] || [ ! -s "$CACHE_RESULT_CHECK" ]
145
then
146
count=0
147
# Check for running package manager processes
148
- while [ -n "$(pgrep -f "(python|/usr/bin/).*/(yum|dnf)" | head -1)" ]; do
+ while [ -n "$(pgrep -u root -f "(python|/usr/bin/).*/(yum|dnf)" | head -1)" ]; do
149
if [ $count -eq 3 ]; then
150
echo "ERROR: Tried to run $PKG_MGR for 30 secs but another package manager instance was running"
151
exit 2
0 commit comments