<pclass="SectionBody">Get the folowings modules (tar.gz format) on
<ahref="http://www.cpan.org">www.cpan.org</a></p>
<pclass="SectionBody">- Crypt::DES<br>
- Digest::MD5<br>
- Digest::SHA1<br>
- Digest::HMAC<br>
- Net::SNMP<br>
<br>
for each one (you must install Net::SNMP at the end) : <br>
<b>tar zxf <module>.tar.gz<br>
cd <module><br>
perl Makefile.pl<br>
make test<br>
make install</b></p>
<pclass="SectionTitle"><aname="FAQ3"></a>What are the supported
platforms to run the scripts on ?</p>
<pclass="SectionBody">Most Linux, maybe some unixes and maybe Cygwin.<br>
Actually anything you can run perl on.<br>
If you can install the latest Net::SNMP module, then the perl version
should be OK.</p>
<pclass="SectionTitle"><aname="FAQ4"></a>How do I get help on the
options ?</p>
<pclass="SectionBody">Just run <b><script> -h </b>on the command
line.<br>
<br>
</p>
<pclass="SectionTitle"><aname="FAQ5"></a>Return code of X is out
of bounds</p>
<pclass="SectionBody">Have a look at : <ahref="http://www.nagios.org/faqs/viewfaq.php?faq_id=17">http://www.nagios.org/faqs/viewfaq.php?faq_id=17</a></p>
<pclass="SectionBody">In case of return code 127, try putting perl
<pclass="SectionBody">After the session has been initialized. </p>
<pclass="SectionTitle"><aname="FAQ10"></a>No usable data on file (X rows)</p>
<pclass="SectionBody">Scripts like check_snmp_int need to store data when they get a SNMP counter so they can outpout readable data like bandwidth, cpu, etc....</p>
<pclass="SectionBody">For example, to output a bandwidth with an octet counter, check_snmp_int will store data every time it is run. It will also read the previous data, and try to get data old enough to make a correct average. By default, it needs data which was produced 5 minutes ago.</p>
<pclass="SectionBody">So, when you first run the script - or if you run it a long time ago -, it won't be able to get data old enough and will report an error (UNKNOWN status) saying the is "no usable data on file (X rows)".<br>
If you leave the 5 minutes default delta value, the script will need data wich is : <br>
- At least 4 minutes and 30 seconds old (5 min - 10%)<br>
- At most 15 minutes old (3 * 5 min) </p>
<pclass="SectionBody">You can change this 5 minutes value using the '-d <sec>' option. The script will then look for data which is at least <sec>-10% old and at most 3*<sec>. </p>
<pclass="SectionBody">This option will only tell to make an average on <sec> seconds, you can run the service every minute with Nagios, it will always get the newest value which is at least <sec>-10% old.<br>
The only thing you must check is that your service will at least run every 15 minutes, or the script will always output "unknown" as the value will be too old for him. </p>
<pclass="SectionTitle"><br>
<aname="FAQM3"></a>Are these scripts secure ?</p>
<pclass="SectionBody">Not at all ! You must secure the Nagios server.<br>
Nobody else than the nagios user should be allowed to even think
about running these scripts.<br>
</p>
<pclass="SectionTitle"><aname="FAQM1"></a>How can I get help ? Is
there a mailling list ? a forum ?</p>
<pclass="SectionBody">Go to the sourceforge project page for all this : <ahref=http://sourceforge.net/projects/nagios-snmp/>Nagios-snmp</a>