This file is indexed.

/usr/share/doc/nagios-snmp-plugins/html/snmp_cpfw.html is in nagios-snmp-plugins 1.1.1-8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
<HTML>

<HEAD>

<TITLE>Nagios plugins</TITLE>

<META NAME="Keywords" CONTENT="nagios,plugins,perl,snmp,proy">

<STYLE type="text/css">

<!--

        .Default { font-family: verdana,arial,serif; font-size: 10pt; }

        .ProgramTitle { font-family: verdana,arial,serif; font-size: 18pt; font-weight: bold;}

        .Copyright { font-family: verdana,arial,serif; font-size: 10pt;}

        .Email { font-family: verdana,arial,serif; font-size: 10pt;}

        .NewsItem { font-family: verdana,arial,serif; font-size: 8pt; }

        .NewsItemOdd { font-family: verdana,arial,serif; font-size: 8pt; background-color: #DBDBDB;}

        .NewsItemEven { font-family: verdana,arial,serif; font-size: 8pt; background-color: #C4C2C2;}

        .NewsItemUrgent { font-family: verdana,arial,serif; font-size: 8pt; background-color: #ccff99;}

        .NewsItemDate { font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; }

        .SectionTitle { font-family: verdana,arial,serif; font-size: 9pt; font-weight: bold; text-decoration: underline;}

        .SectionBody { font-family: verdana,arial,serif; font-size: 8pt; }

        .ModificationDate { font-family: verdana,arial,serif; font-size: 7pt; }

        .Disclaimer { font-family: verdana,arial,serif; font-size: 8pt; }

		A.SideNavBarItem { font-family: verdana,arial,serif; background-color : black; color: #e7e7e7; font-size: 9pt; font-weight: bold; text-decoration: none; }

		A.SideNavBarItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }

		A.SideNavBarHotItem { font-family: verdana,arial,serif; background-color : black; color: #ffcc66; font-size: 9pt; font-weight: bold; text-decoration: none; }

		A.SideNavBarHotItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }

-->  

</STYLE>

</HEAD>

<body  background="img/sideback.jpg" bgcolor="#FFFFFF" text="black" class="Default">

<!--   background="img/sideback.jpg" -->

<table border="0">

  <tr> 

    <td valign=top> 

      <!-- Begin Side Bar -->

      <table border="0" width="125" valign=top>

        <tr> 

          <td><a href="http://nagios.manubulon.com/" class="SideNavBarItem" >Home</a></td>

        </tr>

        <tr> 

          <td></td>

        </tr>

        <tr> 

          <td><BR>

          </td>

        </tr>

        <tr> 

          <td> </td>

        </tr>

      </table>

      <!-- End Side Bar -->

    </td>

    <td valign=top> 

      <table border="0" valign=top>

        <tr> 

          <td class="ProgramTitle"> Snmp Checkpoint FW-1 check</td>

        </tr>

        <tr> 

          <td> 

            <p class="NewsItemDate">Script : check_snmp_cpfw.pl</p>

            <p class="SectionTitle"> Last update : April 19 2007</p>

          </td>

        </tr>

        <tr> 

          <td valign="top"> 

            <p class="SectionTitle">Description : </p>

            <p class="SectionBody">Checks by snmp v1, v2c or v3 some modules of 
              Checkpoint FW-1 filtering or management module :</p>

            <p class="SectionBody">You can choose to check 1, 2, 3 or all 4 modules. 

              Each module will be checked independently and critical state will 

              be returned if one of them is not OK.</p>

            <p class="SectionBody">- Firewall (on filtering firewall) : </p>

            <p class="SectionBody">Checks policy state : must be installed<br>

              Can check installed policy name : you mut provide the exact name 

              of the policy (-p = &lt;policy name&gt;)<br>

              Can check connections : warning and maximum levels must be provided 

              ( -c=&lt;warn&gt;,&lt;crit&gt;)</p>

            <p class="SectionBody">- SVN</p>

            <p class="SectionBody">Checks the svan status code (must be &quot;OK&quot;) 

              of SVN</p>

            <p class="SectionBody">- Management</p>

            <p class="SectionBody">Checks the management state (&quot;active&quot;) 

              and if management is alive.</p>

            <p class="SectionBody">- High availability</p>

            <p class="SectionBody">Checks the HA state : <br>
              - &quot;active&quot; on IPSO &amp; master on SPLAT (default)<br>
              - &quot;standby&quot; on SPLAT<br>
              Use check_snmp_vrrp.pl for checks on active/standby or IPSO clusters 
              on IPSO<br>
              Check the blocking state (&quot;OK&quot;)<br>
              Checks the state of all HA softs, usually : Synchronization,Filter, 
              cphad and fwd.</p>
            <p class="SectionBody"><span class="SectionTitle">SNMP Login</span><br>
            </p>
            <p class="SectionBody">See <a href="index_info.html">snmp info page</a></p>

            <p class="SectionTitle">Requirements :</p>

            <p class="SectionBody">- On the Checkpoint Firewall : SNMP extentions 

              must be active</p>

            <p class="SectionBody">- Perl in /usr/bin/perl - or just run 'perl 

              script' <br>

              - Net::SNMP<br>

              - file 'utils.pm' in plugin diretory (/usr/local/nagios/libexec)</p>

            <p class="SectionBody"><a href="index_commands.html" class="SectionTitle">Configurations 

              examples</a><br>

            </p>

            <p class="SectionBody"><a href="check_snmp_cpfw.pl" class="SectionTitle">Dowload 
              lastest version : 1.2.1</a></p>

            <p class="NewsItemDate"><span class="SectionTitle">Changelog</span> 
              : On CVS repository on sourceforge : <a href="http://nagios-snmp.cvs.sourceforge.net/nagios-snmp/plugins/">http://nagios-snmp.cvs.sourceforge.net/nagios-snmp/plugins/</a>.</p>

            <p class="SectionTitle">Examples :</p>

            <p class="SectionBody"><br>

              All examples below are considering the script is local directory. 

              Host to be checked is 127.0.0.1 with snmp community &quot;public&quot;.</p>

            <table border="1" cellspacing="5">

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <p>Get help 

                </td>

                <td class="SectionBody" width="387"> 

                  <p>./check_snmp_cpfw.pl <b>-h</b></p>

                </td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282">snmpv3 login</td>

                <td class="SectionBody" width="387">./check_snmp_cpfw.pl -H 127.0.0.1 

                  <b>-l login -x passwd .....</b></td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <p>Check firewall / HA / SVN - for a HA filtering module - 

                </td>

                <td class="SectionBody" width="387"> 

                  <p>./check_snmp_cpfw.pl -H 127.0.0.1 -C public <b>-swa</b></p>

                </td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <p align="right">Result example : 

                </td>

                <td class="SectionBody" width="387"> 

                  <p>FW : OK / SVN : OK / HA : OK / CPFW Status : OK</p>

                </td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <p>Check SVN/Mgmt - for a management - 

                </td>

                <td class="SectionBody" width="387"> 

                  <p>./check_snmp_cpfw.pl -H 127.0.0.1 -C public <b>-sm</b></p>

                </td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <div align="right">Result example : </div>

                </td>

                <td class="SectionBody" width="387">SVN : OK / MGMT : OK / CPFW 

                  Status : OK</td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282">Check policy 

                  name </td>

                <td class="SectionBody" width="387">./check_snmp_cpfw.pl -H 127.0.0.1 

                  -C public <b>-w -p prod</b></td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <p align="right">Result example : </p>

                </td>

                <td class="SectionBody" width="387">FW : OK / CPFW Status : OK</td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <div align="right">Same with another policy installed : </div>

                </td>

                <td class="SectionBody" width="387">FW : Policy installed : Standard 

                  / CPFW Status : CRITICAL</td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282">Check number 

                  of active connection with performance data output</td>

                <td class="SectionBody" width="387">./check_snmp_cpfw.pl -H 127.0.0.1 

                  -C public <b>-w -c 1000,5000 -f</b></td>

              </tr>

              <tr> 

                <td class="NewsItemDate" valign = top width="282"> 

                  <div align="right">Result example : </div>

                </td>

                <td class="SectionBody" width="387">FW : OK / CPFW Status : OK 

                  | fw_connexions=340</td>

              </tr>

            </table>

            <p class="SectionBody">&nbsp;</p>

            <p class="NewsItemDate">Output of check_snmp_cpfw.pl -h</p>

            <table border="1" cellspacing="5">

              <tr> 

                <td class="SectionBody" valign = top> 
                  <p class="SectionBody">SNMP Checkpoint FW-1 Monitor for Nagios 
                    version 1.2.1<br>
                    GPL Licence, (c)2004-2007 - Patrick Proy
                  <p>Usage: ./check_snmp_cpfw.pl [-v] -H &lt;host&gt; -C &lt;snmp_community&gt; 
                    [-2] | (-l login -x passwd [-X pass -L &lt;authp&gt;,&lt;privp&gt;]) 
                    [-s] [-w [-p=pol_name] [-c=warn,crit]] [-m] [-a [standby] 
                    ] [-f] [-p &lt;port&gt;] [-t &lt;timeout&gt;] [-V]<br>
                    -v, --verbose<br>
                    print extra debugging information (including interface list 
                    on the system)<br>
                    -h, --help<br>
                    print this help message<br>
                    -H, --hostname=HOST<br>
                    name or IP address of host to check<br>
                    -C, --community=COMMUNITY NAME<br>
                    community name for the host's SNMP agent (implies v1 protocol)<br>
                    2, --v2c<br>
                    Use snmp v2c<br>
                    -l, --login=LOGIN ; -x, --passwd=PASSWD<br>
                    Login and auth password for snmpv3 authentication <br>
                    If no priv password exists, implies AuthNoPriv <br>
                    -X, --privpass=PASSWD<br>
                    Priv password for snmpv3 (AuthPriv protocol)<br>
                    -L, --protocols=&lt;authproto&gt;,&lt;privproto&gt;<br>
                    &lt;authproto&gt; : Authentication protocol (md5|sha : default 
                    md5)<br>
                    &lt;privproto&gt; : Priv protocole (des|aes : default des) 
                    <br>
                    -s, --svn<br>
                    check for svn status<br>
                    -w, --fw<br>
                    check for fw status<br>
                    -a, --ha[=standby]<br>
                    check for ha status and node in &quot;active&quot; state<br>
                    If using SecurePlatform and monitoring a standby unit, put 
                    &quot;standby&quot; too<br>
                    -m, --mgmt<br>
                    check for management status<br>
                    -p, --policy=POLICY_NAME<br>
                    check if installed policy is POLICY_NAME (must have -w)<br>
                    -c, --connexions=WARN,CRIT<br>
                    check warn and critical number of connexions (must have -w)<br>
                    -f, --perfparse<br>
                    perfparse output (only works with -c)<br>
                    -P, --port=PORT<br>
                    SNMP port (Default 161)<br>
                    -t, --timeout=INTEGER<br>
                    timeout for SNMP (Default: Nagios default) <br>
                    -V, --version<br>
                    prints version number<br>
                  </p>
                </td>

              </tr>

            </table>

          </td>

        </tr>

        <tr> 

          <td> 

            <p class="SectionBody">This project is hosted on : <br>

              <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> 

            </p>

            <p class="SectionBody"> Nagios and the Nagios logo are registered 

              trademarks of Ethan Galstad.</p>

          </td>

        </tr>

      </table>

    </td>

  </tr>

</table>

</BODY>

</HTML>