-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Daniel,
> Wouldn't it be nicer to use a "not.monitor" or whatever one should
call
> That would be real cool! Could you please help me to fulfill this?
> What do I need? How to do it?
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);
- ---
Set the permissions for the file similar to the other monitors'
permissions.
You can call it as monitor:
monitor not.monitor tcp.monitor -p 80
Have fun,
Baltasar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFDeblfp2YsmzTbIwYRArpWAKCXd0Q7qpoDa1scaKb1eVZEz4QkJQCcCZUE
QA4dAOfZ2u8Br+lkdXZw0S4=
=r4z8
-----END PGP SIGNATURE-----
_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon