Nectar Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

chutwig
Posts: 2
Joined: Thu Jan 28, 2010 10:25 am

Post by chutwig »

I installed the version attached above to resolve the issue with the same graph showing up multiple times in each e-mail. In addition to the tag issue mentioned above, I had another problem where after I created a report, no reports were actually displayed in the list of reports available, the header said "Showing Rows -99 to 1 of 1 [1]", and the following error appeared in cacti.log:
01/28/2010 11:24:13 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT plugin_nectar.id, plugin_nectar.name, plugin_nectar.intrvl, plugin_nectar.count, plugin_nectar.offset, plugin_nectar.mailtime, plugin_nectar.from_email, plugin_nectar.email, plugin_nectar.attachment_type, plugin_nectar.lastsent, plugin_nectar.enabled FROM plugin_nectar ORDER BY name ASC LIMIT -100,100"
I resolved it by changing the line in nectar.php that reads

Code: Select all

" LIMIT " . (get_request_var_request("nectar_rows")*(get_request_var_request("page")-1)) . "," . get_request_var_request("nectar_rows"));
to

Code: Select all

" LIMIT " . get_request_var_request("nectar_rows"));
This doesn't fix the display bug, but it was a quick hack to get the list of reports displaying again.

Other than that, looks good, although for some reason when creating a new report I had to click on the tab each time to get it to display the various settings to be customized in the creation of the report (maybe an issue with Safari?).
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I'm getting close to a pretty big mod. These little bugs will be fixed.

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?
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Post by kevin_taco »

The latest build solved my problem with the same graph showing up multiple times. Thanks!

I like the new look-and-feel.

When I click the "Add" button nothing is displayed until I hit the "Details" button. Other than that it looks great. Thanks for this.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I have a few errors on your last Build.

Undefine variable 'sess_nectar_level'
no graphs can be added (see attached) the drop box is blank.
the program now it does not reteive back the information when trying to edit and Item.
like the TAB on the top...
Attachments
no information retreived when editing an Item
no information retreived when editing an Item
error 2.png (15.61 KiB) Viewed 3631 times
blank drop down box. no graphs can be added
blank drop down box. no graphs can be added
nectar error.png (16.96 KiB) Viewed 3631 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I assume you are pulling from SVN? I committed that for Reihnard to see what's going on, but it's not fully QA'd.

I have more changes today. When I am ready for you to test, I will post a tar.gz. Until then, don't assume SVN is stable. You may be able to upgrade, but you may have to hand update the database.

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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I did use the SVN as I saw the new changes, but it was applied to a test box that I have.MY live version is still the last tar file you posted, and is humming along great after the changes that you made.

I thought to test the svn and give you some feed back, that's all!

Cheers!! :wink:
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

No problem. I have a few more changes to make. It's going to take me a bit to pull this portion off... But it will happen in the next two hours.

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
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

All,

Please test the following. If you have already tested a prior 0.2 beta, you will have to edit setup.php, temporarily change the plugin version to something other than 0.2, refresh the nectar.php page and reset the version to 0.2.

TheWitness

Here is the ChangeLog
--- v0.20 ---
fix: Graphs were not being generated correctly in reports
fix: Resolve issues time in the past warnings during save
feature: Create two access levels: Admin and User
feature: Allow users to create and manage their own reports
feature: Allow more granular report item drilldown
feature: Re-introduce graph previews when adding graphs
feature: Break the Report edit screen into a tabbed view
feature: Remember the last host template and host when adding graphs
feature: Support the Tree object in the report
feature: Support title font size
feature: Support graph size, type and number of columns
feature: Support custom css and html wrappers for the reports
This is beta. There are still a few features that I would like to include.

TheWitness
Attachments
nectar-0.2.tar.gz
(47.39 KiB) Downloaded 136 times
Last edited by TheWitness on Mon Feb 01, 2010 7:55 am, edited 1 time in total.
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
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

TheWitness wrote:All,

Please test the following. If you have already tested a prior 0.2 beta, you will have to edit setup.php, temporarily change the plugin version to something other than 0.2, refresh the nectar.php page and reset the version to 0.2.
Hi,

not functionaly tested yet, but only to clarify: Just installed, it shows version 0.12 instead of 0.2.

Code: Select all

$ more setup.php

<?php
/*******************************************************************************

Author ......... Reinhard Scheck
based on work of Jimmy Conner
Contact ........ gandalf@cacti.net
Home Site ......
Program ........ Send Graphs by email
Version ........ 0.12
Purpose ........ Allows you to send graphs via Email

*******************************************************************************/
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Crap. Wrong version. How did that happen :( Once second. Re-uploading.

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
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is the correct version :) These things happen when you start to work too many hours.

TheWitness
Attachments
nectar-0.2.tar.gz
(47.39 KiB) Downloaded 119 times
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 »

Hi there,

I had the time to test the current release.
I removed the entire (old) nectar and started from the scratch.
Because of I am not very experiended in the "patch" command I made the changes to settings.php manually.

Nectar works - nice indeed. Graphs are correct but I tried .png only. Had a problem with unreadable graphs when choosing .jpg in the "in-between-versions" of this plug-in.

I'll keep on following that, good work guys!
Om Tat Sat
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hyperlord wrote:Hi there,

I had the time to test the current release.
I removed the entire (old) nectar and started from the scratch.
Because of I am not very experiended in the "patch" command I made the changes to settings.php manually.

Nectar works - nice indeed. Graphs are correct but I tried .png only. Had a problem with unreadable graphs when choosing .jpg in the "in-between-versions" of this plug-in.

I'll keep on following that, good work guys!
Yes, please test the two other file formats. I have not tested them at all.

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
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

When adding a graph item with the most recent posted here, I don't get a list of graphs. The list of graph templates seems about right, but selecting any of them produces an empty 'graph name' dropdown.

And *please* can there be an 'Any' for Host Template? I have no idea what template half my hosts use... :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Howie wrote:When adding a graph item with the most recent posted here, I don't get a list of graphs. The list of graph templates seems about right, but selecting any of them produces an empty 'graph name' dropdown.

And *please* can there be an 'Any' for Host Template? I have no idea what template half my hosts use... :-)
Howie,

PM me your Cacti.log for the time period when this happened. I suspect that theres a SQL error there. I'll get the other component in, but it may take me until tomorrow morning.

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?
Locked

Who is online

Users browsing this forum: No registered users and 0 guests