ASNMTAP

 view release on metacpan or  search on metacpan

lib/ASNMTAP/Asnmtap/Applications/Display.pod  view on Meta::CPAN

=head1 NAME

ASNMTAP::Asnmtap::Applications::Display is a Perl module that provides a nice object oriented interface for ASNMTAP Display Applications

=head1 Description

ASNMTAP::Asnmtap::Applications::Display Subclass of ASNMTAP::Asnmtap::Applications

This version is still the old ASNMTAP Applications v3.000.001 addapted for using with the new ASNMTAP::Asnmtap, ASNMTAP::Asnmtap::Plugins and ASNMTAP::Asnmtap::Plugins::Nagios plugins.

We are working onto an new Object Oriented version for the ASNMTAP Applications

=head1 FILES

=over 4

=item located at /opt/asnmtap/applications/custom

=over 4

=item display.pm

Here we can add customised expressions to manipulate the output of the display regarding the content of the $statusMessage where the extra error information is added to $errorMessage

 sub printStatusMessageCustom {
   my $statusMessage = shift(@_);

   my $break = '';
   my $errorMessage = '';

   if ($statusMessage =~ /<NIHIL&gt/ ) {
     $errorMessage = 'possible a problem with this execution for this plugin';
   # ***************************************************************************
   # Error codes indicate an error with DUMMY-Tn                               *
   # ***************************************************************************
   } elsif ($statusMessage =~ /Check Dummy:/ ) {
     if ($statusMessage =~ /\+DUMMY-T1\+/ ) { $errorMessage = 'testing: <normal crontab>'; }
     if ($statusMessage =~ /\+DUMMY-T2\+/ ) { $errorMessage = 'testing: noOFFLINE'; }
     if ($statusMessage =~ /\+DUMMY-T3\+/ ) { $errorMessage = 'testing: multiOFFLINE'; }
     if ($statusMessage =~ /\+DUMMY-T4\+/ ) { $errorMessage = 'testing: noTEST'; }
   # ---------------------------------------------------------------------------
   # Start custom code ---------------------------------------------------------
   # ---------------------------------------------------------------------------
 # } elsif ($statusMessage =~ /<string to find>/ ) {
 #   if ($statusMessage =~ /\+<substring to find>\+/ ) { $errorMessage = '<erormessage to return>'; }
   # ---------------------------------------------------------------------------
   # End custom code -----------------------------------------------------------
   # ---------------------------------------------------------------------------
   }

   return $errorMessage;
 }

=over 4

=item cartography.pm

Integration with Cartography

printLinkToCartography()

=back

=over 4

=item sde.pm

Integration with SDE

getTimeperiodRelationshipsSDE()

printRelationshipsSDE()

=back

=item located at /opt/asnmtap/applications/etc

=over 4

=item DisplayCT-*

are the config files used by the program display.pl

when the Application CGI module and CGI applications are installed, these config files is automatically generated by the program generateConfig.pl



( run in 1.087 second using v1.01-cache-2.11-cpan-39bf76dae61 )