App::MonM - Simple monitoring tool
Version 1.07
# monm checkit # monm report # monm show
Simple monitoring tool
To use this module, you must have Net-SNMP installed on your system. More specifically you need the Perl modules that come with it.
DO NOT INSTALL SNMP or Net::SNMP from CPAN!
The SNMP module is matched to an install of net-snmp, and must be installed from the net-snmp source tree.
The Perl module SNMP is found inside the net-snmp distribution. Go to the perl/ directory of the distribution to install it, or run ./configure --with-perl-modules from the top directory of the net-snmp distribution.
SNMP
./configure --with-perl-modules
Net-SNMP can be found at http://net-snmp.sourceforge.net
# sudo cpan install App::MonM
...and then:
# sudo monm configure
By default configuration file located in /etc/monm directory
/etc/monm
Every configuration directive detailed described in monm.conf file, also see conf.d/checkit-foo.conf.sample file for MonM checkit configuration
monm.conf
conf.d/checkit-foo.conf.sample
To automatically launch the program, we recommend using standard scheduling tools, such as crontab
* * * * * monm -l checkit >/dev/null 2>>/var/log/monm-error.log
For daily reporting:
0 8 * * * monm -l report >/dev/null 2>>/var/log/monm-error.log
The CTK method for classes extension. For internal use only!
See "again" in CTK
The internal method for initializing the project
my $dbi = $app->getdbi;
Returns DBI object
my $status = $app->nope("Format %s", "text");
Prints status message and returns status.
For nope returns - 0; for skip, wow, yep - 1
$app->notify();
Sends notifications
$app->trigger();
Runs triggers
See Changes file
Changes
CTK
See TODO file
TODO
* none noted
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE file and https://dev.perl.org/licenses/
LICENSE
To install App::MonM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::MonM
CPAN shell
perl -MCPAN -e shell install App::MonM
For more information on module installation, please visit the detailed CPAN module installation guide.