Issue with monitor plugin not displaying correct "downtime"
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Sun Jan 15, 2017 6:44 pm
Issue with monitor plugin not displaying correct "downtime"
Hi All,
I've searched as best as I can and can't see anyone else having this issue or a fix for it. Have installed the monitor plugin (after installing cacti/monitor many many times before) and am seeing some strange behaviour. My system time is correct, in the technical info it shows as being correct, all hosts are showing 100% availability (yet I know one was down for approx 2 days). Yet what I'm seeing in monitor is all host are "down"/red and have their downtime listed into the hundred thousand of days... 736742d 9h 50m 59s at the time of writing this. All hosts show the same downtime.
(Cacti Version: 0.8.8h, Plugin Architecture Version: 3.1). Monitor v1.3
Any ideas please? Would be greatly appreciated
I've searched as best as I can and can't see anyone else having this issue or a fix for it. Have installed the monitor plugin (after installing cacti/monitor many many times before) and am seeing some strange behaviour. My system time is correct, in the technical info it shows as being correct, all hosts are showing 100% availability (yet I know one was down for approx 2 days). Yet what I'm seeing in monitor is all host are "down"/red and have their downtime listed into the hundred thousand of days... 736742d 9h 50m 59s at the time of writing this. All hosts show the same downtime.
(Cacti Version: 0.8.8h, Plugin Architecture Version: 3.1). Monitor v1.3
Any ideas please? Would be greatly appreciated
- Attachments
-
- 2017-01-16 10_53_09-Cacti.png (16.94 KiB) Viewed 1400 times
-
- Posts: 6
- Joined: Sun Jan 15, 2017 6:44 pm
Re: Issue with monitor plugin not displaying correct "downti
OK I found reference to http://bugs.cacti.net/view.php?id=2257 and now realise it's an old bug but cannot view it as I don't have a mantis account and it appears registration is disabled since bug tracking has moved to github.
Also most posts say that this issue is resoved, but as mentioned I'm running the latest cacti 0.8.8h and still seeing this problem.
Anyway, searching that URL I've found several other post referencing it that have some extra information about modifying the functions.php file to change the way cacti detects a host as "downed". I'm not a programmer so I'm going to try hacking it a bit to see if I can make it work.
Also most posts say that this issue is resoved, but as mentioned I'm running the latest cacti 0.8.8h and still seeing this problem.
Anyway, searching that URL I've found several other post referencing it that have some extra information about modifying the functions.php file to change the way cacti detects a host as "downed". I'm not a programmer so I'm going to try hacking it a bit to see if I can make it work.
-
- Posts: 6
- Joined: Sun Jan 15, 2017 6:44 pm
Re: Issue with monitor plugin not displaying correct "downti
I've tried doing the following "fix", but it doesn't seem to work. Anything else I'm missing?
In my functions.php file...
Commented out the existing two lines:
/* $hosts[$host_id]["status_fail_date"] = '0000-00-00 00:00:00'; */
/* $hosts[$host_id]["status_rec_date"] = '0000-00-00 00:00:00'; */
and put the following if statement in it's place:
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';}
No change in visibility. Host still appear down with huge offset of days.
In my functions.php file...
Commented out the existing two lines:
/* $hosts[$host_id]["status_fail_date"] = '0000-00-00 00:00:00'; */
/* $hosts[$host_id]["status_rec_date"] = '0000-00-00 00:00:00'; */
and put the following if statement in it's place:
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';}
No change in visibility. Host still appear down with huge offset of days.
-
- Posts: 6
- Joined: Sun Jan 15, 2017 6:44 pm
Re: Issue with monitor plugin not displaying correct "downti
Some help? Anyone? I've tried installing version 2.x which was on Github however whenever I try to copy one of those plugin folders to my cacti directory they don't appear in Plugin Management, if anyone knows why this is it may be another way around.
Re: Issue with monitor plugin not displaying correct "downti
The git version of the plugin will only work on the git version of Cacti (soon to be 1.0), it will not work on 0.8.8hpraetoriantmotc wrote:Some help? Anyone? I've tried installing version 2.x which was on Github however whenever I try to copy one of those plugin folders to my cacti directory they don't appear in Plugin Management, if anyone knows why this is it may be another way around.
-
- Posts: 6
- Joined: Sun Jan 15, 2017 6:44 pm
Re: Issue with monitor plugin not displaying correct "downti
Appreciate your response cigamit, that makes sense! Is it worth rebuilding my server on the git version? I haven't configured too much yet.
-
- Posts: 6
- Joined: Sun Jan 15, 2017 6:44 pm
Re: Issue with monitor plugin not displaying correct "downti
Also cigamit I've seen your name around over the years and know you're one of the developers, awesome work, I love Cacti
Any idea regarding the monitor issue I'm having? It seems like it's polling the servers but the "uptime/downtime" is way off per my first post.
Any idea regarding the monitor issue I'm having? It seems like it's polling the servers but the "uptime/downtime" is way off per my first post.
Re: Issue with monitor plugin not displaying correct "downti
Ya, it was a bug in the original plugin (or rather in Cacti that the plugin didn't account for). It was fixed in the current version, but I don't recall offhand what fixed it (I've made 100s of commits since then and slept a few times).
If you wait a few days, we should hopefully have 1.0 finalized, and then you can install it. You can also use the current git version, and then upgrade to 1.0 when its complete too. If there are any DB changes / fixes between now and then though, you would just have to rerun the upgrade script.
If you wait a few days, we should hopefully have 1.0 finalized, and then you can install it. You can also use the current git version, and then upgrade to 1.0 when its complete too. If there are any DB changes / fixes between now and then though, you would just have to rerun the upgrade script.
Who is online
Users browsing this forum: No registered users and 3 guests