Nectar V0.22 released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

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

Post by TheWitness »

luckenbach wrote:Where does this error stem from

NECTAR: Poller[0] Unable to attach file, all attachments will exceed Max Size

I have reviewed my MTA settings and relay server and neither of which seem to complain, and I have done some digging around inside of the nectar stuff and cannot seem to find any limitations (although it could be looking at me in the face)
I don't have a clue :oops: Log a bug under "Cacti Plugins" at http://bugs.cacti.net
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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness wrote:The encoding looks fine now. I think the issue "may" be the html formatting. Let me know if you figure it out.

TheWitness
Didn't really figure it out, but I thought I'd get around it another way. For my internal email domain which uses MSExchange, it looked like postfix was sending these externally (which it should), meaning that the disclaimer got tagged onto the bottom of the email.

This caused the HTML to become garbled, and the report to not show correctly. For anyone else looking to do the same sort of thing, here's the steps

1. Edit /etc/postfix/transport. Here is what I added:
domain.com smtp:[xxx.xxx.xxx.xxx]

Obviously, "domain.com" needs to be your domain name, and "xxx.xxx.xxx.xxx" should be the IP Address of your Exchange Server

2. Run 'postmap /etc/postfix/transport' to update the db (mine is hash)

3. In /etc/postfix/main.cf, enable transport_maps by adding the below
transport_maps = hash:/etc/postfix/transport

4. Save main.cf

5. Issue service postfix restart

6. Test

Works fine for me - even better, is now NECTAR works how it should do ! :)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

So, e-mails are correct in postfix? If not, can you go to the next level with the postfix guys and let us know what is wrong with the e-mail format?

Larry
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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness wrote:So, e-mails are correct in postfix? If not, can you go to the next level with the postfix guys and let us know what is wrong with the e-mail format?

Larry
Larry,

Yes - sorry - POSTFIX works fine - it was never the issue in itself, but more to do with the way it was handling mail destined for our internal domain suffix. POSTFIX was (correctly) sending this outside, but using the wrong mail gateway (my bad).

Doing this meant that the emails were getting the dislclaimer added to the bottom, which hosed the HTML code = NECTAR doesn't work.

I've now got all emails sent from cacti to the local smtp domain being delivered directly to Exchange, which cures the problem. I posted my solution here in case someone else runs into the same situation :)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hmmm - just tried to send my nice new report, using the CACTI GROUP format file as a test, and the report gets delivered with all the graphs, but none of my formatting appears ? Seems to be using Times New Roman for a font ?

I have also ticked the "Use Custom Format HTML" box, and chose my format file from the "Format File to Use" box.

Any ideas ? Even a CHOWN -R to the www-data user, and setting all permissions 777 doesn't seem to make a difference either.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
luckenbach
Posts: 31
Joined: Thu May 07, 2009 9:21 am

Post by luckenbach »

TheWitness wrote:
luckenbach wrote:Where does this error stem from

NECTAR: Poller[0] Unable to attach file, all attachments will exceed Max Size

I have reviewed my MTA settings and relay server and neither of which seem to complain, and I have done some digging around inside of the nectar stuff and cannot seem to find any limitations (although it could be looking at me in the face)
I don't have a clue :oops: Log a bug under "Cacti Plugins" at http://bugs.cacti.net
http://bugs.cacti.net/view.php?id=1645
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

mcutting wrote:Hmmm - just tried to send my nice new report, using the CACTI GROUP format file as a test, and the report gets delivered with all the graphs, but none of my formatting appears ? Seems to be using Times New Roman for a font ?

I have also ticked the "Use Custom Format HTML" box, and chose my format file from the "Format File to Use" box.

Any ideas ? Even a CHOWN -R to the www-data user, and setting all permissions 777 doesn't seem to make a difference either.
PM me the format file.
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: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

luckenbach wrote:
TheWitness wrote:
luckenbach wrote:Where does this error stem from

NECTAR: Poller[0] Unable to attach file, all attachments will exceed Max Size

I have reviewed my MTA settings and relay server and neither of which seem to complain, and I have done some digging around inside of the nectar stuff and cannot seem to find any limitations (although it could be looking at me in the face)
I don't have a clue :oops: Log a bug under "Cacti Plugins" at http://bugs.cacti.net
http://bugs.cacti.net/view.php?id=1645
Update from SVN trunk and let us know if that's better. You will have to goto Settings->Misc and set the maximum e-mail size there.

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness wrote:
mcutting wrote:Hmmm - just tried to send my nice new report, using the CACTI GROUP format file as a test, and the report gets delivered with all the graphs, but none of my formatting appears ? Seems to be using Times New Roman for a font ?

I have also ticked the "Use Custom Format HTML" box, and chose my format file from the "Format File to Use" box.

Any ideas ? Even a CHOWN -R to the www-data user, and setting all permissions 777 doesn't seem to make a difference either.
PM me the format file.
Larry,

It's the Cacti_group.format file.

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok, then you need to review the CSS. There are classes for pretty much all the object types. So, you will have to setup a few things in the CSS.

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness wrote:Ok, then you need to review the CSS. There are classes for pretty much all the object types. So, you will have to setup a few things in the CSS.

TheWitness
Thanks. It looks fine when previewed from within Cacti, but once I send it to my email account, none of the CSS is included. Thought this might be another POSTFIX issue, but the same happens with Exchange.

Almost like the CSS file is not being included at all ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I'll have to review the html source again. You are using SVN right? I only have a few minutes before I have to go off. So, send it to me quickly. Having second cup of coffee.

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Larry - just sent you a PM with the format file (in text style).

It's basically a copy of the existing cacti_group file.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

mcutting wrote:Larry - just sent you a PM with the format file (in text style).

It's basically a copy of the existing cacti_group file.
Sorry - SVN updates pulled this morning.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Need the email source. Sorry.
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