|
@@ -2,7 +2,7 @@
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
|
|
#####################################################################
|
|
|
-# (c) 2016 by Sven Velt, Germany #
|
|
|
+# (c) 2016-2017 by Sven Velt, Germany #
|
|
|
# sven-mymonplugins@velt.biz #
|
|
|
# #
|
|
|
# This file is part of "velt.biz - My Monitoring Plugins" #
|
|
@@ -117,6 +117,8 @@ if plugin.options.sync_repo_index:
|
|
|
serr and plugin.verbose(3, serr, prefix='stderr: ')
|
|
|
plugin.verbose(2, 'Return code: %d' % rc)
|
|
|
if plugin.options.fail_on_sync_failure and (rc != 0 or 'ERROR:' in ' '.join(serr)):
|
|
|
+ if 'Permission denied' in ' '.join(serr):
|
|
|
+ plugin.back2nagios(plugin.RETURNCODE['CRITICAL'], 'Syncing of repository index files failed, permission denied. Do you need "--sudo"?', multiline=serr)
|
|
|
plugin.back2nagios(plugin.RETURNCODE['CRITICAL'], 'Syncing of repository index files failed', multiline=serr)
|
|
|
|
|
|
##############################################################################
|