Can't add threshold for non host based graphs?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
straxusii
Posts: 5
Joined: Wed Sep 23, 2009 8:42 am

Can't add threshold for non host based graphs?

Post by straxusii »

I've got a number of monitors that aren't based on a single host device, I've added thresholds fine for all my device based hosts.

When I click add threshold the list shows me only devices, I can't create a threshold for a non device graph.

If I assign the datasource and graph to a dummy device then it lets me select the dummy device but my graph doesnt show in the graphs dropdown.

Surely this can't be a limitation of thold?

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

Post by TheWitness »

Sounds like a bug. Bug report here: http://bugs.cacti.net

The workaround is as follows:

1) Create Threshold Template
2) Select Graphs that you wish to apply template
3) From the drop down, Select "Create Threshold from Template"

Please let me know if this solves your problem. Again, you might want to consider a bug report on this.

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?
straxusii
Posts: 5
Joined: Wed Sep 23, 2009 8:42 am

Post by straxusii »

Hi thanks for the reply.

I create a Threshold template no problem but when I try to select 'create threshold from template' for either datasources or graphs I get:
"There are no Threshold Templates associated with the following Data Sources" or "There are no Threshold Templates associated with the following graphs"

I tried in chrome, FF and IE - same issues.

I can't see a way to associate my newly created threshold template with a datasource or graph.

I click yes to add the threshold but it tells me the threshold already exists.

I then get the following the cacti log: "09/24/2009 10:37:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM thold_template WHERE id=""

And the following in the php error log:

[24-Sep-2009 10:37:08] PHP Notice: Undefined index: thold_template_id in D:\www\sites\cacti\plugins\thold\setup.php on line 515

Looking in the thold_* tables doesnt give me any more cues, I see one row for the template I have created and 4 rows for my existing thresholds.
straxusii
Posts: 5
Joined: Wed Sep 23, 2009 8:42 am

Post by straxusii »

Can anyone tell me if they have been able to setup thresholds for non host/device based graphs?

My data input source is a custom PHP script
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I see the issue now. Time dependent (aka if I have enough today), you may see a commit today correcting this issue. You will have to watch the following svn:

svn://svn.cacti.net/var/svnroot/cacti_plugins/thold/branches/stable

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?
straxusii
Posts: 5
Joined: Wed Sep 23, 2009 8:42 am

Post by straxusii »

Nice one, thanks!

I'll keep an eye on the repository, I tried the latest on there now and it's still the same issues.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

svn is pretty much in flux. Be careful. jimmy is prepping a new major release.
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?
yugi
Posts: 6
Joined: Tue Sep 29, 2009 11:53 am

Post by yugi »

Hi Whitness,

When will it be possible to get an updated plugin?

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

Post by TheWitness »

I'm working with Jimmy to get it done. The changes in the last paid engagement are pretty significant. I would give you a patch, but because of the magnitude of the changes, that's going to be hard.

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?
ocwagonboy
Posts: 4
Joined: Fri Jul 13, 2007 11:34 am
Contact:

Re: Can't add threshold for non host based graphs?

Post by ocwagonboy »

Any movement here -- It is 2014? Is it in a newer release? I read through the rel notes but didn't see it.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests