in reply to Nagios custom Perl check
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Nagios custom Perl check
by edimusrex (Monk) on Jul 22, 2014 at 13:07 UTC | |
by edimusrex (Monk) on Jul 22, 2014 at 15:31 UTC |