~ubuntu-branches/ubuntu/precise/nagios-snmp-plugins/precise

« back to all changes in this revision

Viewing changes to doc/faq.html

  • Committer: Bazaar Package Importer
  • Author(s): Jan Wagner
  • Date: 2007-04-25 22:00:50 UTC
  • Revision ID: james.westby@ubuntu.com-20070425220050-tesozvdx9rwgo0j4
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
<HEAD>
 
3
<TITLE>Nagios plugins</TITLE>
 
4
<META NAME="Keywords" CONTENT="nagios,plugins,perl,snmp,proy">
 
5
<STYLE type="text/css">
 
6
<!--
 
7
        .Default { font-family: verdana,arial,serif; font-size: 10pt; }
 
8
        .ProgramTitle { font-family: verdana,arial,serif; font-size: 18pt; font-weight: bold;}
 
9
        .Copyright { font-family: verdana,arial,serif; font-size: 10pt;}
 
10
        .Email { font-family: verdana,arial,serif; font-size: 10pt;}
 
11
        .NewsItem { font-family: verdana,arial,serif; font-size: 8pt; }
 
12
        .NewsItemOdd { font-family: verdana,arial,serif; font-size: 8pt; background-color: #DBDBDB;}
 
13
        .NewsItemEven { font-family: verdana,arial,serif; font-size: 8pt; background-color: #C4C2C2;}
 
14
        .NewsItemUrgent { font-family: verdana,arial,serif; font-size: 8pt; background-color: #ccff99;}
 
15
        .NewsItemDate { font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; }
 
16
        .SectionTitle { font-family: verdana,arial,serif; font-size: 9pt; font-weight: bold; text-decoration: underline;}
 
17
        .SectionBody { font-family: verdana,arial,serif; font-size: 8pt; }
 
18
        .ModificationDate { font-family: verdana,arial,serif; font-size: 7pt; }
 
19
        .Disclaimer { font-family: verdana,arial,serif; font-size: 8pt; }
 
20
                A.SideNavBarItem { font-family: verdana,arial,serif; background-color : black; color: #e7e7e7; font-size: 9pt; font-weight: bold; text-decoration: none; }
 
21
                A.SideNavBarItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }
 
22
                A.SideNavBarHotItem { font-family: verdana,arial,serif; background-color : black; color: #ffcc66; font-size: 9pt; font-weight: bold; text-decoration: none; }
 
23
                A.SideNavBarHotItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }
 
24
-->      
 
25
</STYLE>
 
26
</HEAD>
 
27
 
 
28
<body  background="img/sideback.jpg" bgcolor="#FFFFFF" text="black" class="Default">
 
29
 
 
30
<!--   background="img/sideback.jpg" -->
 
31
 
 
32
<table border="0" height="1477">
 
33
 
 
34
  <tr>
 
35
 
 
36
    <td valign=top> 
 
37
 
 
38
      <!-- Begin Side Bar -->
 
39
 
 
40
      <table border="0" width="125" valign=top>
 
41
        <tr> 
 
42
          <td><a href="http://nagios.manubulon.com/" class="SideNavBarItem" >Home</a></td>
 
43
        </tr>
 
44
        <tr> 
 
45
          <td></td>
 
46
        </tr>
 
47
        <tr> 
 
48
          <td><BR>
 
49
          </td>
 
50
        </tr>
 
51
        <tr> 
 
52
          <td> </td>
 
53
        </tr>
 
54
      </table>
 
55
 
 
56
<!-- End Side Bar -->
 
57
 
 
58
    </td>
 
59
 
 
60
    <td valign=top>
 
61
 
 
62
      <table border="0" valign=top height="1452">
 
63
 
 
64
        <tr> 
 
65
 
 
66
          <td class="ProgramTitle"> FAQ</td>
 
67
 
 
68
        </tr>
 
69
 
 
70
        <tr> 
 
71
 
 
72
          <td> 
 
73
 
 
74
            <p class="NewsItemDate">&nbsp;</p>
 
75
 
 
76
            <p class="SectionTitle"> Last update : Jan 11 2007</p>
 
77
 
 
78
          </td>
 
79
 
 
80
        </tr>
 
81
 
 
82
        <tr> 
 
83
 
 
84
          <td valign="top"> 
 
85
 
 
86
            <p class="SectionTitle">&nbsp;</p>
 
87
            <p class="SectionTitle"><b>FIRST, </b>look at the web page associated 
 
88
              with every script.</p>
 
89
            <p class="SectionBody"><b>Running the scripts :</b></p>
 
90
            <p class="SectionBody">- <a href="#FAQ1">The scripts outputs &quot;Can't 
 
91
              locate Net/SNMP.pm in @INC.....&quot;</a></p>
 
92
            <p class="SectionBody">-<a href="#FAQ2"> How do I install Net::SNMP 
 
93
              perl module</a></p>
 
94
            <p class="SectionBody">- <a href="#FAQ3">What are the supported platforms 
 
95
              to run the scripts on ?</a></p>
 
96
            <p class="SectionBody">- <a href="#FAQ4">How do I get help on the 
 
97
              options ?</a></p>
 
98
            <p class="SectionBody">- <a href="#FAQ5">Return code of X is out of 
 
99
              bounds</a></p>
 
100
            <p class="SectionBody">- <a href="#FAQ6">Are these plugins compatible 
 
101
              with Nagios 2.0 ?</a></p>
 
102
            <p class="SectionBody">- <a href="#FAQ7"> ERROR: XXXXXX : Expected 
 
103
              OBJECT IDENTIFIER in dotted notation. </a></p>
 
104
            <p class="SectionBody">- <a href="#FAQ8">&quot;No Output&quot; using 
 
105
              Nagios 2</a></p>
 
106
            <p class="SectionBody">- <a href="#FAQ9">Getting : &quot;ERROR: Size 
 
107
              table :Message size exceeded buffer maxMsgSize&quot;</a></p>
 
108
            <p class="SectionBody"><b>Misc<br>
 
109
              </b></p>
 
110
            <p class="SectionBody">- <a href="#FAQM3">Are these scripts secure 
 
111
              ?</a></p>
 
112
            <p class="SectionBody">- <a href="#FAQM1">How can I get help ? Is 
 
113
              there a mailling list ? a forum ?</a></p>
 
114
            <p class="SectionBody">- <a href="#FAQM2">Can I donate to help this 
 
115
              project ?</a></p>
 
116
            <hr>
 
117
            <p class="SectionTitle"><a name="FAQ1"></a>The scripts outputs &quot;Can't 
 
118
              locate Net/SNMP.pm in @INC.....&quot;</p>
 
119
            <p class="SectionBody">You don't have Net::SNMP installed, see below</p>
 
120
            <p class="SectionTitle"><a name="FAQ2"></a>How do I install Net::SNMP 
 
121
              perl module ?</p>
 
122
            <p class="SectionBody">There are 2 ways of doing this </p>
 
123
            <p class="SectionBody"><b>1) By CPAN (best)</b></p>
 
124
            <p class="SectionBody">on command line, as root : <br>
 
125
              <br>
 
126
              [your_host]# <b>perl -MCPAN -e shell</b><br>
 
127
              cpan shell -- CPAN exploration and modules installation (v1.76)<br>
 
128
              ReadLine support enabled<br>
 
129
              cpan&gt; <b>install Net::SNMP</b><br>
 
130
            </p>
 
131
            <p class="SectionBody">If it's the first time you run CPAN, it will 
 
132
              probably ask you some (simple) questions.</p>
 
133
            <p class="SectionBody">CPAN will also ask you to satisfy some dependencies 
 
134
              (Crypt::DES, Digest::MD5, etc..).</p>
 
135
            <p class="SectionBody"><b>2) &quot;By hand&quot;</b><br>
 
136
            </p>
 
137
            <p class="SectionBody">Get the folowings modules (tar.gz format) on 
 
138
              <a href="http://www.cpan.org">www.cpan.org</a></p>
 
139
            <p class="SectionBody">- Crypt::DES<br>
 
140
              - Digest::MD5<br>
 
141
              - Digest::SHA1<br>
 
142
              - Digest::HMAC<br>
 
143
              - Net::SNMP<br>
 
144
              <br>
 
145
              for each one (you must install Net::SNMP at the end) : <br>
 
146
              <b>tar zxf &lt;module&gt;.tar.gz<br>
 
147
              cd &lt;module&gt;<br>
 
148
              perl Makefile.pl<br>
 
149
              make test<br>
 
150
              make install</b></p>
 
151
            <p class="SectionTitle"><a name="FAQ3"></a>What are the supported 
 
152
              platforms to run the scripts on ?</p>
 
153
            <p class="SectionBody">Most Linux, maybe some unixes and maybe Cygwin.<br>
 
154
              Actually anything you can run perl on.<br>
 
155
              If you can install the latest Net::SNMP module, then the perl version 
 
156
              should be OK.</p>
 
157
            <p class="SectionTitle"><a name="FAQ4"></a>How do I get help on the 
 
158
              options ?</p>
 
159
            <p class="SectionBody">Just run <b>&lt;script&gt; -h </b>on the command 
 
160
              line.<br>
 
161
              <br>
 
162
            </p>
 
163
            <p class="SectionTitle"><a name="FAQ5"></a>Return code of X is out 
 
164
              of bounds</p>
 
165
            <p class="SectionBody">Have a look at : <a href="http://www.nagios.org/faqs/viewfaq.php?faq_id=17">http://www.nagios.org/faqs/viewfaq.php?faq_id=17</a></p>
 
166
            <p class="SectionBody">In case of return code 127, try putting perl 
 
167
              in the command line definition : </p>
 
168
            <p class="SectionBody"> define command{<br>
 
169
              command_name check_disk<br>
 
170
              command_line <b>/usr/bin/perl</b> $USER1$/check_snmp_storage.pl 
 
171
              -C $ARG1$ [........]<br>
 
172
              }<br>
 
173
            </p>
 
174
            <p class="SectionTitle"><a name="FAQ6"></a>Are these plugins compatible 
 
175
              with Nagios 2.0 ?</p>
 
176
            <p class="SectionBody">Yes.</p>
 
177
            <p class="SectionTitle"><a name="FAQ7"></a>ERROR: XXXXXX : Expected OBJECT IDENTIFIER in dotted notation.
 
178
              </p>
 
179
            <p class="SectionBody">Upgrade your Net::SNMP module version (5 is good, 4 maybe OK, 3 gives this error) <br>
 
180
              This happens with Debian Woody (Net::SNMP version 3.6).<br>
 
181
              I have special patches if you can't upgrade : contact me.</p>
 
182
            <p class="SectionTitle"><a name="FAQ8"></a>&quot;No Output&quot; using 
 
183
              Nagios 2</p>
 
184
            <p class="SectionBody">It's a &quot;bug&quot; of embeded perl. It 
 
185
              has been corrected in latest Nagios releases.</p>
 
186
            <p class="SectionBody">You can :<br>
 
187
            </p>
 
188
            <p class="SectionBody">- Add a patch if your nagios release is old. 
 
189
              Here is a patch made by Gavin Carr for the p1.pl file to correct 
 
190
              this (it should be in nagios CVS shortly). <a href="http://nagios.manubulon.com/p1-print.pl.patch">http://nagios.manubulon.com/p1-print.pl.patch</a> 
 
191
            </p>
 
192
            <p class="SectionBody">- Upgrade Nagios.<br>
 
193
              <br>
 
194
              - add &quot;/usr/bin/perl&quot; before the script command so Nagios 
 
195
              won't use embeded perl. </p>
 
196
            <p class="SectionTitle"><a name="FAQ9"></a>Getting : &quot;ERROR: 
 
197
              Size table :Message size exceeded buffer maxMsgSize&quot;</p>
 
198
            <p class="SectionBody">Your snmp table is too big.</p>
 
199
            <p class="SectionBody">Some of my scripts (check_snmp_storage and 
 
200
              check_snmp_process) now have an option (-o) to set this directly 
 
201
              on command line (thx to Makina Corpus for the patch).</p>
 
202
            <p class="SectionBody">In other scripts, try adding :</p>
 
203
            <p class="SectionBody"> $session-&gt;max_msg_size(5000);<br>
 
204
            </p>
 
205
            <p class="SectionBody">After the session has been initialized. </p>
 
206
            <p class="SectionTitle"><br>
 
207
              <a name="FAQM3"></a>Are these scripts secure ?</p>
 
208
            <p class="SectionBody">Not at all ! You must secure the Nagios server.<br>
 
209
              Nobody else than the nagios user should be allowed to even think 
 
210
              about running these scripts.<br>
 
211
            </p>
 
212
            <p class="SectionTitle"><a name="FAQM1"></a>How can I get help ? Is 
 
213
              there a mailling list ? a forum ?</p>
 
214
            <p class="SectionBody">Go to the sourceforge project page for all this : <a href=http://sourceforge.net/projects/nagios-snmp/>Nagios-snmp</a>
 
215
            <p class="SectionBody"><a name="FAQM2"></a><span class="SectionTitle">Can 
 
216
              I donate to help this project ?</span></p>
 
217
            <p class="SectionBody">Of course you can, I just haven't got any idea 
 
218
              of how, so just send a postcard to my son (Jolan) with a nice drawing (or buy a cookie to your son/daughter/nephew/grand-ma...).<br> 
 
219
              You can get my postal address on my resume (<a href="http://www.manubulon.com/cvpproy.htm">www.manubulon.com/cvpproy.htm</a>).<br>
 
220
              He will answer you when he knows how to write (in several years).</p>
 
221
            </td>
 
222
 
 
223
        </tr> 
 
224
        <tr>
 
225
          <td>
 
226
             <p class="SectionBody">This project is also hosted by : <br>
 
227
 
 
228
             <A href="http://sourceforge.net/projects/nagios-snmp/"> <IMG src="http://sourceforge.net/sflogo.php?group_id=134917&type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" /></A>
 
229
          </p></td>
 
230
        </tr>
 
231
 
 
232
      </table>
 
233
 
 
234
    </td>
 
235
 
 
236
  </tr>
 
237
 
 
238
</table>
 
239
 
 
240
<p>&nbsp;</p>
 
241
 
 
242
</BODY>
 
243
 
 
244
</HTML>
 
245