ASNMTAP::Asnmtap::Plugins::Nagios provides a nice object oriented interface for building Nagios (http://www.nagios.org) compatible plugins.
ASNMTAP::Asnmtap::Plugins::Nagios Subclass of ASNMTAP::Asnmtap::Plugins
use ASNMTAP::Asnmtap::Plugins::Nagios;
my $objectNagios = ASNMTAP::Asnmtap::Plugins::Nagios->new ();
This module that provides a nice object oriented interface for building Nagios (http://www.nagios.org) compatible plugins.
use ASNMTAP::Asnmtap::Plugins::Nagios v3.002.003;
$objectNagios->dumpData ();
$objectNagios->exit (7);
-o, --ostype=<ostype> AIX Cygwin FreeBSD Linux HP-UX Irix MacOS MiNT NetBSD NetWare OpenBSD OS2 SCO Solaris Stratus Unix VMS Win32 -m, --metric=<k|M|G> where k=kB (default), M=MB or G=GB
scalar, the program command line entered options returned values (the equivalent of the assignment)
equals ostype
equals kB for k, MB for M and GB for G
there are no specific plugin values defined for ASNMTAP::Asnmtap::Plugins::Nagios!
convert scalar value to KB
convert scalar value in KB to given metric where equals kB for k, MB for M and GB for G
_programName _programDescription _programVersion _programUsagePrefix _programHelpPrefix _programGetOptions _debug
programName() programDescription() programVersion()
getOptionsArgv() getOptionsValue()
debug()
printRevision() printUsage() printHelp()
get_timeslot()
get_yyyymmddhhmmsswday()
get_datetimeSignal() get_datetime()
get_logfiledate() get_csvfiledate() get_csvfiletime()
get_epoch() get_week() get_wday() get_hour() get_min() get_seconds() get_day() get_month() get_year() get_yearMonthDay()
_timeout _SSLversion _browseragent
appendPerformanceData() browseragent() SSLversion() clientCertificate() pluginValue() proxy() timeout()
setEndTime_and_getResponsTime()
call_system()
ALL
$APPLICATION $BUSINESS $DEPARTMENT $COPYRIGHT $SENDEMAILTO $CAPTUREOUTPUT $PREFIXPATH $PLUGINPATH $LOGPATH $PIDPATH $PERL5LIB $MANPATH $LD_LIBRARY_PATH %ERRORS %STATE %TYPE $CHATCOMMAND $DIFFCOMMAND $KILLALLCOMMAND $PERLCOMMAND $PPPDCOMMAND $ROUTECOMMAND $RSYNCCOMMAND $SCPCOMMAND $SSHCOMMAND &convert_to_KB &convert_from_KB_to_metric
NAGIOS
$APPLICATION $BUSINESS $DEPARTMENT $COPYRIGHT $SENDEMAILTO $CAPTUREOUTPUT $PREFIXPATH $PLUGINPATH $LOGPATH $PIDPATH $PERL5LIB $MANPATH $LD_LIBRARY_PATH %ERRORS %STATE %TYPE &convert_to_KB &convert_from_KB_to_metric
COMMANDS
$CHATCOMMAND $DIFFCOMMAND $KILLALLCOMMAND $PERLCOMMAND $PPPDCOMMAND $ROUTECOMMAND $RSYNCCOMMAND $SCPCOMMAND $SSHCOMMAND
Alex Peeters [alex.peeters@citap.be]
ASNMTAP::Asnmtap, ASNMTAP::Asnmtap::Plugins
check_fs-stat.pl check_iowait.pl check_memory-free.pl check_memory-top.pl check_nagios-comments-cleanup.pl check_nagiosv3-comments-cleanup.pl check_network_interface_status.pl check_network_interface_traffic.pl check_pargs.pl check_snmptt_traps.pl check_snmptt_traps.plN check_swap.pl check_swap-allocated.pl snmptt_traps_remove_pending_and_duplicated.pl check_template-ftp.pl check_template-ldap.pl check_template-nagios.pl check_template-sftp.pl check_xml-monitoring.pl check_xml-monitoring-1.2.pl check_xml.pl
ASNMTAP::Asnmtap::Plugins Time::Local check_template-ldap.pl Net::LDAP Dependencies Net::LDAP: Convert::ASN1 - required URI::ldap - optional, needed for URL parsing Digest::MD5 - optional, needed for SASL CRAM-MD5 auth Net::SSLeay - optional, needed for IO::Socket::SSL needed OpenSSL-0.9.7b or newer... IO::Socket::SSL - optional, needed for Net::LDAPS XML::Parser - optional, needed for Net::LDAP::DSML
(c) Copyright 2000-2011 by Alex Peeters [alex.peeters@citap.be], All Rights Reserved.
ASNMTAP is based on 'Process System daemons v1.60.17-01', Alex Peeters [alex.peeters@citap.be]
Purpose: CronTab (CT, sysdCT), Disk Filesystem monitoring (DF, sysdDF), Intrusion Detection for FW-1 (ID, sysdID) Process System daemons (PS, sysdPS), Reachability of Remote Hosts on a network (RH, sysdRH), Rotate Logfiles (system activity files) (RL), Remote Socket monitoring (RS, sysdRS), System Activity monitoring (SA, sysdSA).
'Process System daemons' is based on 'sysdaemon 1.60' written by Trans-Euro I.T Ltd
This ASNMTAP CPAN library and Plugin templates are free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The other parts of ASNMTAP may be used and modified free of charge by anyone so long as this copyright notice and the comments above remain intact. By using this code you agree to indemnify Alex Peeters from any liability that might arise from it's use.
Selling the code for this program without prior written consent is expressly forbidden. In other words, please ask first before you try and make money off of my program.
Obtain permission before redistributing this software over the Internet or in any other medium. In all cases copyright and header must remain intact.
To install ASNMTAP::Time, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ASNMTAP::Time
CPAN shell
perl -MCPAN -e shell install ASNMTAP::Time
For more information on module installation, please visit the detailed CPAN module installation guide.