mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-08 11:47 pm

[dw-ops] Add mogstored/mogilefsd monitoring to Nagios.

[commit: http://hg.dwscoalition.org/dw-ops/rev/c803f0a19d45]

Add mogstored/mogilefsd monitoring to Nagios.

Patch by [staff profile] mark.

Files modified:
  • nagios/conf.d/config/commands.cfg
  • nagios/conf.d/config/contacts.cfg
  • nagios/conf.d/services/db.cfg
  • nagios/conf.d/services/mog.cfg
--------------------------------------------------------------------------------
diff -r 5b22d049e0b7 -r c803f0a19d45 nagios/conf.d/config/commands.cfg
--- a/nagios/conf.d/config/commands.cfg	Mon Apr 06 01:41:01 2009 +0000
+++ b/nagios/conf.d/config/commands.cfg	Wed Apr 08 23:47:31 2009 +0000
@@ -26,3 +26,17 @@ define command {
     command_name  dw_check_memcache
     command_line  $USER1$/check_tcp -H $HOSTADDRESS$ -p 11211
 }
+
+
+# check mogstored machine to ensure it's listening
+define command {
+    command_name  dw_check_mogstored
+    command_line  $USER1$/check_http -H $HOSTADDRESS$ -p 7500 -u /
+}
+
+
+# check mogilefsd machine to ensure it's listening
+define command {
+    command_name  dw_check_mogilefsd
+    command_line  $USER1$/check_tcp -H $HOSTADDRESS$ -p 7001
+}
diff -r 5b22d049e0b7 -r c803f0a19d45 nagios/conf.d/config/contacts.cfg
--- a/nagios/conf.d/config/contacts.cfg	Mon Apr 06 01:41:01 2009 +0000
+++ b/nagios/conf.d/config/contacts.cfg	Wed Apr 08 23:47:31 2009 +0000
@@ -28,7 +28,7 @@ define contact {
     host_notification_options       d,r
     service_notification_commands   notify-service-by-email
     host_notification_commands      notify-host-by-email
-    email                           smitty@gmail.com
+    email                           5103786969@txt.att.net
 }
 
 
diff -r 5b22d049e0b7 -r c803f0a19d45 nagios/conf.d/services/db.cfg
--- a/nagios/conf.d/services/db.cfg	Mon Apr 06 01:41:01 2009 +0000
+++ b/nagios/conf.d/services/db.cfg	Wed Apr 08 23:47:31 2009 +0000
@@ -22,3 +22,13 @@ define service {
     use                             generic-service
 }
 
+
+# verify that mogilefsd is responding
+define service {
+    hostgroup_name                  db
+    service_description             MogileFSd
+    check_command                   dw_check_mogilefsd
+    use                             generic-service
+}
+
+
diff -r 5b22d049e0b7 -r c803f0a19d45 nagios/conf.d/services/mog.cfg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nagios/conf.d/services/mog.cfg	Wed Apr 08 23:47:31 2009 +0000
@@ -0,0 +1,24 @@
+#
+# mog.cfg
+#
+# Checks we run on mogile storage nodes.
+#
+# Authors:
+#      Mark Smith <mark@dreamwidth.org>
+#
+# Copyright (c) 2009 by Dreamwidth Studios, LLC.
+#
+# This program is free software; you may redistribute it and/or modify it under
+# the same terms as Perl itself.  For a copy of the license, please reference
+# 'perldoc perlartistic' or 'perldoc perlgpl'.
+#
+
+
+# verify that mogstored is responding to HTTP
+define service {
+    hostgroup_name                  mog
+    service_description             Mogstored
+    check_command                   dw_check_mogstored
+    use                             generic-service
+}
+
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org