Add warning and critical configurations

This commit is contained in:
Doctor 2022-07-09 20:14:12 +02:00
parent e3f08308ab
commit 78bcdf3627
1 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,11 @@ You need to create a file named exodus placed in the directory
env.exodus_url https://reports.exodus-privacy.eu.org
env.exodus_token your-api-token
# Warning an critical values for suffixes
[exodus_applications]
env.warning 500
env.critical 5000
=back
=head1 AUTHORS
@ -85,6 +90,10 @@ def main():
print("graph_vlabel applications")
print("graph_category exodus")
print("applications.label Applications")
if os.getenv("warning") is not None:
print("applications.warning " + os.getenv("warning"))
if os.getenv("critical") is not None:
print("applications.critical " + os.getenv("critical"))
else:
print_count("applications")
elif wildcard == "reports":
@ -93,6 +102,10 @@ def main():
print("graph_vlabel reports")
print("graph_category exodus")
print("reports.label Reports")
if os.getenv("warning") is not None:
print("reports.warning " + os.getenv("warning"))
if os.getenv("critical") is not None:
print("reports.critical " + os.getenv("critical"))
else:
print_count("reports")
elif wildcard == "trackers":
@ -101,6 +114,10 @@ def main():
print("graph_vlabel trackers")
print("graph_category exodus")
print("trackers.label Trackers")
if os.getenv("warning") is not None:
print("trackers.warning " + os.getenv("warning"))
if os.getenv("critical") is not None:
print("trackers.critical " + os.getenv("critical"))
else:
print_count("trackers")