|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -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)
|
|
|
|
|
|
|