-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/7/11 13:50 , Jim Trocki wrote: > the idea for sending the previous output to the upalert script is so > you can easily send an alert that shows what error condition was fixed. > > i guess another way to do it is to send both the previous and the current > output to the alert script and let it decide what to do, or to provide > a way to configure which to send to the alert.
I would send both... *after* fixing it not to use the environment, or to truncate. Most systems limit the combined size of command arguments and environment, with the result that a monitor that emits a big enough error message *won't send an alert* because exec()ing the alert fails with E2BIG. - -- brandon s. allbery [linux,solaris,freebsd,perl] allber...@gmail.com system administrator [openafs,heimdal,too many hats] kf8nh -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1QQfAACgkQIn7hlCsL25UnSwCfUMaQXz1GE+XgjbwazX2mu17F 22AAni+DaPxxAbdYfe6yU9f2neuVYVfz =RSfW -----END PGP SIGNATURE----- _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon