single command, multiple disks to monitor
Marc Powell
marc at ena.com
Thu Aug 28 17:56:52 CEST 2008
On Aug 28, 2008, at 10:47 AM, Chandra Bahadur wrote:
> Hi
> I would like to monitor two partitions(/dev/sda1 and /dev/sda3)
> with the same command..
> How do I specify those ? Is it by separating with commas or by just
> space as below ??
>
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10% -c
> 5% -p /dev/sda3 /dev/sda1
>
> or
>
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10% -c
> 5% -p /dev/sda3,/dev/sda1
Neither. Specify multiple '-p' parameters.
$ ./check_disk --help
...
Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p path | -
x device}
[-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]
[-t timeout] [-u unit] [-v] [-X type]
Options:
...
-p, --path=PATH, --partition=PARTITION
Path or partition (may be repeated)
Testing --
$ ./check_disk -w10% -c5% -p /dev/Volume00/LogVol00 -p /dev/sda1
DISK OK - free space: / 2756 MB (36% inode=86%); /boot 49 MB (57%
inode=99%);| /=4718MB;7086;7480;0;7874 /boot=37MB;81;86;0;91
--
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