Unix and Linux Discussions Tagged with 7.1 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
28,149 |
AIX |
|
|
|
17 |
13,738 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,378 |
Programming |
|
|
|
0 |
3,128 |
AIX |
|
|
|
8 |
11,732 |
AIX |
|
|
|
0 |
1,523 |
Software Releases - RSS News |
|
|
|
0 |
737 |
Software Releases - RSS News |
|
|
|
0 |
776 |
Software Releases - RSS News |
|
|
|
0 |
742 |
Software Releases - RSS News |
|
|
|
0 |
790 |
Software Releases - RSS News |
|
|
|
0 |
861 |
Software Releases - RSS News |
|
|
|
0 |
970 |
Software Releases - RSS News |
|
|
|
0 |
930 |
Software Releases - RSS News |
|
|
|
0 |
991 |
Software Releases - RSS News |
|
|
|
0 |
1,163 |
UNIX and Linux RSS News |
|
|
|
0 |
682 |
Software Releases - RSS News |
|
|
|
0 |
914 |
Software Releases - RSS News |
|
|
|
0 |
874 |
Software Releases - RSS News |
|
|
|
0 |
787 |
Software Releases - RSS News |
|
|
|
0 |
972 |
Software Releases - RSS News |
|
|
|
0 |
1,607 |
UNIX and Linux RSS News |
|
|
|
0 |
968 |
Software Releases - RSS News |
|
|
|
0 |
893 |
Software Releases - RSS News |
|
|
|
0 |
1,153 |
UNIX and Linux RSS News |
|
|
|
0 |
1,140 |
Software Releases - RSS News |
|
|
|
0 |
940 |
Software Releases - RSS News |
|
|
|
0 |
751 |
Software Releases - RSS News |
|
|
|
0 |
1,022 |
Software Releases - RSS News |
|
|
|
0 |
1,409 |
Software Releases - RSS News |
|
|
|
0 |
1,014 |
Software Releases - RSS News |
|
|
|
0 |
723 |
Software Releases - RSS News |
|
|
|
0 |
1,441 |
Software Releases - RSS News |
|
|
|
0 |
1,305 |
Software Releases - RSS News |
|
|
|
0 |
810 |
Software Releases - RSS News |
|
|
|
0 |
745 |
Software Releases - RSS News |
|
|
|
0 |
765 |
Software Releases - RSS News |
|
|
|
0 |
1,023 |
UNIX and Linux RSS News |
|
|
|
0 |
786 |
Software Releases - RSS News |
|
|
|
0 |
698 |
Software Releases - RSS News |
|
|
|
0 |
762 |
Software Releases - RSS News |
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)