Index: nagios.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nagios/nagios.install,v
retrieving revision 1.1
diff -u -p -r1.1 nagios.install
--- nagios.install	3 Feb 2009 16:50:59 -0000	1.1
+++ nagios.install	2 Jan 2010 00:58:01 -0000
@@ -7,3 +7,25 @@ function nagios_uninstall() {
   variable_del('nagios_updates');
   variable_del('nagios_ua');
 }
+
+/**
+ * Implementation of hook_requirements().
+ */
+function nagios_requirements($phase) {
+  $requirements = array();
+
+  if ($phase == 'runtime') {
+    // Raise warning if Nagios Unique ID has not been set yet.
+    if (variable_get('nagios_ua', 'Nagios') == 'Nagios') {
+      $requirements['nagios'] = array(
+        'title' => t('Nagios module'),
+        'value' => t('Not configured'),
+        'description' => t('Nagios module has not been configured yet. Please configure its settings from the <a href="@url">Nagios settings page</a>.', array('@url' => url('admin/settings/nagios'))),
+        'severity' => REQUIREMENT_ERROR,
+      );
+    }
+  }
+
+  return $requirements;
+}
+
