Changeset 8496bdb0739806df787c8be0b3c66756ab4a6efa in xas-logmon


Ignore:
Timestamp:
12/01/15 11:27:43 (3 years ago)
Author:
Kevin L. Esteb <kevin@…>
Branches:
master
Children:
71b41918e7074bbc7a6c4c165197e3709e7a086b
Parents:
ef8b410a1c69084e675a8a870c49305c92afd8d1
git-author:
Kevin L. Esteb <kevin@…> (12/01/15 11:27:43)
git-committer:
Kevin L. Esteb <kevin@…> (12/01/15 11:27:43)
Message:

Added some procedures to run

Location:
trunk
Files:
2 added
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/MANIFEST

    rf3e70e2caad093e9497a68d8c4cc525d0756ab51 r8496bdb0739806df787c8be0b3c66756ab4a6efa  
    1111debian/rules 
    1212debian/watch 
    13 etc/.gitkeeper 
    1413etc/xas-logmon.ini 
    1514ignore.txt 
    1615init.d/xas-logmon.debian 
    1716init.d/xas-logmon.rhel 
    18 lib/XAS/Apps/Logmon/XAS/Monitor.pm 
     17lib/XAS/Apps/Logmon/Monitor.pm 
    1918lib/XAS/Apps/Logmon/XAS/Process.pm 
    2019lib/XAS/Docs/Logmon/Installation.pm 
     
    3534perl-XAS-Logmon.spec 
    3635README 
     36sbin/xas-logmon 
     37sbin/xas-logs 
    3738sysconfig/xas-logmon 
    3839t/00-load.t 
  • trunk/lib/XAS/Apps/Logmon/Monitor.pm

    r57ab731dbfc619ab99ce71ac415210d451fc3ba0 r8496bdb0739806df787c8be0b3c66756ab4a6efa  
    1 package XAS::Apps::Logmon::XAS::Monitor; 
     1package XAS::Apps::Logmon::Monitor; 
    22 
    33our $VERSION = '0.01'; 
     
    1717    SERVICE_NAME         => 'XAS_Log', 
    1818    SERVICE_DISPLAY_NAME => 'XAS Log Monitor', 
    19     SERVICE_DESCRIPTION  => 'Monitor XAS log files' 
     19    SERVICE_DESCRIPTION  => 'Monitor log files' 
    2020  } 
    2121; 
     
    3838        my $filename = $self->cfg->val($section, 'filename', '/var/logs/xas/xas-spooler.log'); 
    3939        my $spooldir = $self->cfg->val($section, 'spooldir', '/var/spool/xas/logs'); 
    40         my $command = sprintf('%s --filename %s --spooldir %s --ignore %s', 
     40        my $command = sprintf('%s --filename %s --spooldir %s --ignore %s --log-type console', 
    4141            $self->cfg->val($section, 'command'), 
    4242            $filename, 
     
    109109=head1 NAME 
    110110 
    111 XAS::Apps::Logmon::XAS::Monitor - A class for the XAS environment 
     111XAS::Apps::Logmon::Monitor - A class for the XAS environment 
    112112 
    113113=head1 SYNOPSIS 
    114114 
    115  use XAS::Apps::Log::Monitor; 
     115 use XAS::Apps::Logmon::Monitor; 
     116 
    116117 
    117118=head1 DESCRIPTION 
    118119 
    119 This module will spawn multiple log monitor processes. It will keep track 
     120This module will spawn multiple log monitoring processes. It will keep track 
    120121of them and restart them if they should stop. 
    121122 
  • trunk/lib/XAS/Apps/Logmon/XAS/Process.pm

    ref8b410a1c69084e675a8a870c49305c92afd8d1 r8496bdb0739806df787c8be0b3c66756ab4a6efa  
    7070    my $logstash = XAS::Logmon::Format::Logstash->new(); 
    7171    my $default  = XAS::Logmon::Parser::XAS::Logs->new(); 
    72     my $tasks    = XAS::Logmon::Parser::XAS::Logs->new( 
    73         format => ':tasks' 
    74     ); 
     72    my $tasks    = XAS::Logmon::Parser::XAS::Logs->new(format => ':tasks'); 
    7573 
    7674    while (my $line = $input->get()) { 
  • trunk/t/00-load.t

    ref8b410a1c69084e675a8a870c49305c92afd8d1 r8496bdb0739806df787c8be0b3c66756ab4a6efa  
    55BEGIN { 
    66 
    7     use_ok( 'XAS::Apps::Logmon::XAS::Monitor' ) || print "Bail out!\n"; 
     7    use_ok( 'XAS::Apps::Logmon::Monitor' )      || print "Bail out!\n"; 
    88    use_ok( 'XAS::Apps::Logmon::XAS::Process' ) || print "Bail out!\n"; 
    99    use_ok( 'XAS::Lib::Regexp::Log::XAS' )      || print "Bail out!\n"; 
  • trunk/t/boilerplate.t

    r57ab731dbfc619ab99ce71ac415210d451fc3ba0 r8496bdb0739806df787c8be0b3c66756ab4a6efa  
    5656  ); 
    5757 
    58   module_boilerplate_ok('lib/XAS/Apps/Logmon/XAS/Monitor.pm'); 
     58  module_boilerplate_ok('lib/XAS/Apps/Logmon/Monitor.pm'); 
    5959  module_boilerplate_ok('lib/XAS/Apps/Logmon/XAS/Process.pm'); 
    6060  module_boilerplate_ok('lib/XAS/Lib/Regexp/Log/XAS.pm'); 
Note: See TracChangeset for help on using the changeset viewer.