view release on metacpan or search on metacpan
Perfparse integration
---------------------
download latest snapshot from http://wiki.perfparse.org/cvs_snapshots/
bzip2 -d perfparse-06-mm-dd.tar.bz2
tar -xvf perfparse-06-mm-dd.tar
cd perfparse-all
./configure --prefix=/opt/asnmtap/perfparse --with-imagedir=/opt/asnmtap/applications/htmlroot/img/ --with-cgidir=/opt/asnmtap/applications/htmlroot/cgi-bin --with-http_image_path=/asnmtap/img --with-data-source=asnmtap
make
make install-strip
SNMPTT integration
------------------
Install net-snmp 5.4.x
... TODO ... NO PART OF NORMAL SETUP ...
HTMLDOC: http://www.htmldoc.org/
Downloading the Software
Get the software from http://www.htmldoc.org/
wget http://ftp.easysw.com/pub/htmldoc/1.8.25/htmldoc-1.8.25-source.tar.gz
Installing the Software
tar -xvzf htmldoc-1.8.27-source.tar.gz
cd htmldoc-1.8.27
./configure
make
make install
Licensing the Software
The HTMLDOC License window is shown the first time you run the software.
Click on the Update License button to add a license to your system
perl -MCPAN -e 'install HTML::HTMLDoc'
--- #YAML:1.0
name: ASNMTAP
version: 3.002003
abstract: Application System Network Monitoring Toolkit Alex Peeters
author:
- Alex Peeters <alex.peeters@citap.com>
license: perl
distribution_type: module
configure_requires:
ExtUtils::MakeMaker: 0
build_requires:
ExtUtils::MakeMaker: 0
requires:
Bundle::DBD::mysql: 4.004
Bundle::DBI: 1.604
Bundle::LWP: 1.11
CGI: 3.37
Compress::Zlib: 2.010
Config::General: 2.38
Makefile.PL view on Meta::CPAN
print "\n";
} else {
print "\n$module required for automatic install of dependencies via CPAN\n";
print "\nperl -MCPAN -e 'install $module'\n\n";
}
}
# Ok, now it is time to really generate the Makefile - - - - - - - - - -
# my $ac = ExtUtils::Autoconf->new;
# $ac->configure;
WriteMakefile(
NAME => 'ASNMTAP',
AUTHOR => "alex.peeters\@citap.be",
ABSTRACT => "Application System Network Monitoring Toolkit Alex Peeters",
VERSION => $VERSION,
LICENSE => 'perl',
PM => \%PM,
MAN3PODS => { map { my $man3pod = $_; $man3pod =~ s/\//::/g; ("lib/ASNMTAP/$_.pod" => "\$(INST_MAN3DIR)/ASNMTAP::$man3pod.\$(MAN3EXT)") } @man3pods },
PREREQ_PM => \%PREREQ_PM,
Makefile.PL view on Meta::CPAN
package MY;
# What happens when we say 'make ...' - - - - - - - - - - - - - - - - - -
# sub postamble {
# return <<"EOM";
# autogen :
# \t\$(PERLRUN) -MExtUtils::Autoconf -e 'ExtUtils::Autoconf->run_autogen'
# configure :
# \t\$(PERLRUN) -MExtUtils::Autoconf -e'ExtUtils::Autoconf->run_configure'
# autoclean :
# \t\$(PERLRUN) -MExtUtils::Autoconf -e'ExtUtils::Autoconf->run_realclean'
# realclean purge ::
# \t\$(PERLRUN) -MExtUtils::Autoconf -e 'ExtUtils::Autoconf->run_realclean'
# clean ::
# \t\$(PERLRUN) -MExtUtils::Autoconf -e 'ExtUtils::Autoconf->run_clean'
# EOM
applications/log4perl.cnf view on Meta::CPAN
log4perl.logger.DBIx.Log4perl = DEBUG, MySQL
log4perl.appender.MySQL = Log::Log4perl::Appender::File
log4perl.appender.MySQL.filename = /opt/monitoring/asnmtap/log/MySQL.log
log4perl.appender.MySQL.mode = append
log4perl.appender.MySQL.Threshold = OFF
log4perl.appender.MySQL.layout = PatternLayout
log4perl.appender.MySQL.layout.ConversionPattern = [%d] %H | %p | %P | %C | %c | %l - %m%n
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# If you don't define any appenders, nothing will happen. Appenders will be
# triggered whenever the configured logging level requires a message to be
# logged and not suppressed. To log to the screen, to files and to databases:
# Log::Log4perl::Appender::Screen
# Log::Log4perl::Appender::ScreenColoredLevels
# Log::Log4perl::Appender::File
# Log::Log4perl::Appender::Socket
# Log::Log4perl::Appender::DBI
# Log::Log4perl::Appender::Synchronized
# Log::Log4perl::Appender::RRDs
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Additional Appenders via Log::Dispatch. Here's the list of appender modules:
applications/sbin/bash_stop_root.sh view on Meta::CPAN
ASNMPTAP_UID=32006
ASNMPTAP_USER=asnmtap
HTTPD_UID=99
uid=`echo $UID`
user=`echo $USER`
if [ "$uid" -eq 0 -a "$STOP_ROOT" = "TRUE" ]; then
echo "*** NOTICE: ASNMPTAP has been configured not to run as root ! ***"
exit 1
elif [ "$uid" -eq 0 -a "$STOP_ROOT" != "TRUE" ]; then
echo "*** WARNING: Running ASNMPTAP as root is not recommended ! ***"
elif [ $uid != "$ASNMPTAP_UID" -a "$user" != "$ASNMPTAP_USER" -a $uid != "$HTTPD_UID" ]; then
echo "*** NOTICE: ASNMPTAP must be started with shell uid(user) $ASNMPTAP_UID($ASNMPTAP_USER) or with httpd uid $HTTPD_UID"
exit 1
fi
etc/ppp/pap-secrets view on Meta::CPAN
#
# /etc/ppp/pap-secrets
#
# This is a pap-secrets file to be used with the AUTO_PPP function of
# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
# after a user has passed this file. Don't be disturbed therfore by the fact
# that this file defines logins with any password for users. /etc/passwd
# (again, /etc/shadow, too) will catch passwd mismatches.
#
# This file should block ALL users that should not be able to do AUTO_PPP.
# AUTO_PPP bypasses the usual login program so its necessary to list all
# system userids with regular passwords here.
#
# ATTENTION: The definitions here can allow users to login without a
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
Shell script to run CollectorCT-*.sh and DisplayCT-*.sh with uid protection.
cd /opt/asnmtap/applications/sbin
mv bash_stop_root.sh-orig bash_stop_root.sh
chmod 755 bash_stop_root.sh
Modify when required:
STOP_ROOT=TRUE
NOTICE: ASNMPTAP has been configured not to run as root !
WARNING: Running ASNMPTAP as root is not recommended !
ASNMPTAP_UID=32006
ASNMPTAP_USER=asnmtap
NOTICE: ASNMPTAP must be started with shell uid(user) !
HTTPD_UID=99
NOTICE: ASNMPTAP must be started with httpd uid !
=item sshWrapperASNMTAP.pl
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
</Directory>
</VirtualHost>
=back
=item Install Mysql client
Use rpm or download the source, for version 4.0 or later 'gzip' needed
when the sourecode used (gcc, g++, binutils & make needed):
./configure --without-server
make
make install
yum install mysql-devel
=over 4
=item collector.pl need in general
=over 4
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
We use the 'Pipe to Perfparse' methode
=over 4
=item Compiling Perfparse
wget http://belnet.dl.sourceforge.net/sourceforge/perfparse/perfparse-0.106.1.tar.gz
cd /export/download/
tar -xvzf perfparse-0.106.1.tar.gz
cd /export/download/perfparse-0.106.1
./configure --prefix=/opt/asnmtap/perfparse --with-imagedir=/opt/asnmtap/applications/htmlroot/img/ --with-cgidir=/opt/asnmtap/applications/htmlroot/cgi-bin --with-http_image_path=/asnmtap/img --with-data-source=asnmtap --disable-phpui
make
make install-strip
=item Installing Perfparse database
cd /export/download/perfparse-0.106.1/scripts
cat mysql_create.sql | mysql -u root -p -D asnmtap
=item Configuration of Perfparse v19 for ASNMTAP
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
cd /export/download/directory
rpm -i htmldoc-1.8.27-linux-intel.rpm
/usr/bin/htmldoc
=item Solaris
cd /export/download/directory
tar -xvzf htmldoc-1.8.27-source.tar.gz
cd /export/download/htmldoc-1.8.27
./configure
make
make install
=back
=item Licensing the Software
The HTMLDOC License window is shown the first time you run the software.
Click on the Update License button to add a license to your system
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
vi /usr/local/apache2/conf/httpd.conf
CustomLog logs/access_log combined
wget http://belnet.dl.sourceforge.net/sourceforge/awstats/awstats-6.5.tgz
tar -xvzf awstats-6.5.gz
chown -R asnmtap:asnmtap awstats-6.5
mv awstats-6.5 /usr/local/
mv /usr/local/awstats-6.5 /usr/local/awstats
cd /usr/local/awstats/tools
./awstats_configure.pl
mkdir /var/lib
mkdir /var/lib/awstats
chown -R nobody /usr/local/awstats/wwwroot
vi /usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf
# replace
SiteDomain=""
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
# with
HostAliases="localhost 127.0.0.1 asnmtap]"
...
# replace
LogFile="/var/log/httpd/mylog.log"
# with
LogFile="/var/log/httpd/asnmtap.citap.be-combined.log"
cd /usr/local/awstats
./awstats_configure.pl
/etc/init.d/httpd restart
/usr/bin/env perl /usr/local/awstats/awstats_updateall.pl now -awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -configdir=/usr/local/awstats/etc/
vi /var/spool/cron/crontabs/root
15 * * * * /usr/local/awstats/tools/awstats_updateall.pl now > /dev/null
http://awstats.sourceforge.net/docs/awstats_setup.html
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
=item RESET MASTER
Deletes all binary logs listed in the index file, resetting the binlog index file to be empty
=item RESET SLAVE
Makes the slave forget its replication position in the master's binlogs. This statement is meant to be used for a clean start: it deletes the `master.info' and `relay-log.info' files, all the relay logs, and starts a new relay log.
Note: All relay logs are deleted, even if they had not been totally executed by the slave SQL thread. (This is a condition likely to exist on a replication slave that is highly loaded, or if you have issued a STOP SLAVE statement.) Connection informa...
=item How do I configure a slave if the master is already running and I do not want to stop it?
There are several options. If you have taken a backup of the master at some point and recorded the binlog name and offset ( from the output of SHOW MASTER STATUS ) corresponding to the snapshot, do the following:
Make sure the slave is assigned a unique server ID.
Execute the following statement on the slave, filling in appropriate values for each parameter:
mysql> CHANGE MASTER TO
-> MASTER_HOST='master_host-name',
-> MASTER_USER='master_user_name',
lib/ASNMTAP/Asnmtap/Applications.pod view on Meta::CPAN
pkgadd -d pkg_get.pkg
pkgadd -d common-1.4.3,REV=2006.01.22-SunOS5.8-sparc-CSW.pkg
pkgadd -d awstats-6.4-SunOS5.8-all-CSW.pkg
pkgadd -d binutils-2.16.1-SunOS5.8-sparc-CSW.pkg
=item libmcrypt
tar -xvzf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure
make
make install
=item MySQL
MySQL 5.0.x and 5.1.x are supported
tar -xvzf mysql-5.0.20.tar.gz or higher
cd mysql-5.0.20
./configure --without-server --enable-local-infile
make
make install
/usr/local/bin/mysql_client_test --host asnmtap
=item Perl
perl -MCPAN -e 'reload index'
perl -MCPAN -e 'install Date::Manip'
perl -MCPAN -e 'install LWP::UserAgent'
lib/ASNMTAP/Asnmtap/Plugins/SOAP.pm view on Meta::CPAN
print "ASNMTAP::Asnmtap::Plugins::SOAP::_soapCheckTransportStatus: $transportStatus\n" if ($debug);
if ( $service->transport->is_success ) {
$$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{OK}, alert => $transportStatus }, $TYPE{APPEND} );
return $ERRORS{OK};
};
for ( $transportStatus ) {
/500 Can_t connect to/ &&
do { $$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{UNKNOWN}, error => $transportStatus }, $TYPE{$TYPE_ERROR_RETURN} ); return $ERRORS{UNKNOWN}; last; };
/500 configure certs failed/ &&
do { $$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{UNKNOWN}, error => $transportStatus }, $TYPE{$TYPE_ERROR_RETURN} ); return $ERRORS{UNKNOWN}; last; };
/500 Connect failed/ &&
do { $$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{UNKNOWN}, error => $transportStatus }, $TYPE{$TYPE_ERROR_RETURN} ); return $ERRORS{UNKNOWN}; last; };
/500 proxy connect failed/ &&
do { $$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{UNKNOWN}, error => $transportStatus }, $TYPE{$TYPE_ERROR_RETURN} ); return $ERRORS{UNKNOWN}; last; };
/500 Internal Server Error/ &&
do { $$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{UNKNOWN}, error => $transportStatus }, $TYPE{$TYPE_ERROR_RETURN} ); return $ERRORS{UNKNOWN}; last; };
}
$$asnmtapInherited->pluginValues ( { stateValue => $ERRORS{CRITICAL}, alert => $transportStatus }, $TYPE{$TYPE_ERROR_RETURN} );
plugins/snmptt/check_SNMPTT_weblogic.pl view on Meta::CPAN
while( $sth->fetch() ) {
my ($_eventname, $detailLine, $uniqueTrap, $trapServerName, $trapMonitorType, $trapMBeanName, $trapMBeanType, $trapAttributeName, $trapMachineName, $trapLogThreadId, $trapLogTransactionId, $trapLogUserId, $trapLogSubsystem, $trapLogMsgId, $tr...
for ( $eventname ) {
/^wlsLogNotification$/ && do { # Server Log Notification: $2, $3, $4, $5, $6, $7, $8, $9, $10
my (undef, $variables, ) = split ( /: /, $formatline, 2 );
($trapServerName, $trapMachineName, $trapLogThreadId, $trapLogTransactionId, $trapLogUserId, $trapLogSubsystem, $trapLogMsgId, $trapLogSeverity, $trapLogMessage) = split ( /, /, $variables, 9 );
if ( $trapLogMessage =~ /Exception: Too many open files/ ) {
$_eventname = 'wlsLogNotification: Too many open files';
} elsif ( ( $trapLogSeverity eq 'Error' and $trapLogMessage =~ /which is more than the configured time \(StuckThreadMaxTime\) of/ )
or ( $trapLogSeverity eq 'Info' and $trapLogMessage =~ /^ExecuteThread: \\*'\d+\\*' for queue: \\*'[\w.]+\\*' has become \\*\"unstuck\\*\".$/ ) ) {
$_eventname = 'wlsLogNotification: StuckThreadMaxTime';
( $uniqueTrap ) = ( $trapLogMessage =~ /^(ExecuteThread: \\'\d+\\' for queue: \\'[\w.]+\\') has / );
print "\n\n$trapLogSeverity\n$trapLogMessage\n\n" if ( $debug > 2);
}
last; };
/^wlsServerStart$/ && do { # This trap is generated when the server $2 was started on $1
$_eventname = 'wlsServerShutDown or wlsServerStart';
( $trapServerName ) = ( $formatline =~ /^This trap is generated when the server (\w+) was started on / );
plugins/templates/snmptt/create_weblogic_configuration_database_with_SNMP-3.002.003_mysql-v5.0.x.SQL view on Meta::CPAN
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`,`trapMBeanType_MATCH`,`trapAttributeName`,`trapAttributeName_MATCH`,`trapMonitorType`,`trapMonitorType_MATCH`,`trapLogSeverity`,`trapLogSeverity_MATCH`,`trapLogMessage`,`trapLogMessage_MATCH`,`severity`...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
insert into `wls_snmptt_CONFIG`(`trapMBeanType`, `trapMBeanType_MATCH`, `trapAttributeName`, `trapAttributeName_MATCH`, `trapMonitorType`, `trapMonitorType_MATCH`, `trapLogSeverity`, `trapLogSeverity_MATCH`, `trapLogMessage`, `trapLogMessage_MATCH`, ...
plugins/templates/snmptt/snmptt-bea-weblogic.conf view on Meta::CPAN
10: trapLogMessage
Syntax="OCTETSTR"
Descr=" A string that includes the body of the log message"
EDESC
#
###
#
EVENT wlsLogNotification .1.3.6.1.4.1.140.625.0.60 "ASNMTAP" WARNING
MATCH MODE=and
MATCH $9: (Error)
MATCH $10: (which is more than the configured time \(StuckThreadMaxTime\) of)
FORMAT Server Log Notification: $2, $3, $4, $5, $6, $7, $8, $9, $10
NODES /etc/snmp/snmptt-nodes-weblogic
NODES MODE=POS
SDESC
The server log.
Variables:
1: trapTime
Syntax="OCTETSTR"
Descr=" A string that indicates the time"
2: trapServerName
plugins/templates/snmptt/snmptt-bea-weblogic.conf view on Meta::CPAN
Syntax="OCTETSTR"
Descr=" A string that indicates the key value data of the event that satisfied the watch rule"
9: trapWatchAlarmType
Syntax="OCTETSTR"
Descr="The type of alarm for the watch rule "
10: trapWatchAlarmResetPeriod
Syntax="OCTETSTR"
Descr="The period to elaspe before the alarm is reset applicable for AutomaticReset type watches"
11: trapWatchSNMPNotificationName
Syntax="OCTETSTR"
Descr="The name of the configured WLDFSNMPNotification that issued this trap"
EDESC
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
EVENT wlsALSBAlert .1.3.6.1.4.1.140.625.0.90 "LOGONLY" UNKNOWN
FORMAT ALSB environment Alert situation: $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12
SDESC
This trap is generated only in an ALSB environment where an Alert situation has occurred.
Variables:
1: trapALSBAlertTrapType
plugins/templates/snmptt/snmptt.ini view on Meta::CPAN
# Note: Wildcard matches are only matched if there are NO exact matches. This takes
# into consideration the NODES list. Therefore, if there is a matching trap, but
# the NODES list prevents it from being considered a match, the wildcard entry will
# only be used if there are no other exact matches.
multiple_event = 1
# SNMPTRAPD passes the IP address of device sending the trap, and the IP address of the
# actual SNMP agent. These addresses could differ if the trap was sent on behalf of another
# device (relay, proxy etc).
# If DNS is enabled, the agent IP address is converted to a host name using a DNS lookup
# (which includes the local hosts file, depending on how the OS is configured). This name
# will be used for: NODES entry matches, hostname field in logged traps (file / database),
# and the $A variable. Host names on the NODES line will be resolved and the IP address
# will then be used for comparing.
# Set to 0 to disable DNS resolution
# Set to 1 to enable DNS resolution
dns_enable = 1
# Set to 0 to enable the use of FQDN (Fully Qualified Domain Names). If a host name is
# passed to SNMPTT that contains a domain name, it will not be altered in any way by
# SNMPTT. This also affects resolve_value_ip_addresses.
plugins/templates/snmptt/snmptt.ini view on Meta::CPAN
# PostgreSQL: Set to 1 to enable logging to a PostgreSQL database via DBI (Linux / Windows)
# This requires DBI:: and DBD::PgPP
postgresql_dbi_enable = 0
# Set to 0 to use the DBD::PgPP module
# Set to 1 to use the DBD::Pg module
postgresql_dbi_module = 0
# Set to 0 to disable host and port network support
# Set to 1 to enable host and port network support
# If set to 1, ensure PostgreSQL is configured to allow connections via TCPIP by setting
# tcpip_socket = true in the $PGDATA/postgresql.conf file, and adding the ip address of
# the SNMPTT server to $PGDATApg_hba.conf. The common location for the config files for
# RPM installations of PostgreSQL is /var/lib/pgsql/data.
postgresql_dbi_hostport_enable = 0
# PostgreSQL: Hostname of database server (optional - default localhost)
postgresql_dbi_host = localhost
# PostgreSQL: Port number of database server (optional - default 5432)
postgresql_dbi_port = 5432
usr/bin/pon view on Meta::CPAN
exit 0
;;
esac
if [ -z "$1" -a -x /etc/ppp/ppp_on_boot ]; then
exec /etc/ppp/ppp_on_boot
fi
if [ -z "$1" -a ! -f /etc/ppp/peers/provider ]; then
echo "
Please configure /etc/ppp/peers/provider or use a command line argument to
use another file in /etc/ppp/peers/ directory.
"
exit 1
fi
if [ "$1" -a ! -f "/etc/ppp/peers/$1" ]; then
echo "
The file /etc/ppp/peers/$1 does not exist.
"
exit 1