[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
mark.
Files modified:
Add mogstored/mogilefsd monitoring to Nagios.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
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 +} + --------------------------------------------------------------------------------