track downtime?
Moderators: Developers, Moderators
-
- Posts: 30
- Joined: Thu Feb 16, 2012 7:37 am
track downtime?
Is there a plugin that archives when downtimes occur? Monitor seems to only store the last failure date/time. I'm finding myself in need of a monthly or weekly graph for response failures.
Thanks for replying, i'm having trouble finding the keyword to search for.
Thanks for replying, i'm having trouble finding the keyword to search for.
-
- Posts: 30
- Joined: Thu Feb 16, 2012 7:37 am
Re: track downtime?
Thold seems to in the fact that you will recieve Email messages that you could then tally yourself and make graphs.
I'm looking for a something that will track and allow for reporting on outtages per month with duration and things of that nature.
I'm looking for a something that will track and allow for reporting on outtages per month with duration and things of that nature.
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: track downtime?
Let me see if I understand this.
Uptime prints whenever the device is responding.
Now, you want actual visual information displaying when the device was down, instead of simply searching for empty stuff in the Uptime graph.
If that is what you want, then you could make a graph template to display downtimes by going through a not-so-complicated logic.
Not long ago I built one (not really useful really, was more like of an exercise test) that shows whenever a device is available.
Use the udc/net uptime data source and build a CDEF that, whenever exists a value, the graph displays 1, and displays 0 whenever there's no data.
See attached image, orange graph. I based it off the Generic Uptime template, but the result should be the same for the ucd/net Uptime.
CDEF:
Now, modifying it to instead show downtimes instead of uptimes is only a matter of messing a little with the CDEF. Should be easy, really.
I can try it later and post the results if you're not too familiar with it.
Hope it helps, and also hope I understood your question right, otherwise I'll just look like a fool
Uptime prints whenever the device is responding.
Now, you want actual visual information displaying when the device was down, instead of simply searching for empty stuff in the Uptime graph.
If that is what you want, then you could make a graph template to display downtimes by going through a not-so-complicated logic.
Not long ago I built one (not really useful really, was more like of an exercise test) that shows whenever a device is available.
Use the udc/net uptime data source and build a CDEF that, whenever exists a value, the graph displays 1, and displays 0 whenever there's no data.
See attached image, orange graph. I based it off the Generic Uptime template, but the result should be the same for the ucd/net Uptime.
CDEF:
Code: Select all
CURRENT_DATA_SOURCE,1,GT,1,0,IF
I can try it later and post the results if you're not too familiar with it.
Hope it helps, and also hope I understood your question right, otherwise I'll just look like a fool
- Attachments
-
- avail.png (29.39 KiB) Viewed 5590 times
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: track downtime?
So I did some little tweaking and achieved something I didn't expect to.
Would this be something like what you want?
Yes, I only powered up my machine a few times last week, and for only a few hours each time.
Would this be something like what you want?
Yes, I only powered up my machine a few times last week, and for only a few hours each time.
- Attachments
-
- Uptime + downtime in percentage.
- availability.png (16.49 KiB) Viewed 5587 times
Re: track downtime?
The reason I mentioned THOLD is because it has a history button that let's you see the history of downtimes. But it doesn't provide a graph like you would like.
Smokeping could probably do that well for you too.
-Dan
Smokeping could probably do that well for you too.
-Dan
Please mark the topic solved if this resolves your problem.
-
- Posts: 30
- Joined: Thu Feb 16, 2012 7:37 am
Re: track downtime?
I realise now that I should share these devices are being monitored via ping, they are not SNMP enabled and I'm not graphing them only using monitor to alert me when they go down.
Sounds like I need to start graphing them before i can use either recomendation.
Thanks for the help guys! I know i'm only using about 2% of Cacti's capabilities.
Sounds like I need to start graphing them before i can use either recomendation.
Thanks for the help guys! I know i'm only using about 2% of Cacti's capabilities.
-
- Posts: 30
- Joined: Thu Feb 16, 2012 7:37 am
Re: track downtime?
Okay, got my graph working correctly now. How do I apply this CDEF?
Re: track downtime?
Hi! Almost 10 years later... THANKS A LOT! This trick is awesome! Because CDEF Funtions are not may type of options to graph.victorantunes wrote: ↑Mon Oct 01, 2012 2:18 pm Let me see if I understand this.
Uptime prints whenever the device is responding.
Now, you want actual visual information displaying when the device was down, instead of simply searching for empty stuff in the Uptime graph.
If that is what you want, then you could make a graph template to display downtimes by going through a not-so-complicated logic.
Not long ago I built one (not really useful really, was more like of an exercise test) that shows whenever a device is available.
Use the udc/net uptime data source and build a CDEF that, whenever exists a value, the graph displays 1, and displays 0 whenever there's no data.
See attached image, orange graph. I based it off the Generic Uptime template, but the result should be the same for the ucd/net Uptime.
CDEF:Now, modifying it to instead show downtimes instead of uptimes is only a matter of messing a little with the CDEF. Should be easy, really.Code: Select all
CURRENT_DATA_SOURCE,1,GT,1,0,IF
I can try it later and post the results if you're not too familiar with it.
Hope it helps, and also hope I understood your question right, otherwise I'll just look like a fool
Use:
1. GENERIC SNMP OID graph template.
2. Set any OID (like CPU, or RAM USED, etc...)
3. Config the CDEF function.
4. SET the CDEF funtion in the graph template.
5. Create a new graph.
6. ENJOY!
-
- Posts: 2
- Joined: Mon May 13, 2024 7:50 am
Re: track downtime?
can u please attach this template updated for cacti version 1.2.23.victorantunes wrote: ↑Mon Oct 01, 2012 4:14 pm So I did some little tweaking and achieved something I didn't expect to.
Would this be something like what you want?
Yes, I only powered up my machine a few times last week, and for only a few hours each time.
Re: track downtime?
I wrote small plugin for this. https://github.com/xmacan/plugin_uptime/
I have a feeling it has some bug now, it's acting weird for some devices, but it should work
I have a feeling it has some bug now, it's acting weird for some devices, but it should work
Let the Cacti grow!
Who is online
Users browsing this forum: No registered users and 0 guests