]> git.pld-linux.org Git - projects/nagios-config.git/commitdiff
- add resource.cfg
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 14 May 2005 13:13:01 +0000 (13:13 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 14 May 2005 13:13:01 +0000 (13:13 +0000)
svn-id: @5967

package.sh
resource.cfg [new file with mode: 0644]

index 8053573393f2dc62bea0307923fa11b141149250..a16243d151d35892d74438cb40c551efd1afb65c 100755 (executable)
@@ -8,7 +8,7 @@ checkcommands.cfg contactgroups.cfg contacts.cfg dependencies.cfg
 escalations.cfg hostextinfo.cfg hostgroups.cfg hosts.cfg misccommands.cfg
 serviceextinfo.cfg services.cfg timeperiods.cfg
 
-nagios.cfg cgi.cfg
+nagios.cfg cgi.cfg resource.cfg
 "
 
 s=0
diff --git a/resource.cfg b/resource.cfg
new file mode 100644 (file)
index 0000000..1739470
--- /dev/null
@@ -0,0 +1,36 @@
+###########################################################################
+#
+# RESOURCE.CFG - Sample Resource File for Nagios 
+#
+# Last Modified: 09-10-2003
+#
+# You can define $USERx$ macros in this file, which can in turn be used
+# in command definitions in your host config file(s).  $USERx$ macros are
+# useful for storing sensitive information such as usernames, passwords, 
+# etc.  They are also handy for specifying the path to plugins and 
+# event handlers - if you decide to move the plugins or event handlers to
+# a different directory in the future, you can just update one or two
+# $USERx$ macros, instead of modifying a lot of command definitions.
+#
+# The CGIs will not attempt to read the contents of resource files, so
+# you can set restrictive permissions (600 or 660) on them.
+#
+# Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)
+#
+# Resource files may also be used to store configuration directives for
+# external data sources like MySQL...
+#
+###########################################################################
+
+# Sets $USER1$ to be the path to the plugins
+$USER1$=/usr/lib/nagios/plugins
+
+# Sets $USER2$ to be the path to event handlers
+$USER2$=/usr/lib/nagios/eventhandlers
+
+# Store MySQL usernames/password (hidden from the CGIs)
+$USER3$=mysql
+#$USER4$=
+
+# This is used for SNMP v1 community string in checkcommands.cfg
+$USER5$=public
This page took 0.096209 seconds and 4 git commands to generate.