<font size=2 face="sans-serif">Hello Jim and thanks for your answer!</font>
<br>
<br><font size=2 face="sans-serif">I have double checked the files in /tmp
created by the script and they are all owned by nagios group and nagios
user, so fully writeable.</font>
<br>
<br><font size=2 face="sans-serif">The actual check interval of the port
is 20 seconds ( I check every 2 units and the time unit is 10 seconds in
the nagios.cfg). The correct value for the plugin time is in this case
20s?</font>
<br>
<br><font size=2 face="sans-serif">I will give it a try with making the
normal check interval and retry interval at the same value.</font>
<br>
<br><font size=2 face="sans-serif">Cheers!</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:      
 </font><font size=1 face="sans-serif">Jim Avery <jim@jimavery.me.uk></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:      
 </font><font size=1 face="sans-serif">Nagios Users List <nagios-users@lists.sourceforge.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:      
 </font><font size=1 face="sans-serif">09/04/2011 01:27 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">Re: [Nagios-users]
check_snmp_int - No usable data on file</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>> Hello,<br>
><br>
> I am using check_snmp_plugin to monitor a couple of switches. The
command<br>
> template I use is:<br>
><br>
>  $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $USER5$ -2 -r
-n $ARG1$ -fY<br>
> -kqB -g -w $ARG2$ -c $ARG3$ -d $ARG4$<br>
><br>
> And the particular one for a certain port/device is:<br>
><br>
> # Monitor bandwidth and port status - port 23<br>
> define service{<br>
>         use          
             generic-service  
             ; Inherit<br>
> values from a template<br>
>         Host_name        
       switch1<br>
>         Service_description      
 Port 23.<br>
>         Check_command<br>
>  check_snmp_int!"GigabitEthernet0/23"!600000,600000,100,100,100000,10!800000,800000,200,200,200000,20!11<br>
>         Normal_check_interval      
 2                ; Check
the service<br>
> every 2 units under normal conditions<br>
>         retry_check_interval<-->1  
             ; Re-check the service<br>
> every one unit until its final/hard state is determined<br>
>         }<br>
><br>
><br>
> The interval length in nagios.cfg is set to:<br>
><br>
> interval_length=10<br>
><br>
> Can you please let me know a good value for the -d parameter in order
to<br>
> tweak the check_snmp_int.pl script properly?<br>
<br>
<br>
I believe that with check_interval of 2 minutes, you need -d 120.<br>
<br>
With the plugin working in this way, you need to set your<br>
retry_interval to be the same as your check_interval, otherwise the -d<br>
value won't be correct for the interval when the check starts<br>
retrying!<br>
<br>
Note that in Nagios 3, the syntax "normal_check_interval" and<br>
"retry_check_interval" is deprecated.  The equivalent directives
are<br>
now simply "check_interval" and "retry_interval".  See:<br>
</font></tt><a href=http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service><tt><font size=2>http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service</font></tt></a><tt><font size=2><br>
<br>
If you are still having problems with the "No usable data on file"<br>
error, make sure the files created by the plugin are writeable by the<br>
user 'nagios'  (if I recall they are under /tmp or maybe /var/tmp
- I<br>
don't have my nagios system to hand to check for sure).  If you have<br>
been testing the plugin from the command line while logged in as<br>
another user, it's quite likely the files will have the wrong<br>
ownership/permissions in which case you can simply delete them to let<br>
nagios recreate them next time it runs the plugin.<br>
<br>
------------------------------------------------------------------------------<br>
Special Offer -- Download ArcSight Logger for FREE!<br>
Finally, a world-class log management solution at an even better <br>
price-free! And you'll get a free "Love Thy Logs" t-shirt when
you<br>
download Logger. Secure your free ArcSight Logger TODAY!<br>
</font></tt><a href=http://p.sf.net/sfu/arcsisghtdev2dev><tt><font size=2>http://p.sf.net/sfu/arcsisghtdev2dev</font></tt></a><tt><font size=2><br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
</font></tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><tt><font size=2>https://lists.sourceforge.net/lists/listinfo/nagios-users</font></tt></a><tt><font size=2><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</font></tt>
<br>