Hi,
an addition to what was said before. You don't check whether your domain list file could be opened. You could add something like:
... unless(open (FILE, $domainList)) { print "CRIT: Can't read file '$domainList': $!\n"; exit 1; } my @dom = <FILE>; ...
Regards
McA
In reply to Re: Nagios custom Perl check
by McA
in thread Nagios custom Perl check
by edimusrex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |