mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Merge pull request #1322 from codeurimpulsif/exodus_warning_critical
[exodus_] Add warning and critical configurations
This commit is contained in:
commit
bb6c0e0b18
1 changed files with 17 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue