Nagios::Plugin::OverHTTP::Library - Types library for Nagios::Plugin::OverHTTP
This documentation refers to Nagios::Plugin::OverHTTP::Library version 0.16
use Nagios::Plugin::OverHTTP::Library qw(URL); # This will import URL type into your namespace as well as some helpers # like to_URL and is_URL. See MooseX::Types for more information.
This module provides types for Nagios::Plugin::OverHTTP
No methods.
This specifies a hostname. This is validated using the Data::Validate::Domain library with the is_hostname function.
is_hostname
Added in version 0.12; be sure to require this version for this feature.
This specifies a HTTP verb. THis must be in all capital letters and all verbs are valid.
This specifies a valid URL path. Currently this is just a string that must begin with a forward slash. A coercion exists that will add a forward slash to the beginning of the string if there is not one.
This specifies a valid Nagios service status code. The status code must be a valid number. This type also provides a coercion from a string. The string is not case-sensitive and may be one of the following values:
OK
WARNING
CRITICAL
UNKNOWN
This specifies a valid timeout value. A timeout value is an integer that is greater than zero.
This specifies a URL. This is a string and is validated using the Data::Validate::URI library with the is_uri function.
is_uri
$STATUS_OK
Represents a status of OK.
$STATUS_WARNING
Represents a status of warning.
$STATUS_CRITICAL
Represents a status of critical.
$STATUS_UNKNOWN
Represents a status of unknown.
This module is dependent on the following modules:
Const::Fast
Data::Validate::Domain 0.02
Data::Validate::URI 0.05
MooseX::Types 0.08
namespace::clean 0.04
Douglas Christopher Wilson, <doug at somethingdoug.com>
<doug at somethingdoug.com>
Please report any bugs or feature requests to bug-nagios-plugin-overhttp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Nagios-Plugin-OverHTTP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-nagios-plugin-overhttp at rt.cpan.org
Copyright 2009 Douglas Christopher Wilson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either:
the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
the Artistic License version 2.0.
To install Nagios::Plugin::OverHTTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nagios::Plugin::OverHTTP
CPAN shell
perl -MCPAN -e shell install Nagios::Plugin::OverHTTP
For more information on module installation, please visit the detailed CPAN module installation guide.