problem with check_snmp_storage.pl
Marc Powell
marc at ena.com
Wed Jul 30 17:19:47 CEST 2008
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
More information about the Users
mailing list