[Nagiosplug-devel] new module in CVS
Bryan Liles
lilesb at ijet.com
Wed Mar 26 14:12:01 CET 2003
I've almost reworked osesm (not in cvs yet). In the new version, things are
much simpler:
use nagios::osesm;
my $osesm = new Nagios::Osesm::Cfg ("/path/to/config");
- or -
my $osesm = new Nagios::Osesm::Server("ip and port of server module");
foreach my $h ( keys %{$osesm->getHosts()} ) {
$h->getName;
.....
}
$osesm->save;
and so on and so forth.
On Wednesday 26 March 2003 04:58 pm, Subhendu Ghosh wrote:
> Yes - that's why I mentioned it ...
>
> On Wed, 26 Mar 2003, Bryan Liles wrote:
> > You do know that I wrote osesm, correct? :)
> >
> > On Wednesday 26 March 2003 04:07 pm, Subhendu Ghosh wrote:
> > > Would prefer OO based hashes. I liked the basic structure of the work
> > > in osesm, and also there is code in Russell's check_nagios_status
> > > plugin for status.log parsing.
> > >
> > > Additionally would like to see if we can either emulate the same auth
> > > functions in nagios/cgi/auth.c or wrap it directly into a XS module...
> > >
> > > -sg
> > >
> > > On Wed, 26 Mar 2003, Bryan Liles wrote:
> > > > What format are you going to parse them to? A hash? I have code
> > > > that does this (... still needs work). I would be willing to
> > > > contribute.
> > > >
> > > > \\\On Wednesday 26 March 2003 03:36 pm, Subhendu Ghosh wrote:
> > > > > I am thinks of creating a new module in the nagiosplug CVS for a
> > > > > perl module that can parse/write out nagios config files.
> > > > >
> > > > > This would help consolidate the various parsing routines the
> > > > > different people seem to be writing.
> > > > >
> > > > > yes/no
More information about the Devel
mailing list