[Nagiosplug-help] check_disk and DRDB

Justin Maloney justinm at honeycomb.net
Wed Aug 29 21:52:02 CEST 2007


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?

 

Thank you,

Justin Maloney

Systems Administrator

Honeycomb Internet Services

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070829/344f0623/attachment.html>


More information about the Help mailing list