1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>13.4. resource.cfg</title>
<link rel="stylesheet" href="../stylesheets/icinga-docs.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<meta name="keywords" content="Supervision, Icinga, Nagios, Linux">
<link rel="home" href="index.html" title="Icinga Version 1.14 Documentation">
<link rel="up" href="ch13.html" title="Chapter 13. Icinga Samples">
<link rel="prev" href="sample-cgi.html" title="13.3. cgi.cfg">
<link rel="next" href="sample-httpd.html" title="13.5. httpd.conf">
<script src="../js/jquery-min.js" type="text/javascript"></script><script src="../js/icinga-docs.js" type="text/javascript"></script>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<CENTER><IMG src="../images/logofullsize.png" border="0" alt="Icinga" title="Icinga"></CENTER>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">13.4. resource.cfg</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="sample-cgi.html">Prev</a> </td>
<th width="60%" align="center">Chapter 13. Icinga Samples</th>
<td width="20%" align="right"> <a accesskey="n" href="sample-httpd.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="section" title="13.4. resource.cfg">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="sample-resource"></a>13.4. <a name="sample_resource"></a>resource.cfg</h2></div></div></div>
<pre class="programlisting">###########################################################################
#
# RESOURCE.CFG - Sample Resource File for Icinga
#
# 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,
# snmp communities, 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 file by default,
# so you can set restrictive permissions (600 or 660) on them. This might
# need a change when enabling full command line resolution for config.cgi
#
# Icinga supports up to 256 $USERx$ macros ($USER1$ through $USER256$)
#
# 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$=@PLUGINDIR@
# Sets $USER2$ to be the path to event handlers
#$USER2$=@PLUGINDIR@/eventhandlers
# Store some usernames and passwords (hidden from the CGIs)
#$USER3$=someuser
#$USER4$=somepassword</pre>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="sample-cgi.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="ch13.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="sample-httpd.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">13.3. cgi.cfg </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> 13.5. httpd.conf</td>
</tr>
</table>
</div>
<P class="copyright">© 1999-2009 Ethan Galstad, 2009-2017 Icinga Development Team, https://www.icinga.com</P>
</body>
</html>
|