Archived
1
0

minor spelling corrections

* Minor spelling corrections in the documentation of the options.
* Write “YUM” everywhere where the program YUM (and not the binary, the package, etc.) is meant.
This commit is contained in:
Christoph Anton Mitterer 2012-09-30 00:52:34 +02:00
parent 11bfebab8c
commit 8fc7eafcd5

View File

@ -199,7 +199,7 @@ class YumTester:
discarded = discarded2
discarded2 = discarded
end(UNKNOWN, "Yum nagios plugin has self terminated after exceeding the timeout (%s seconds)" % self.timeout)
end(UNKNOWN, "YUM nagios plugin has self terminated after exceeding the timeout (%s seconds)" % self.timeout)
def get_updates(self):
@ -228,7 +228,7 @@ class YumTester:
for section in output2:
print "\nSection:\n%s\n" % section
if len(output2) > 2 or not ( "Setting up repositories" in output2[0] or "Loaded plugins: " in output2[0] or re.search('Loading\s+".+"\s+plugin', output2[0]) ):
end(WARNING, "Yum output signature does not match current known format. Please make sure you have upgraded to the latest version of this plugin. If the problem persists, please contact the author for a fix")
end(WARNING, "YUM output signature does not match current known format. Please make sure you have upgraded to the latest version of this plugin. If the problem persists, please contact the author for a fix")
if len(output2) == 1:
#There are no updates but we have passed the loading and setting up of repositories
number_packages = 0
@ -251,7 +251,7 @@ class YumTester:
if re_package_format.match(line):
count += 1
if count != number_packages:
end(UNKNOWN, "Error parsing package information, inconsistent package count, yum output may have changed. Please make sure you have upgraded to the latest version of this plugin. If the problem persists, then please contact the author for a fix")
end(UNKNOWN, "Error parsing package information, inconsistent package count, YUM output may have changed. Please make sure you have upgraded to the latest version of this plugin. If the problem persists, then please contact the author for a fix")
return number_packages
@ -302,7 +302,7 @@ class YumTester:
number_other_updates = number_total_updates - number_security_updates
if len(output) > number_total_updates + 25:
end(WARNING, "Yum output signature is larger than current known format, please make sure you have upgraded to the latest version of this plugin. If the problem persists, please contact the author for a fix")
end(WARNING, "YUM output signature is larger than current known format, please make sure you have upgraded to the latest version of this plugin. If the problem persists, please contact the author for a fix")
return number_security_updates, number_other_updates
@ -424,7 +424,7 @@ def main():
parser.add_option("--disablerepo",
dest="repository_to_disable",
help="Explicitly disables a repository when calling YUM Can take a comma separated list of repositories.")
help="Explicitly disables a repository when calling YUM. Can take a comma separated list of repositories.")
parser.add_option("-t", "--timeout",
dest="timeout",