In the case of check_dd.pl, you could modify the script to use a config file (check_dd.conf or some such). When nagios calls the script it will pass in the default warning/critical thresholds, and the script can read in the config file for exceptions. I'd parse the exceptions into a hash, then as the script checks
each filesystem, if there is an entry in the hash for that name use the hash
thresholds, otherwise use the default thresholds.
The other choice would be to call the script once for each filesystem and have it only report the results for the filesystem you pass in as a parameter. If you only have 2, it would be feasible, but if there are dozens it's too much trouble/overhead.



On 09/22/2014 08:51 PM, Cesar Allende wrote:
Hi,

i trying to monitor DataDomain filesystems using the following plugins check_disk and check_disk_snmp.pl <http://check_disk_snmp.pl> but they don't seem to find the filesystems i need which are:

/data and  /ddvar

is there any way to monitor Datadomain with one of these?


Also i tried check_dd.pl <http://check_dd.pl> plugin, but i'm not sure how to make it work with two different pairs of thresholds...one for ddvar and then another one for data...

DISKUSED WARNING - Index:58% /ddvar:7% Data:81% |'Index'=58 'ddvar'=7 'Data'=81


Kind regards.

César Anibal Allende
Level 1 Operations Support  - www.edrans.com <http://www.edrans.com>
Las Vegas: +1 5057183014 | London: +44 20 3318 1571 | Buenos Aires: +54 11 5368 5839 - Ext. 8021



Reply via email to