mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Fix the proxmox-agent for Proxmox VE 4.0
This commit is contained in:
@ -34,11 +34,15 @@ my $conn = PVE::API2Client->new(
|
|||||||
csrftoken => $csrftoken,
|
csrftoken => $csrftoken,
|
||||||
);
|
);
|
||||||
|
|
||||||
my $clustername = $conn->get("/api2/json/cluster/ha/config")->{'data'}->{'children'}[0]{'name'};
|
foreach my $child (@{$conn->get("/api2/json/cluster/status")->{'data'}}) {
|
||||||
if (!defined($clustername)) {
|
if ($child->{'type'} eq "cluster") {
|
||||||
$clustername = $hostname;
|
$clustername = $child->{'name'};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined($clustername)) {
|
||||||
|
$clustername = $hostname;
|
||||||
|
}
|
||||||
|
|
||||||
print "<<<app-proxmox>>>\n";
|
print "<<<app-proxmox>>>\n";
|
||||||
|
|
||||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
librenms-agent (1.0.3) stable; urgency=low
|
||||||
|
|
||||||
|
- Fix the proxmox-agent for Proxmox VE 4.0
|
||||||
|
|
||||||
|
-- Mark Schouten <mark@tuxis.nl> Wed, 04 Nov 2015 14:33:00 +0200
|
||||||
|
|
||||||
librenms-agent (1.0.2) stable; urgency=low
|
librenms-agent (1.0.2) stable; urgency=low
|
||||||
|
|
||||||
- Include a Proxmox-agent
|
- Include a Proxmox-agent
|
||||||
|
Reference in New Issue
Block a user