GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Nagios::Config::File(3) User Contributed Perl Documentation Nagios::Config::File(3)

Nagios::Config::File - Base class for Nagios configuration files

  use Nagios::Config ;
  my $nc = new Nagios::Config("/usr/local/nagios/etc/nagios.cfg") ;
  my $resource = $nc->get_resource_cfg() ; 
  print $resource->get_attr('$USER1$') . "\n" ;

"Nagios::Config::File" is the base class for all Nagios configuration files. You should not need to create these yourself.

new ([FILE])
Creates a "Nagios::Config::File".

get ([NAME], [SPLIT])
Returns the value of the attribute "NAME" for the current file. If "SPLIT" is true, returns a list of all the values split on /\s*,\s*/. This is useful for attributes that can have more that one value.
filename()
Returns the filename for the current object.
dump ()
Returns a scalar with the full configuration text ready to parse again.

Patrick LeBoutillier, patl@cpan.org

Al Tobey, tobeya@cpan.org

Nagios::Config, Nagios::Config::Object
2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.