Baltasar Cevc wrote: > Look for the mon.d directory and create a new file named not.monitor > or whatever you like, with the following contents: > - --- > #!<full path to perl executable> -w > > use strict; > > my $monitordir = $0; > $monitordir =~ s|/[^/]+$||; > > exit ! system($monitordir.'/'.shift @ARGV, @ARGV);
Wouldn't a 'not monitor' need to handle error codes / messages gracefully - wouldn't this only work properly if the original monitor exits normally? I think it would be better to check the exit code and return it !'d only if there were no actual errors generated (actual errors, as opposed to unsuccessful status). cheers, - Martin Norland, Sys Admin / Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon