[HOWTO] Availability Reporting

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

ptaylor874
Posts: 45
Joined: Fri Jan 04, 2008 11:45 am

Post by ptaylor874 »

Updated the original post and file attachment to version 1.2.
ptaylor874
Posts: 45
Joined: Fri Jan 04, 2008 11:45 am

Post by ptaylor874 »

Updated the original post and file attachement to version 1.3.

This version adds the much-requested weekly report.
Igloo
Posts: 22
Joined: Fri Dec 01, 2006 8:24 am

Post by Igloo »

where do you view that table?

I've installed the script...
ptaylor874
Posts: 45
Joined: Fri Jan 04, 2008 11:45 am

Post by ptaylor874 »

You should see that table in the emails that it generates...
janasj
Posts: 8
Joined: Fri Mar 13, 2009 4:36 pm

Post by janasj »

I am trying to install this in Windows server. What should be the format used for the temporary folder?

I tried "c://temp/" and it does not work.
janasj
Posts: 8
Joined: Fri Mar 13, 2009 4:36 pm

Post by janasj »

I found the format. I used "c:/temp/", however I do not see anything in this folder.
Is it something to do with permissions?
janasj wrote:I am trying to install this in Windows server. What should be the format used for the temporary folder?

I tried "c://temp/" and it does not work.
dng
Posts: 4
Joined: Tue Nov 15, 2005 11:28 am

Post by dng »

I have this script running, and it's great!

A possible future enhancement......

It would be nice to incorporate the dates/times that the poller failed for a particular device.

Device Availability Total Polls Failed Polls Failed Time
test-fw 99.30556 288 2 11:45pm, 11:50pm
test-sw 99.65278 288 1 5:25am

I don't know how you could make it look nice, perhaps another table below listing the times it failed or something. I can go look at my graphs for that device and see when it didn't poll/graph, but a summary would be even better!


Anyways, great script either way!
ioanaorghidan
Posts: 1
Joined: Tue May 12, 2009 8:33 am

hy,help me please

Post by ioanaorghidan »

S 451 See http://pobox.com/~djb/docs/smtplf.html.
Disconnected.
Cound not send the message to ...,.
Error: 451 See http://pobox.com/~djb/docs/smtplf.html.
jerrison
Cacti User
Posts: 57
Joined: Fri Dec 29, 2006 4:02 am

Post by jerrison »

hi

i came across another solution, just wanted to share:
http://forums.cacti.net/viewtopic.php?t=32996
kroyer22
Posts: 4
Joined: Thu Sep 11, 2008 10:13 am

Post by kroyer22 »

Does this Work on Windows? When I try to run it from a command prompt it just displays the php script.

Thanks in advance
kroyer22
Posts: 4
Joined: Thu Sep 11, 2008 10:13 am

Post by kroyer22 »

kroyer22 wrote:Does this Work on Windows? When I try to run it from a command prompt it just displays the php script.

Thanks in advance
I got this working in a Windows environment. At the beginning of availabilityReport.php I had to change "<?" to "<?php". Also the format of the temp drive is "C:/temp/". Hope this helps someone else.
minhcorp
Posts: 7
Joined: Fri Aug 07, 2009 4:35 am

hi

Post by minhcorp »

Hi all
How to install to cacti 0.8.7e, i don't know, please help me!
OS: Windows 2003 R2
cacti:0.8.7e
BR,
JeppeDepp
Posts: 1
Joined: Mon May 11, 2009 8:33 am

Im having problem with report

Post by JeppeDepp »

Hi,

I'm having trouble with the availability reports, especially the montly. Unfortunatly it doesn't reset the counter. So some of the devices accumulate the previous month as well.

Hopefully someone can help me.

Otherwise it is great!

Cacti Version 0.8.7b
Cacti OS unix
RRDTool Version RRDTool 1.3.x
simon.kirk
Posts: 10
Joined: Tue Nov 17, 2009 4:35 am
Location: UK

Brilliant

Post by simon.kirk »

This report function is brilliant useful - a nice clear/simple report that does everything needed availability wise.

I was just wondering if there was anyway someone could point me in the right direction.

I want to get the report to produce a html/php output file with the same contents as the email, so I can use superlinks or similar to add a tab showing the latest report- I don't want it to regenerate the data each time the page is visited, just display the same information that was in the last email.

Hope that makes sense, if anyone could help it would be great!
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

Will this also work for interface uptime?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest