Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Nagios::Config::File(3User Contributed Perl DocumentatiNagios::Config::File(3)

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

SYNOPSIS
	 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" ;

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

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

METHODS
       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.

AUTHOR
       Patrick LeBoutillier, patl@cpan.org

       Al Tobey, tobeya@cpan.org

SEE ALSO
       Nagios::Config, Nagios::Config::Object

perl v5.32.0			  2020-08-10	       Nagios::Config::File(3)

NAME | SYNOPSIS | DESCRIPTION | CONSTRUCTOR | METHODS | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Nagios::Config::File&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help