<div dir="ltr">Hello
Marc,<br><br>Thanks for your help !<br>It was a problem with $USER4$=public.<br>There is a tabulation after public ...<br>I delete it and it works.<br>Best Regards<br><br><br><div class="gmail_quote">2008/7/30 Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com" target="_blank">marc@ena.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
On Jul 30, 2008, at 9:13 AM, The Noob wrote:<br>
<br>
> Hello all,<br>
><br>
> I have a problem with check_snmp_storage.pl, it works in command<br>
> line but not in Nagios :<br>
> ./check_snmp_storage.pl -H <a href="http://192.168.5.6" target="_blank">192.168.5.6</a> -C public -m /var -w 80 -c 90<br>
> /var: 1%used(4MB/496MB) (<80%) : OK<br>
<br>
</div>What user did you perform this test as? nagios? If not, try as the<br>
nagios user. What does the nagios status output say about the check?<br>
That's useful information for troubleshooting.<br>
<div><br>
> My config :<br>
> define command{<br>
> command_name check_snmp_disk<br>
> command_line /usr/bin/perl $USER1$/check_snmp_storage.pl -<br>
> H $HOSTADDRESS$ -C $USER4$ -m $ARG3$ -w $ARG1$ -c $ARG2$<br>
> }<br>
<br>
</div>Looks good assuming $USER1$ is the path to the plugin, $USER4$ really<br>
is the read community and the file they're defined in is included in<br>
nagios.cfg as a resource_file.<br>
<br>
--<br>
Marc<br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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>
</blockquote></div><br></div>