AIX Host Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
morrisdavidj
Posts: 6
Joined: Mon Feb 14, 2005 2:14 pm
Location: Washington State

Post by morrisdavidj »

I recently installed 0.8.6d on another box. I was able to import these AIX templates and get up and going without problem in a 0.8.6c environment. I am now receiving the following error:

Warning: Variable passed to each() is not an array or object

In looking at other posts, it appears that this can sometimes be fixed with making sure the path name is correct in the data queries and that the .xml files exist in that location. These check out as okay here.

What seems to be the key to importing templates created in a different version of cacti?

Any help is greatly appreciated. Thanks.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Did you remember to copy the resource XML file to the resource directory?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
morrisdavidj
Posts: 6
Joined: Mon Feb 14, 2005 2:14 pm
Location: Washington State

Post by morrisdavidj »

Tony,

The .xml files exist in /resources/snmp_queries/ and the data query shows "successfully located xml file."

When clicking on the associated graph template, the "not an array or object" error comes up with each data source.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you tried reloading the template?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
morrisdavidj
Posts: 6
Joined: Mon Feb 14, 2005 2:14 pm
Location: Washington State

Post by morrisdavidj »

Tony,

I did try and reload the template, still receiving the same error. The error only occurs on the templates associated with a data query. The CPU template which does not rely on a query works fine.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

All templates related to any data query?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
morrisdavidj
Posts: 6
Joined: Mon Feb 14, 2005 2:14 pm
Location: Washington State

Post by morrisdavidj »

Tony,

Sorry, I was referring only to the AIX templates. The default templates which are included in the Cacti installation that run from a data query work fine.
hootjr29
Posts: 20
Joined: Mon Feb 14, 2005 1:41 pm

Post by hootjr29 »

Tony or anyone else,

Has anyone been able to monitor memory used in AIX?
kiw0r
Posts: 18
Joined: Fri Jun 17, 2005 4:26 am

Anybody has a good snmp agent for Aix 4.2 and 5.2 ?

Post by kiw0r »

Anybody have a good SNMP agent for AIX that :

- don't segfault
- give interface statistic without blocking it self
- works on 64bits machines as well ?

Because this "snmp" on original AIX is really a blooooooody pain in the ass.....

/Xavier
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: Anybody has a good snmp agent for Aix 4.2 and 5.2 ?

Post by rony »

kiw0r wrote:Because this "snmp" on original AIX is really a blooooooody pain in the ass.....
You are correct, it is a PITA!!

You can attempt to compile NET-SNMP on the AIX boxes. Some people have had very good luck with this, I have yet to try it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kiw0r
Posts: 18
Joined: Fri Jun 17, 2005 4:26 am

Re: Anybody has a good snmp agent for Aix 4.2 and 5.2 ?

Post by kiw0r »

rony wrote:You can attempt to compile NET-SNMP on the AIX boxes. Some people have had very good luck with this, I have yet to try it.
I did... On AIX 5.2 on P650 I have segfault for anything... or half done stats... So that's why I am asking that because :

- either the compiler I use (xlc) is buggy
- either the operating system is brain damaged so I cannot use it...

Whatever the choice AIX's snmp is a PITA and the compiler seems also to be brain damaged.
afieffe
Posts: 7
Joined: Tue Aug 30, 2005 8:14 am
Location: Paris, France

Post by afieffe »

Hi,

The only way i've found to monitor memory usage and activity on my AIX boxes is to user the perf agent from IBM.

It provides a lot of stats about the host activity :
http://www.oidview.com/mibs/2/XMSERVD-PERF-MIB.html

Regards
Obi-Wan-YJ
Posts: 2
Joined: Wed Sep 21, 2005 11:15 am
Location: Lincoln, NE
Contact:

AIX Disk I/O Throughput

Post by Obi-Wan-YJ »

I'm using the AIX template on our 5.2 boxen, and it works great. However, I'd really like to be able to monitor disk I/O, similar to what's available from "iostat -d" or "topas". Is there an easy way to pull this via remote SNMP? I don't see it in the AIX template posted earlier.

I don't have the extra Performance Aide (PTX) package installed, and I don't intend to pay for it just to be able to monitor disk throughput. :-(
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I think you do need that package to get those stats through SNMP. Otherwise, you can use utilties such as Nmon to export them to a text file and then read them with cacti that way.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
hootjr29
Posts: 20
Joined: Mon Feb 14, 2005 1:41 pm

Post by hootjr29 »

Tony,

Have you been able to monitor uptime in AIX? I've tried some the other uptime scripts in this forum that referent hrSystemUptime. When I use that on my linux and windows systems, everything works fine. However, in AIX the graph shows a number that seems to be days that its been up. But the graph never changes like it does for windows and linux.

Any suggestions?

Joe
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests