Availability Graph Template [Based on uptime]

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Availability Graph Template [Based on uptime]

Post by victorantunes »

Just thought I'd share a template that displays percentage availability. It's based on the ucd/net Uptime and it applies a few CDEFs based on the existence of an Uptime value.

I've only done a few tests with it, but so far they've worked on several machines.



Feedback, please.
Attachments
cacti_graph_template_availability.rar
(3.09 KiB) Downloaded 780 times
device availability
device availability
availability.png (13.02 KiB) Viewed 8143 times
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Re: Availability Graph Template [Based on uptime]

Post by argon0 »

Seems to work nicely - will keep an eye on it over the next little while....

Nice bit of CDEF work BTW - took a few minutes to work out what you were doing!

I've created another version which works on the hrSystemUptime variable, available for Windows devices via SNMP - looks to be working ....

I'm going to leave it for a while then look at getting it to work with individual services, though I expect this to be a little trickier.... (but you never know).
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Re: Availability Graph Template [Based on uptime]

Post by argon0 »

Nice....

I've fiddled with it a bit to get these two graphs, one is for Windows Availability %uptime based on an SNMP query of hrSysUptime on a Windows box. The second is a graph for service availabliity/uptime in %.

OK, for some reason I can't just upload these .xml
The upload was rejected because the uploaded file was identified as a possible attack vector.
...

So I've stuck them both in a zip... It should just be a matter of unzipping them and importing them...

The Win Service one should replace the standard win services graph, but may not, as I've renamed it.... let me know...
Availability Templates.zip
Availability in % of a windows box
(5.91 KiB) Downloaded 643 times
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Availability Graph Template [Based on uptime]

Post by phalek »

Both are exported on a 0.8.8a box, right ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Availability Graph Template [Based on uptime]

Post by victorantunes »

mine at least is 0.8.8a, as described here: http://docs.cacti.net/usertemplate:grap ... ailability
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Re: Availability Graph Template [Based on uptime]

Post by argon0 »

Yup, from cactiEZ 0.7...
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
VinxItak
Posts: 8
Joined: Wed May 29, 2013 7:09 am

Re: Availability Graph Template [Based on uptime]

Post by VinxItak »

Doesn't work on my CACTI 0.8.8a, the graph is always green, even if I stop snmp services or shutdown/reboot the server

Whereas the command for hrsystemuptime seems to work :

root@xxxxx # snmpwalk -Os -c public -v 2c servername.suffix.fr .1.3.6.1.2.1.25.1.1.0
hrSystemUptime.0 = Timeticks: (369312) 1:01:33.12
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Availability Graph Template [Based on uptime]

Post by victorantunes »

Note that the poller works, by default, every 5 minutes.
I'm not entirely familiar with how data normalization would work in this case, but what's probably happening is that such downtimes weren't long enough to be relevant to/captured by the poller process.

That's just my reasoning. I could be wrong.
However, it's been working nicely for me for quite some time now.
yugodriver
Posts: 1
Joined: Wed Aug 12, 2015 5:24 pm

Re: Availability Graph Template [Based on uptime]

Post by yugodriver »

Hello,

I have problem with the graph in my cacti. Availability is permanently down.

The unit is a Fortigate and the Cacti version is 0.8.8b.
snmpwalk on cacti server write this information:
admin@netmon ~ % snmpwalk -v 2c -c public 192.168.1.1 .1.3.6.1.4.1.12356.101.4.1.20
iso.3.6.1.4.1.12356.101.4.1.20.0 = Counter64: 2791928108

Any idea?
KhalidSiddig
Posts: 2
Joined: Mon May 13, 2024 7:50 am

Re: Availability Graph Template [Based on uptime]

Post by KhalidSiddig »

victorantunes wrote: Mon Feb 25, 2013 12:12 am Just thought I'd share a template that displays percentage availability. It's based on the ucd/net Uptime and it applies a few CDEFs based on the existence of an Uptime value.

I've only done a few tests with it, but so far they've worked on several machines.



Feedback, please.
'


can u update this template to work with the version 1.2.23 i really need a template graph to calculate the availability as % value from the downtime and uptime.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests