|
Nagios::Config::Object - Base class for Nagios configuration objects |
Nagios::Config::Object - Base class for Nagios configuration objects
use Nagios::Config ;
my $nc = new Nagios::Config("/usr/local/nagios/etc/nagios.cfg") ;
foreach my $object ($nc->get_objects('host')){
print $object->get('host_name') . "\n" ;
}
Nagios::Config::Object is the base class for all Nagios configuration
objects. You should not need to create these yourself.
Nagios::Config::Object.
NAME for the current object.
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.
Ex: my $value = $host_obj->get_attr('notification_period') ;
Ex: my @values = $service_obj->get_attr('host_name', 1) ;
Patrick LeBoutillier, patl@cpan.org
Nagios::Config, Nagios::Config::File, Nagios::Config::ObjectFile
|
Nagios::Config::Object - Base class for Nagios configuration objects |