[SOLVED] want the exact time that a device down?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

[SOLVED] want the exact time that a device down?

Post by saya »

hi
I'd like cacti to include the down time in the alert message like: device name(ip) is down at 15:02, 25 Feb
so I add status_fail_date to the alert msg in thold/setup.php function: thold_update_host_status(). It works, but it's not exactly what I want...
let's say cacti polls at 15:00, 15:05...and the device does actually turn down at 15:02. If do it in the above way, it returns me 15:05. But I want 15:02 in fact...
How can I get this 15:02 from cacti?

Thanks a lot!!
Saya
Last edited by saya on Tue Feb 26, 2008 7:34 pm, edited 1 time in total.
kyosanim
Posts: 37
Joined: Thu Apr 05, 2007 5:33 am

Re: want the exact time that a device down?

Post by kyosanim »

saya wrote:hi
I'd like cacti to include the down time in the alert message like: device name(ip) is down at 15:02, 25 Feb
so I add status_fail_date to the alert msg in thold/setup.php function: thold_update_host_status(). It works, but it's not exactly what I want...
let's say cacti polls at 15:00, 15:05...and the device does actually turn down at 15:02. If do it in the above way, it returns me 15:05. But I want 15:02 in fact...
How can I get this 15:02 from cacti?

Thanks a lot!!
Saya
i think there is no way to get the "down-information" between 2 poller runs.

you can change your polling interval and all your templates to 1 minute polling. the "down-information" is a bit more exact.
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

Re: want the exact time that a device down?

Post by saya »

kyosanim wrote:
i think there is no way to get the "down-information" between 2 poller runs.

you can change your polling interval and all your templates to 1 minute polling. the "down-information" is a bit more exact.
Thank you for ur reply...
but is it possible that a device push an interrupt to cacti to notify the down information in stead of cacti itself pulling the information each other 300 secs? :oops: :oops: :oops:
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

is it an option to use 1 minute polling interval (with Cacti >= 0.8.7) ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

Post by saya »

fmangeant wrote:Hi

is it an option to use 1 minute polling interval (with Cacti >= 0.8.7) ?
yes it could be a way..and would return things like 15:01:00, 15:02:00...
but I did see some one got message like 15:01:24, 15:02:48, it's also showing the seconds...I guess they made a shorter interval for polling

Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests