status_fail_date field is always 0000-00-00

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pcraponi
Posts: 3
Joined: Mon Jun 27, 2011 7:26 am

status_fail_date field is always 0000-00-00

Post by pcraponi »

Hi,

My host table always show the field status_fail_date as 0000-00-00 00:00:00.

Even if a host go down and go back. This field always show 0000-00-00 00:00:00 (the status_rec_date too).

In function.php have a:

if ($ping_failure_count == 1) {
$hosts[$host_id]["status_fail_date"] = date("Y-m-d H:i:s");


I think that the value never get "1". Right? Why this happen?

Because this, my monitor plugin always show the last fail as "NEVER". When the host is down, the time showed in monitor plugin is always crazy (like 15548d 17h 40m 25s in <DOWNTIME> variable).


How I can fix it? I use cacti v0.8.8a


Regards,

Paulo Raponi
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests