Unix and Linux Discussions Tagged with noob |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
1,592 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,252 |
Shell Programming and Scripting |
|
|
|
7 |
4,019 |
Homework & Coursework Questions |
|
|
|
2 |
1,663 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
19,936 |
UNIX for Dummies Questions & Answers |
|
|
|
21 |
337,103 |
Fedora |
|
|
|
3 |
2,618 |
Programming |
|
|
|
2 |
5,966 |
Infrastructure Monitoring |
|
|
|
1 |
2,419 |
Homework & Coursework Questions |
|
|
|
3 |
2,160 |
Programming |
|
|
|
1 |
2,529 |
Programming |
|
|
|
13 |
5,003 |
Shell Programming and Scripting |
|
|
|
7 |
3,658 |
Shell Programming and Scripting |
|
|
|
7 |
3,331 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,477 |
Linux |
|
|
|
11 |
3,574 |
Shell Programming and Scripting |
|
|
|
2 |
2,460 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,376 |
Shell Programming and Scripting |
|
|
|
16 |
151,594 |
Programming |
Nagios::Plugin::Config(3pm) User Contributed Perl Documentation Nagios::Plugin::Config(3pm)
NAME
Nagios::Plugin::Config - read nagios plugin .ini style config files
SYNOPSIS
# Read given nagios plugin config file
$Config = Nagios::Plugin::Config->read( '/etc/nagios/plugins.ini' );
# Search for and read default nagios plugin config file
$Config = Nagios::Plugin::Config->read();
# Access sections and properties (returns scalars or arrayrefs)
$rootproperty = $Config->{_}->{rootproperty};
$one = $Config->{section}->{one};
$Foo = $Config->{section}->{Foo};
DESCRIPTION
Nagios::Plugin::Config is a subclass of the excellent Config::Tiny, with the following changes:
o Repeated keys are allowed within sections, returning lists instead of scalars
o Write functionality has been removed i.e. access is read only
o Nagios::Plugin::Config searches for a default nagios plugins file if no explicit filename is given to "read()". The current standard
locations checked are:
/etc/nagios/plugins.ini
/usr/local/nagios/etc/plugins.ini
/usr/local/etc/nagios /etc/opt/nagios/plugins.ini
/etc/nagios-plugins.ini
/usr/local/etc/nagios-plugins.ini
/etc/opt/nagios-plugins.ini
To use a custom location, set a "NAGIOS_CONFIG_PATH" environment variable to the set of directories that should be checked. The first
"plugins.ini" or "nagios-plugins.ini" file found will be used.
SEE ALSO
Config::Tiny, Nagios::Plugin
AUTHORS
This code is maintained by the Nagios Plugin Development Team: <http://nagiosplug.sourceforge.net>.
COPYRIGHT and LICENCE
Copyright (C) 2006-2007 by Nagios Plugin Development Team
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2010-12-03 Nagios::Plugin::Config(3pm)