check-tomcat-deploy summary

Plugin Name: check-tomcat-deploy
Version: 0.0.2
Author: @melezhik
Realease Date: 2016-07-20 10:10:18
Short Description: Reads tomcat logs and checks if war files get deployed successfully
Category: monitoring
Plugin web page: https://github.com/melezhik/check-tomcat-deploy
 
Download link: check-tomcat-deploy-v0.000002.tar.gz
Latest version link: https://sparrowhub.org/info/check-tomcat-deploy

check-tomcat-deploy documentation

SYNOPSIS

Reads tomcat logs and checks if war files get deployed successfully

INSTALL

  $ sparrow plg install check-tomcat-deploy

Prerequisites

A tail utility should be installed as it gets used to retrieve data from log file.

USAGE

Manually

  $ sparrow plg run check-tomcat-deploy --param war='foo#bar.war,services.war' --param tomcat-version=7

Sparrowdo

  $ cat sparrowfile

  use v6;

  use Sparrowdo;


  task_run %(
    task => 'verify tomcat deploy',
    plugin => 'check-tomcat-deploy',
    parameters => %(
      tomcat-version => '7',
      war => 'foo#bar.war,services.war'
     )
  );

Parameters

tomcat-version

Int, version of tomcat server, for example: 7.

war

A comma separated list of the war files to get deployed, should not include a directory paths, only war file names.

For example for war files named foo#bar.war and baz.war:

  'foo#bar.war,baz.war'

file

An optional parameter, you may alternatively sets path to tomcat log file as file parameter.

For example:

  file /var/log/apps/catalina.out

If not set a path to tomcat log file gets resolved as:

  /var/log/tomcat<$tomcat-version>/catalina.out    

lines

Sets the number of lines to read from log file. Default value is 200.

AUTHOR

Alexey Melezhik