[Nagiosplug-help] check_by_ssh and the pipe

Olivier 'Babar' Raginel nagios at babar.us
Wed Jul 23 08:56:30 CEST 2008


On Wed, Jul 23, 2008 at 07:46:20AM +0100, florian.engelmann at bt.com wrote:
> command [ FILESYSTEM ] = check_disk -w 10% -c 5% -A -I
> '^/pkg/fr1nms03/|^/tmp|^/var/run|^/etc/svc/volatile|^/global/'
> 
> Is there any way to patch the check_by_ssh sources to handle the | as it
> should?

This is a bit more complex, but for your problem, why don't you simply 
specifiy multiple -x/-I options? You don't really need regexp here, as 
you're not taking any advantage from a regexp. So something like this 
should work:

command [ FILESYSTEM ] = check_disk -w 10% -c 5% -A -x /pkg/fr1nms03/ -x 
/tmp -x /var/run -x /etc/svc/volatile -i ^/global/

(Fix -x or -I or -i where appropriate)

It won't fix your problem, but at least it will do what you want.

Kind regards,

-- 
Babar.




More information about the Help mailing list