Weekly Reporting

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
lsatkins
Posts: 4
Joined: Thu Jan 28, 2010 9:31 am

Weekly Reporting

Post by lsatkins »

Is there an add on that will allow me to send out emails on a regularly scheduled basis that shows what devices were down at that time and what went down during the week? I use the NMID up/down for sending out emails when a device becomes unreachable (which is great) but I would like to see historical data also.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Nectar plugin is meant to send reports on a scheduled basis.
It was intended to send graphs and text. It may turn out that a combination of nectar and a different plugin (the one that creates your history) may solve this.
Unfortunately, this is not yet implemented in any way. So let's discuss
R.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Weekly Reporting

Post by phalek »

lsatkins wrote:Is there an add on that will allow me to send out emails on a regularly scheduled basis that shows what devices were down at that time and what went down during the week? I use the NMID up/down for sending out emails when a device becomes unreachable (which is great) but I would like to see historical data also.
You mean something like this ?:

http://forums.cacti.net/viewtopic.php?t=36637
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
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

I just LOVE Nectar :)
Om Tat Sat
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Nectar is so sweat. Get it ;)
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I am just wondering how praising Nectar can help him have a history of up/down data being displayed ...


----

Nevertheless, an easy sollution to this would be to store the up/down data in either a rrd file or in the database.

Maybe someone knows if there is a way to have poller scripts run as the last thing during the poller cycle, after cacti did check the status of all the devices ?

Using a separate script as a data input method which reads out the status information of a device and stores that to a rrd file would allow the inclusion of the resulting graph in Nectar and nmidCreatePDF.

I simply "assume" that the device availaibilty is the first thing cacti checks before polling any devices ( which may not be true ).

It would be the simpliest solution as far as Ican think of ....
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
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's really easy actually. However, it could be much better.

1) The Cacti Log has the details on Up/Down/Recovering
2) The Host Table Has the Statistics
3) Reinhard and I have been having discussions to allow Nectar to be more of a general purpose Reporting tool, one that can be extended by other plugins as well as having enhancements inside of itself.

So, having a host up/down is as simple as grep'ing the Cacti log, awk'ing the pertinent messages, and building a table, and blowing out in e-mail.

That could be extended elsewhere.

It will happen. Mark my word. We are plugin crazy.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What about adding some plugin hook to nectar?
Any plugin, e.g. monitor, would then hook into nectar (that in turn uses code from "settings") to move its graphs/text/html code into a mail.
I will have to investigate, where to put those hooks. But the approahc seems quite straightforward to me.
R.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You hit the nail on the head. The plugin only needs to know how to format the SQL into a variable and return it to Nectar.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

Damn, I wanted to surprise the community with that idea and a beta version ^^
Om Tat Sat
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Hyperlord wrote:Damn, I wanted to surprise the community with that idea and a beta version ^^
I don't argue against beta versions written by someone else ...
Please suggest your ideas, let's discuss them and go for the code. I'm currently occupied by "correcting" the mailer class so it will work for Notes clients as well, so I won't cross your roads ...
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests