That worked like a charm.  Thank you,

Robert

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Thursday, July 24, 2008 11:49 AM
To: Robert Ferguson
Cc: [email protected]
Subject: Re: [Nagios-users] NetApp disk monitoring

just add the -w -c anywhere, the number 9000 is the total number of
disks, you can alert on each of the returned fields, in this case I
just picked a high number of total disks as I dont care to alert if
the number of disks grows larger than X(9000).

warn on greater than 9000 total disks
warn on greater than 9000 active disks
warn on greater than 9000 spare disks
warn on greater than 0 failed disks




On 7/24/08, Robert Ferguson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Here is the check I am using
>
> #Number of disks
> Define command{
>       command_name            check-netapp-numdisk
>       command_line            $USER1$/check_snmp -H $HOSTADDRESS$ -C
> public -o
>
.1.3.6.1.4.1.789.1.6.4.1.0,.1.3.6.1.4.1.789.1.6.4.2.0,.1.3.6.1.4.1.789.1
> .6.4.8.0,.1.3.6.1.4.1.789.1.6.4.7.0 -u 'Total Disks','
> Active','Spare','Failed' -l ""
> }
>
> I can see were to put the '-w 9000,9000,9000,0 -c 9000,9000,9000,2'
from
> you statement, but what is the '9000.....' for?
>
> Thanks,
>
> Robert
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of [EMAIL PROTECTED]
> Sent: Thursday, July 24, 2008 9:23 AM
> To: Robert Ferguson
> Cc: [email protected]
> Subject: Re: [Nagios-users] NetApp disk monitoring
>
> what check are you using?  i use snmp:
>
> check_snmp  -H $HOSTADDRESS$ -C $ARG1$ -t 60 -o
>
.enterprises.789.1.6.4.1.0,.enterprises.789.1.6.4.2.0,.enterprises.789.1
> .6.4.8.0,.enterprises.789.1.6.4.7.0
> -w 9000,9000,9000,0 -c 9000,9000,9000,2  -u 'Total
> Disks','Active','Spare','Failed' -l ""
>
> the last number in the -w/-c represents number of failures (greather
> than)
>
> On 7/24/08, Robert Ferguson <[EMAIL PROTECTED]> wrote:
>> Good Morning Users,
>>
>>
>>
>> I have run into a little snag monitoring our netapps.  I am sure it
is
> a
>> simple mistake however her it is.
>>
>>
>>
>> We are monitoring the number of disk on each head of the netapp.
This
>> give us the number of Total, number Active, number Spare and Number
>> Failed.   The issue this morning is we had a disk fail  over night.
>> Nagios caught it and is reporting 1 failed, however it is still in an
> ok
>> state.  I can't find where to set the number for -w and -c.   Please
> let
>> me know of your thoughts.
>>
>>
>>
>> Thanks
>>
>>
>>
>> Robert
>>
>>
>>
>>
>

-------------------------------------------------------------------------
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
[email protected]
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

Reply via email to