problem with check_snmp_storage.pl

The Noob thenoob06 at gmail.com
Wed Jul 30 17:45:22 CEST 2008


Hello Marc,

Thanks for your help !
It was a problem with $USER4$=public.
There is a tabulation after public ...
I delete it and it works.
Best Regards


2008/7/30 Marc Powell <marc at ena.com>

>
> On Jul 30, 2008, at 9:13 AM, The Noob wrote:
>
> > Hello all,
> >
> > I have a problem with check_snmp_storage.pl, it works in command
> > line but not in Nagios :
> > ./check_snmp_storage.pl -H 192.168.5.6 -C public -m /var -w 80 -c 90
> > /var: 1%used(4MB/496MB) (<80%) : OK
>
> What user did you perform this test as? nagios? If not, try as the
> nagios user. What does the nagios status output say about the check?
> That's useful information for troubleshooting.
>
> > My config :
> > define command{
> >         command_name    check_snmp_disk
> >         command_line    /usr/bin/perl $USER1$/check_snmp_storage.pl -
> > H $HOSTADDRESS$ -C $USER4$ -m $ARG3$ -w $ARG1$ -c $ARG2$
> > }
>
> Looks good assuming $USER1$ is the path to the plugin, $USER4$ really
> is the read community and the file they're defined in is included in
> nagios.cfg as a resource_file.
>
> --
> Marc
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080730/980f39e0/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list