Email Alerts not showing graphs in email message

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Email Alerts not showing graphs in email message

Post by kevin_taco »

Thold .4
Cacti 8.7d
PA 2.4

Wow. My second post today!

The alert/emails are working but the Graphs in the email is showing. The error is

Could not open!
http://cactiserver/cacti/graph_image.ph ... _type=tree

When I goto http://cactiserver/cacti/graph_image.ph ... _type=tree in my browser I get this error.

The image “http://cactiserver/cacti/graph_image.ph ... _type=tree” cannot be displayed, because it contains errors.

This all used to work before I did the upgrades the lastest versions referenced above.

Any help is greatly appreciated.
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Post by kevin_taco »

After further review and testing the graphs *do* show up when I create test thresholds. On the ones that do work the local_graph_id has a property value. But on this one that doesn't work the value is 0.

I'll have to do some more testing but is there any reason why the local_graph_id value would be 0?
User avatar
nebj00la
Cacti User
Posts: 112
Joined: Fri Feb 17, 2006 9:02 pm
Location: Massachusetts, USA
Contact:

Post by nebj00la »

I'm seeing similar behavior. local_graph_id is showing up as "0" in alert messages.

In this test message, the graph_id should have been 8209.

Code: Select all

<html><body>An alert has been issued that requires your attention. <br><br><strong>Host</strong>: <DESCRIPTION> (<HOSTNAME>)<br><strong>URL</strong>: <URL><br><strong>Message</strong>: <SUBJECT><br><br><GRAPH></body></html>

Code: Select all

Host: test (test)
An alert has been issued that requires your attention. 

URL: https://test//graph.php?local_graph_id=0&rra_id=1
Message: test - Netscreen Stats [sessionsAllocated] went above threshold of 5000 with 7420
Thanks,
nebj00la
djeffbee
Posts: 3
Joined: Tue Mar 10, 2009 10:15 am

Post by djeffbee »

Hey all, same issue. Any resolution to this?

If I attempt graphs with IP SLA (SAA) I do not receive graphs..

cacti//graph.php?local_graph_id=0&rra_id=1


The local_graph_id=0 appears to be the issue. Other graphs (errors/discards) work fine...
djeffbee
Posts: 3
Joined: Tue Mar 10, 2009 10:15 am

Post by djeffbee »

**BUMP**

Anyone have any ideas? Tried a few different things....
tamias
Posts: 49
Joined: Thu Oct 16, 2008 7:12 am

Post by tamias »

The same issue.

Host: Localhost (iMac24) (127.0.0.1)
URL: http://localhost/cacti//graph.php?local ... 0&rra_id=1
Message: Localhost (iMac24) - APC BackUPS 650CS Statistics [LINEV] went above threshold of 222 with 224

Could not open!
http://localhost/cacti//graph_image.php ... _type=tree


Any resolution to this?
Regards, Michail A.
MikeMcr
Posts: 17
Joined: Mon Jan 04, 2010 12:44 pm

Post by MikeMcr »

I have the same issue. Your log file is probably full of SQL errors where it tried to query the host id as null.

There appears to be a bug where if your graph does not use ALL the data sources available in the data template, Threshold fails in this way.

In the threshold item setup, you can see the available data sources - just make sure your graph uses them all (I added the missing ones as empty comments). That fixed it for me.

I hope this bug gets fixed as it is a bit painful having to use every data source on the graph even though you (and threshold) does not need it.
isbent
Posts: 2
Joined: Tue Nov 27, 2012 7:12 pm

Re: Email Alerts not showing graphs in email message

Post by isbent »

has there been any update on this, I can't find any similar posts, and this is exactly the issue I seem to be having.
Edit: I should note this is happening on three separate installations at three different locations.
With the Website Connection Statistics graph, there are the following data sources available -

http code
total time
namelookup time
connect time
size download
speed download
redirect time

When creating the graph you can choose two; I use Connect and Total time, because I'm only interested in if the site is up.

When creating the threshold I only have the option to select one data source - so I select total time.

The alert email will arrive with no graph?

Edited to include email -

An Alert has been issued that requires your attention.

Host: 4D (internalip)
URL: http://internalip//graph.php?local_graph_id=0&rra_id=1
Message: NORMAL: 4D - Website Connection Statistics [total_time] [total_time] Restored to Normal Threshold with Value 0.0419



Could not open!
http://internalip//graph_image.php?loca ... _type=tree

It's set to be an inline jpg?

Further edit to include;

The threshholds link to the graph via Tholds is broken.

GRAPH DOES NOT EXIST
CactiEZ
CentOS Linux 6.3
Cacti Version 0.8.8a
Thold 0.5
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests