Connector with multiple peers
use Monitoring::Livestatus; my $nl = Monitoring::Livestatus::MULTI->new( qw{nagioshost1:9999 nagioshost2:9999 /var/spool/nagios/live.socket} ); my $hosts = $nl->selectall_arrayref("GET hosts");
Creates an \*(C`Monitoring::Livestatus::MULTI\*(C' object. \*(C`new\*(C' takes at least the server. Arguments are the same as in Monitoring::Livestatus.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
See Monitoring::Livestatus for more information.
$ml->disable()
disables this connection, returns the last state.
$ml->enable()
enables this connection, returns the last state.
Sven Nierlein, <[email protected]>
Copyright (C) 2009 by Sven Nierlein
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.