Tirex::Munin(3pm) | User Contributed Perl Documentation | Tirex::Munin(3pm) |
Tirex::Munin - Parent class for Munin scripts
my $m = Tirex::Munin::SomeSubclass->new(...) if ($ARGV[0] eq 'config') { print $m->config(); } else { $m->init(...) or die; print $m->fetch(); }
Parent class for Munin scripts. This class is never instantiated, create subclasses instead.
Create new munin object.
Do the right Munin action depending on command line.
All command line args are passed to init_data().
Initialize config source.
This method is called from new(), in the Tirex::Munin class it does nothing, but can be overwritten in subclasses.
Return config in Munin format.
This method must be overwritten in subclasses.
Initialize data source.
This method must be called before fetch(), in the Tirex::Munin class it does nothing, but can be overwritten in subclasses.
Return data in Munin format.
This method must be overwritten in subclasses.
Create Id from name by changing all characters except A-Z, a-z, and 0-9 to a _ (underscore).
2023-04-11 | perl v5.36.0 |