[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: Moderators, Developers

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

#16 Post by ptaylor874 » Wed Jul 02, 2008 8:14 am

Updated the original post and file attachment to version 1.2.

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

#17 Post by ptaylor874 » Tue Sep 02, 2008 11:48 am

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

#18 Post by Igloo » Tue Nov 25, 2008 4:42 am

where do you view that table?

I've installed the script...

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

#19 Post by ptaylor874 » Tue Nov 25, 2008 10:57 am

You should see that table in the emails that it generates...

janasj
Posts: 8
Joined: Fri Mar 13, 2009 4:36 pm

#20 Post by janasj » Tue Mar 31, 2009 9:36 am

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

#21 Post by janasj » Tue Mar 31, 2009 12:07 pm

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

#22 Post by dng » Fri Apr 17, 2009 9:26 am

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

#23 Post by ioanaorghidan » Tue May 12, 2009 8:35 am

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: 55
Joined: Fri Dec 29, 2006 4:02 am

#24 Post by jerrison » Tue Jun 23, 2009 5:58 am

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

#25 Post by kroyer22 » Tue Aug 25, 2009 2:28 pm

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

#26 Post by kroyer22 » Thu Aug 27, 2009 12:33 pm

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

#27 Post by minhcorp » Wed Oct 07, 2009 4:35 am

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

#28 Post by JeppeDepp » Thu Oct 08, 2009 3:58 am

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

#29 Post by simon.kirk » Tue Nov 17, 2009 4:37 am

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

#30 Post by msab » Wed Nov 18, 2009 1:06 pm

Will this also work for interface uptime?

Post Reply