Cactiusers.org


It is currently Thu May 17, 2012 7:56 am




Post new topic Reply to topic  [ 3 posts ] 
 thold and AIX template 
Author Message
New User

Joined: Tue Nov 15, 2005 8:51 am
Posts: 1
Post thold and AIX template
I use cacti to monitor arounda dozen of AIX servers (thanks to this template) and approx the same number of linux servers.
thold works perfectly on the linux devices but not when it comes to the AIX servers.

here is the error I get

Code:
Notice: Undefined offset: 0 in /var/www/html/monitor/plugins/thold/thold.php on line 91


any idea ?

thanks


Attachments:
untitled.jpg [23.16 KiB]
Downloaded 2340 times
Wed Nov 16, 2005 4:19 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: thold and AIX template
tomdeb wrote:
I use cacti to monitor arounda dozen of AIX servers (thanks to this template) and approx the same number of linux servers.
thold works perfectly on the linux devices but not when it comes to the AIX servers.

here is the error I get

Code:
Notice: Undefined offset: 0 in /var/www/html/monitor/plugins/thold/thold.php on line 91


any idea ?

thanks


This is happening for some reason that I haven't worked out yet. RRD isn't properly returning the data to us as it does normally. The wierd thing is that I have only found this to be a problem for certain custom templates, but can't find anything in the templates itself that are wrong.

No matter for what time period I poll for, Cacti's internal functions don't return any data. Running the command from the command line does return proper data though, I have almost narrowed it down to the Regex's inside the Cacti function, but am not 100% sure yet.


Mon Nov 21, 2005 9:59 am
New User

Joined: Tue Nov 29, 2005 3:59 pm
Posts: 3
Post 
I went looking through the code, and found the value of $graph on line 91 was null.

I put in an echo statement to see what values were being returned.

I displayed the value of $rrdlookup which came back 393 then ran the SQL query in the line $grapharr = db_fetch_assoc("SELECT DISTINCT local_graph_id FROM graph_templates_item WHERE task_item_id=$rrdlookup");

From phpMyAdmin on the Cacti data. No value was returned. I looked at the graph_templates_item table and didn't find that value in it for any of the task_item_id field.

I set up this custom data source myself, and I don't specifically know what the task_item_id is. If I can find how it relates to the graph I want to watch with thold, I can put this value in the table for thold to find.

The custom template is for a product called weathergoose which monitors the environment, temp, humidity, light, etc.

Does this help any?

Chuck


Sat Dec 10, 2005 7:23 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron