Skip to content

Instantly share code, notes, and snippets.

@omadjoudj
Created October 15, 2012 01:19
Show Gist options
  • Save omadjoudj/3890363 to your computer and use it in GitHub Desktop.
Save omadjoudj/3890363 to your computer and use it in GitHub Desktop.
Add nagios check for Cgit on pkgs01
diff --git a/modules/nagios/files/nagios/services/websites.cfg b/modules/nagios/files/nagios/services/websites.cfg
index 4aaa5cd..69b78a8 100644
--- a/modules/nagios/files/nagios/services/websites.cfg
+++ b/modules/nagios/files/nagios/services/websites.cfg
@@ -187,3 +187,10 @@ define service {
check_command check_website!status-fedora2.rhcloud.com!/index.html!All systems go
use websitetemplate
}
+
+define service {
+ host_name pkgs01
+ service_description Cgit on pkgs01
+ check_command check_website!pkgs01.phx2.fedoraproject.org!/cgit/!Description
+ use websitetemplate
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment