Re: [Nagios-users-br] Aplicações em Java (log4j )

2008-08-26 Por tôpico Marcel
define command{
   command_name check_log4j
   check_command /usr/bin/grep $ARG1$ $ARG2$  (/bin/echo $ARG1$ pattern
found in $ARG2$ logfile!; exit 2)
   }

Claro que o usuário nagios precisa conseguir executar o grep e ter a
permissão pro arquivo de log.

Ou vc pode montar seu próprio plugin para buscar padrões nos logfiles.

Ou ainda, utilizar o check_log padrão da distribuição dos plugins:

---%%%-
check_log v1749 (nagios-plugins 1.4.11)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Usage: check_log -F logfile -O oldlog -q query
Usage: check_log --help
Usage: check_log --version

Log file pattern detector plugin for Nagios

Send email to [EMAIL PROTECTED] if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to [EMAIL PROTECTED]
Please include version information with all correspondence (when possible,
use output from the --version option of the plugin itself).
---%%%-

HTH,
Marcel

On Mon, Aug 25, 2008 at 3:20 PM, André Moura [EMAIL PROTECTED] wrote:

 Pessoal,

 Alguém conhece algum plugin ou maneira de realizar a monitoração de
 aplicações Java, lendo o log4j, sem ser o NagiosAppender?

 Obrigado!

 --
 André O Moura
 http://andrem.wordpress.com
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users-br] Aplicações em Java (log4j )

2008-08-25 Por tôpico André Moura
Pessoal,

Alguém conhece algum plugin ou maneira de realizar a monitoração de
aplicações Java, lendo o log4j, sem ser o NagiosAppender?

Obrigado!

-- 
André O Moura
http://andrem.wordpress.com
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki