Unix and Linux Discussions Tagged with 7.1 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
25,933 |
AIX |
|
|
|
17 |
12,854 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,125 |
Programming |
|
|
|
0 |
2,942 |
AIX |
|
|
|
8 |
11,352 |
AIX |
|
|
|
0 |
1,383 |
Software Releases - RSS News |
|
|
|
0 |
704 |
Software Releases - RSS News |
|
|
|
0 |
738 |
Software Releases - RSS News |
|
|
|
0 |
706 |
Software Releases - RSS News |
|
|
|
0 |
752 |
Software Releases - RSS News |
|
|
|
0 |
802 |
Software Releases - RSS News |
|
|
|
0 |
919 |
Software Releases - RSS News |
|
|
|
0 |
902 |
Software Releases - RSS News |
|
|
|
0 |
957 |
Software Releases - RSS News |
|
|
|
0 |
1,125 |
UNIX and Linux RSS News |
|
|
|
0 |
638 |
Software Releases - RSS News |
|
|
|
0 |
875 |
Software Releases - RSS News |
|
|
|
0 |
836 |
Software Releases - RSS News |
|
|
|
0 |
749 |
Software Releases - RSS News |
|
|
|
0 |
922 |
Software Releases - RSS News |
|
|
|
0 |
1,557 |
UNIX and Linux RSS News |
|
|
|
0 |
923 |
Software Releases - RSS News |
|
|
|
0 |
850 |
Software Releases - RSS News |
|
|
|
0 |
1,116 |
UNIX and Linux RSS News |
|
|
|
0 |
1,090 |
Software Releases - RSS News |
|
|
|
0 |
896 |
Software Releases - RSS News |
|
|
|
0 |
720 |
Software Releases - RSS News |
|
|
|
0 |
982 |
Software Releases - RSS News |
|
|
|
0 |
1,378 |
Software Releases - RSS News |
|
|
|
0 |
970 |
Software Releases - RSS News |
|
|
|
0 |
679 |
Software Releases - RSS News |
|
|
|
0 |
1,330 |
Software Releases - RSS News |
|
|
|
0 |
1,262 |
Software Releases - RSS News |
|
|
|
0 |
771 |
Software Releases - RSS News |
|
|
|
0 |
701 |
Software Releases - RSS News |
|
|
|
0 |
727 |
Software Releases - RSS News |
|
|
|
0 |
986 |
UNIX and Linux RSS News |
|
|
|
0 |
744 |
Software Releases - RSS News |
|
|
|
0 |
664 |
Software Releases - RSS News |
|
|
|
0 |
719 |
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)