[Nagiosplug-help] check_disk and DRDB
Justin Maloney
justinm at honeycomb.net
Thu Aug 30 14:46:56 CEST 2007
>Justin Maloney wrote:
>> First time poster so cut me a little slack.
>>
>>
>>
>> Maybe I'm just dumb but I can't figure this out. I'm root and do a df
>> then try to check the 3 mounts to see what space is avaliale. I want
/,
>> /boot, and /var/lib/mysql. Background - drbd is basically netowork
>> raid1. I'm trying this on the primary as the secondary doesn't get
>> mounted till the first goes down.
>>
>> [root at mysql-1b ~]# df
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/cciss/c0d0p3 10317860 2405388 7388352 25% / <-slash
>> /dev/cciss/c0d0p1 101086 20181 75686 22% /boot
>> /dev/drbd0 92368656 19834760 67841840 23% /var/lib/mysql
>>
>> So you would think the command would be -
>> [root at mysql-1b ~]# /usr/lib64/nagios/plugins/check_disk -w 15% -c 10%
-p
>> /dev/cciss/c0d0p1 /dev/cciss/c0d0p3 -p /dev/drbd0
>> Results
>> DISK OK - free space: /boot 73 MB (78% inode=99%); / 7215 MB (75%
>> inode=92%);| /boot=19MB;83;88;0;98 /=2349MB;83;88;0;10076
>>
>> So lets try with the actaull path.
>> [root at mysql-1b ~]# /usr/lib64/nagios/plugins/check_disk -w 15% -c 10%
-p
>> /dev/cciss/c0d0p1 /dev/cciss/c0d0p3 -p /dev/cciss/c0d0p2
>> Results
>> DISK OK - free space: /boot 73 MB (78% inode=99%); / 7215 MB (75%
>> inode=92%);| /boot=19MB;83;88;0;98 /=2349MB;83;88;0;10076
>>
>> In both cases I don't get the drbd mount. Any thoughts?
>>
>
>Yes. Look closely at your command-line and you'll notice you've
>specified /dev/cciss/c0d0p3 without a -p in front of it.
>I'd have expected check_disk to barf on this, since it's not
>a valid argument on its own (as it lacks the preceding -p),
>but apparently it doesn't. Add the -p or remove the /dev/cciss/c0d0p3
>and you should be fine.
>
>--
>Andreas Ericsson andreas.ericsson at op5.se
>OP5 AB www.op5.se
>Tel: +46 8-230225 Fax: +46 8-230231
Same results. This was the hundredth time I tried it and I forgot it. I
did retest to make sure and I still get the same results. Good catch
though.
/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /dev/cciss/c0d0p1
-p /dev/cciss/c0d0p3 -p /dev/cciss/c0d0p2
DISK OK - free space: /boot 73 MB (78% inode=99%); / 7215 MB (75%
inode=92%);| /boot=19MB;83;88;0;98 /=2349MB;83;88;0;10076
More information about the Help
mailing list