Hi,
Status: Down
IP Address: X.X.X.X
Ping: 218.32 ms
Last Fail: 0000-00-00 00:00:00
Availability: 71.82%
Status: Up
IP Address: X.X.X.X
Ping: 194.49 ms
Last Fail: 0000-00-00 00:00:00
Availability: 99.9%
recently found out that the Last Failed counter or field is not updated.
Anyway, to debug this and find out why?
many thanks!
1.3-1 Device Monitoring
Cacti Version 0.8.8a
Cacti OS unix
SNMP Version NET-SNMP version: 5.4.3
RRDTool Version RRDTool 1.4.x
Hosts 359
Graphs 4617
[SOLVED] Monitor v1.3-1 plugin - last fail not working
Moderators: Developers, Moderators
[SOLVED] Monitor v1.3-1 plugin - last fail not working
Last edited by thomaslam on Fri Oct 12, 2012 2:53 am, edited 1 time in total.
Quard Xeon 2.6 cpu 16GB memory, 1.2 tera bytes(raid5), ubuntu-64bit-12.04 LTS, cacti 8.8a-3, spine,
Re: Monitor v1.3-1 plugin - last fail not working
Found a fix http://bugs.cacti.net/view.php?id=2257
there was a bug filed.
The functions.php was adapted as follows (function update_host_status):
$hosts[$host_id]["status_fail_date"] = '0000-00-00 00:00:00';
$hosts[$host_id]["status_rec_date"] = '0000-00-00 00:00:00';
In order to overcome the issue I changed the code by adding a check:
if ($hosts[$host_id]["status_fail_date"] == ""){
$hosts[$host_id]["status_fail_date"] = '0000-00-00 00:00:00';}
if ($hosts[$host_id]["status_rec_date"] == ""){
$hosts[$host_id]["status_rec_date"] = '0000-00-00 00:00:00';}
there was a bug filed.
The functions.php was adapted as follows (function update_host_status):
$hosts[$host_id]["status_fail_date"] = '0000-00-00 00:00:00';
$hosts[$host_id]["status_rec_date"] = '0000-00-00 00:00:00';
In order to overcome the issue I changed the code by adding a check:
if ($hosts[$host_id]["status_fail_date"] == ""){
$hosts[$host_id]["status_fail_date"] = '0000-00-00 00:00:00';}
if ($hosts[$host_id]["status_rec_date"] == ""){
$hosts[$host_id]["status_rec_date"] = '0000-00-00 00:00:00';}
Quard Xeon 2.6 cpu 16GB memory, 1.2 tera bytes(raid5), ubuntu-64bit-12.04 LTS, cacti 8.8a-3, spine,
Re: [SOLVED] Monitor v1.3-1 plugin - last fail not working
There a way to fix this via the monitor plugin, i.e. modify something in monitor.php where it outputs?
Asking as even though this is "fixed" it's fixed in >=0.8.9 which means God knows when (for example this was tagged fix in 2012 and it's 2015 and 0.8.8d just came out). Hit this problem myself and it's bad form to simply expect everybody to google and hopefully stumble across this forum post.
Asking as even though this is "fixed" it's fixed in >=0.8.9 which means God knows when (for example this was tagged fix in 2012 and it's 2015 and 0.8.8d just came out). Hit this problem myself and it's bad form to simply expect everybody to google and hopefully stumble across this forum post.
Re: [SOLVED] Monitor v1.3-1 plugin - last fail not working
pff bad bug fix
end 2016 function.php still not corrected
What a shame !!
end 2016 function.php still not corrected
What a shame !!
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Who is online
Users browsing this forum: No registered users and 1 guest