Add warning and critical configurations
This commit is contained in:
parent
e3f08308ab
commit
78bcdf3627
|
@ -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_url https://reports.exodus-privacy.eu.org
|
||||||
env.exodus_token your-api-token
|
env.exodus_token your-api-token
|
||||||
|
|
||||||
|
# Warning an critical values for suffixes
|
||||||
|
[exodus_applications]
|
||||||
|
env.warning 500
|
||||||
|
env.critical 5000
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=head1 AUTHORS
|
=head1 AUTHORS
|
||||||
|
@ -85,6 +90,10 @@ def main():
|
||||||
print("graph_vlabel applications")
|
print("graph_vlabel applications")
|
||||||
print("graph_category exodus")
|
print("graph_category exodus")
|
||||||
print("applications.label Applications")
|
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:
|
else:
|
||||||
print_count("applications")
|
print_count("applications")
|
||||||
elif wildcard == "reports":
|
elif wildcard == "reports":
|
||||||
|
@ -93,6 +102,10 @@ def main():
|
||||||
print("graph_vlabel reports")
|
print("graph_vlabel reports")
|
||||||
print("graph_category exodus")
|
print("graph_category exodus")
|
||||||
print("reports.label Reports")
|
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:
|
else:
|
||||||
print_count("reports")
|
print_count("reports")
|
||||||
elif wildcard == "trackers":
|
elif wildcard == "trackers":
|
||||||
|
@ -101,6 +114,10 @@ def main():
|
||||||
print("graph_vlabel trackers")
|
print("graph_vlabel trackers")
|
||||||
print("graph_category exodus")
|
print("graph_category exodus")
|
||||||
print("trackers.label Trackers")
|
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:
|
else:
|
||||||
print_count("trackers")
|
print_count("trackers")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue