[Nagiosplug-devel] [ nagiosplug-Feature Requests-607885 ] check_disk multiple fs

SourceForge.net noreply at sourceforge.net
Sat Jun 28 19:12:06 CEST 2003


Feature Requests item #607885, was opened at 2002-09-11 16:13
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=607885&group_id=29880

Category: None
Group: None
Status: Open
>Priority: 2
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Ton Voon (tonvoon)
Summary: check_disk multiple fs 

Initial Comment:
when using check_disk in combination with check_by_ssh
it isn't possible to specify more than one filesystem
with the -p option due to problems with quoting:

sh-2.05$ /usr/lib/nagios/plugins/check_by_ssh -i
/usr/lib/nagios/id_rsa -H manta -C
"/usr/lib/nagios/plugins/check_disk -m -w 10% -c 5% -p
\/ /home\"
Unable to open pipe: /usr/bin/ssh -i
/usr/lib/nagios/id_rsa manta
'/usr/lib/nagios/plugins/check_disk -m -w 10% -c 5% -p
"/ /home"'

To overcome this, it would be nice if the -p option
could take a comma separated list of filesystems, i.e.

check_disk -w 10 -c 5 -p /,/home,/var

check_disk has only to replace the "," by spaces and
pass this to the df command which takes more than one
fs as parameter.


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2003-06-29 03:11

Message:
Logged In: YES 
user_id=664364

Thanks for the suggestion. The latest HEAD version of 
check_disk.c allows you to specify multiple filesystem by choosing 
-p multiple times, eg check_disk -w 10% -c 5% -p / -p /home -p /
var.

Will close this call if it has not been updated in 7 days.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=607885&group_id=29880




More information about the Devel mailing list