AIX Host Template

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

Moderators: Developers, Moderators

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

Post by rony »

Are the rrdtool files being created?
[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]
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

no graphs

Post by Hiney »

yes they are.

i have posted a problem in help:general

http://forums.cacti.net/viewtopic.php?p=82571#82571

as i thought it was more pertinent, but considering the problem may be the AIX template, i may be wrong on that thought.


  • -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:56 hostname_aixfsusedinodes_473.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:57 hostname_aixfsusedinodes_474.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:58 hostname_aixfsusedinodes_475.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:59 hostname_aixfsusedinodes_476.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:55 hostname_aixfsusedinodes_477.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 09:26 hostname_aixfsusedinodes_478.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:56 hostname_aixfsusedinodes_479.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:57 hostname_aixfsusedinodes_480.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:58 hostname_aixfsusedinodes_481.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:59 hostname_aixfsusedinodes_482.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:55 hostname_aixfsusedinodes_483.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:56 hostname_aixfsusedinodes_484.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:57 hostname_aixfsusedinodes_485.rrd
    -rw-r--r-- 1 nagios nagios 367K 2006-11-07 11:58 hostname_aixfsusedinodes_486.rrd
    -rw-r--r-- 1 nagios nagios 94K 2006-11-07 11:59 hostname_aixpagepercent_487.rrd
    -rw-r--r-- 1 nagios nagios 94K 2006-11-07 11:55 hostname_aixpagepercent_488.rrd
    -rw-r--r-- 1 nagios nagios 185K 2006-11-07 11:56 hostname_aixpvfree_489.rrd
    -rw-r--r-- 1 nagios nagios 185K 2006-11-07 11:57 hostname_aixpvfree_490.rrd
    -rw-r--r-- 1 nagios nagios 185K 2006-11-07 11:58 hostname_aixpvfree_491.rrd
    -rw-r--r-- 1 nagios nagios 458K 2006-11-07 11:58 hostname_aixvgsize_492.rrd
    -rw-r--r-- 1 nagios nagios 458K 2006-11-07 11:59 hostname_aixvgsize_493.rrd
    -rw-r--r-- 1 nagios nagios 458K 2006-11-07 11:55 hostname_aixvgsize_494.rrd
    -rw-rw-r-- 1 nagios nagios 185K 2006-10-27 15:53 hostname_hdd_free_255.rrd
    -rw-rw-r-- 1 nagios nagios 185K 2006-10-27 15:54 hostname_hdd_free_256.rrd
    -rw-rw-r-- 1 nagios nagios 185K 2006-10-27 15:55 hostname_hdd_free_257.rrd
    -rw-rw-r-- 1 nagios nagios 185K 2006-10-27 15:56 hostname_hdd_free_258.rrd
    -rw-rw-r-- 1 nagios nagios 276K 2006-10-27 15:53 hostname_load_1min_252.rrd
    -rw-r--r-- 1 nagios nagios 276K 2006-11-07 11:59 hostname_load_1min_390.rrd
    -rw-rw-r-- 1 nagios nagios 94K 2006-10-27 15:56 hostname_mem_buffers_250.rrd
    -rw-r--r-- 1 nagios nagios 94K 2006-11-07 11:57 hostname_mem_buffers_388.rrd
    -rw-rw-r-- 1 nagios nagios 94K 2006-10-27 15:52 hostname_mem_swap_251.rrd
    -rw-r--r-- 1 nagios nagios 94K 2006-11-07 11:58 hostname_mem_swap_389.rrd
    -rw-rw-r-- 1 nagios nagios 94K 2006-10-27 15:55 hostname_proc_254.rrd
    -rw-r--r-- 1 nagios nagios 94K 2006-11-07 11:56 hostname_proc_392.rrd
    -rw-rw-r-- 1 nagios nagios 94K 2006-10-27 15:54 hostname_users_253.rrd
    -rw-r--r-- 1 nagios nagios 94K 2006-11-07 11:55 hostname_users_391.rrd
thanks
H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

aix template problem

Post by Hiney »

has anyone else had a problem with "Unit Grid Value" in the AIX graph templates ?? I'm using rrdtool 1.2.x and it seems that the rrd.php format is suitable to the older version of rrdtool.

Can the maker of the AIX templates respond and let us know what he/she/it knows ?

H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I am the maker of this template. It works fine with rrdtool 1.2.x, because I built it on a system that uses it. But that is irrelavant, as that does not matter for templates.

What version of Cacti are you running?
[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]
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

latest and greeatest

Post by Hiney »

What version of Cacti are you running?
0.8.6i

i ask about the templates, as the "Unit Grid Value" (which in turn causes the invalid --y-grid error) had to come from somewhere.

Don't take me wrong, i know the --y-grid error is in the php and not the template.

anyway, I've removed the "Unit Grid Value" entres and now the graphs are working.

H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Looks like I'm missing some of the knowledge a previous user asked about as well - how do you get these extended OIDs implemented? I'm guessing that you do it on the target machine, as opposed to Cacti machine, but how...exactly?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

As a follow on question, I've gotten this host template in place and for one AIX box it is getting data. It is also updating the rrd files. However, I'm only getting two graphs in Cacti.

I've had a lot of weird things happen to me with Cacti (almost always a user error :) ) but I'm pretty sure I haven't see this one before...
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Have I got a new "old problem"?

http://forums.cacti.net/viewtopic.php?t ... t&start=15

That's the error I'm getting from many of these graphs myself - going to correct it now.
HRH_H_Crab
Posts: 2
Joined: Thu Dec 21, 2006 6:14 am

Post by HRH_H_Crab »

Im using this AIX template and for non HACMP LPARS it works very well indeed. For those LPARS that are using HACMP, however, nothing is returned:

Code: Select all

dan@ngct1:~$ snmpwalk -c public -v 1 172.29.6.9 -O fn 1.3.6.1.4.1.2.6.191
dan@ngct1:~$
Im fairly new to Cacti, AIX AND snmp, but I am guessing that this OID isnt the right one to use for AIX HACMP stuff. Can anyone assist?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

I've got all of the scripts/templates working for AIX now - thanks to everyone. However, the one thing my AIX admins would still like to have, that they have via nmon (and I'm trying to avoid using nmon so that I can avoid using scripts via Cacti) is disk performance. It seems like it would be nothing to graph the results of iostat but again that would be a script based push/pull.

So the questions is, can you get this data via snmp? I found this article but am hopeful someone else might have already done it (and none of the rest of us needs to re-invent the wheel so far as Cacti configuration goes and possibly even the mib files) or there's an easier way:
http://www-941.ibm.com/collaboration/wi ... Monitoring

Plus, I'm not sure we own all of the software required to do that. I do know that our tivoli implementation was able to get this data and that it used SNMP for some things, just not sure that it used it for everything.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

rony wrote: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.
We've got the package, how do we get the disk I/O data?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Hopefully I can attach an excerpt of our mib.defs file, as well as the MIB that was used to add it.

We still don't have the system configured correctly to view these - but we should be able to. smux required? Well, maybe someone here with more knowledge than I will be able to figure it out. I would just love to avoid running scripts to get this data.
Attachments
mib.defs.txt
(36.64 KiB) Downloaded 987 times
XMSERVD-PERF-MIB.mib.txt
(68.34 KiB) Downloaded 1064 times
HRH_H_Crab
Posts: 2
Joined: Thu Dec 21, 2006 6:14 am

Post by HRH_H_Crab »

Just bumping as I am still not clear how to get stuff for the HACMP LPARS.
Something seems to change the snmp configuration when HACMP is installed which makes it unreadable. Is there a Cacti plugin for HACMP?
Anyone got any pointers?
spieg
Posts: 23
Joined: Tue Dec 27, 2005 1:12 pm

Post by spieg »

rony: Thanks for putting all of this together.

Hiney: Thanks for outlining your setup, the problems you had, and the solutions you found.

Using the contributions in this thread, im happily monitoring my AIX 5.2 boxes with cacti.
rafa
Posts: 1
Joined: Fri May 11, 2007 11:52 am
Location: Montevideo

Re: Help with AIX snmpd

Post by rafa »

I am having exactly this same problem. Did you fix it?
skwasha wrote:Ok... I can import the templates just fine. Thanks for those!

However, I'm still having issues getting the snmpd to work as expected.

Current config is:

snmpd.conf -

Code: Select all

logging         file=/usr/tmp/snmpd.log         enabled
logging         size=0                          level=0

community       password 10.121.25.xx 255.255.255.255 readOnly
community       password 10.121.100.xx
community       public localhost
community       public 10.121.90.xx 255.255.255.255 readOnly
#community       private 127.0.0.1 255.255.255.255 readWrite
#community       system  127.0.0.1 255.255.255.255 readWrite 1.17.2

view            1.17.2          system enterprises view

trap            public          127.0.0.1       1.2.3   fe      # loopback

#snmpd          maxpacket=1024 querytimeout=120 smuxtimeout=60

smux            1.3.6.1.4.1.2.3.1.2.1.2         gated_password  # gated
smux            1.3.6.1.4.1.2.3.1.2.2.1.1.2     dpid_password   #dpid


snmpd smuxtimeout=200 #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd
I have snmpd, hostmibd, aixmibd, snmpmibd, and dpid2 all running. If I try

Code: Select all

> snmpinfo -m dump -v | grep hrStorageDescr
genErr at position 1
From the 10.121.25.xx box I do snmpwalk and get a bunch of the standard interface stats, etc. and then:

Code: Select all

SNMPv2-SMI::mib-2.12.1.1.8.1 = INTEGER: 2
SNMPv2-SMI::mib-2.12.2.1.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.12.2.1.2.1 = Hex-STRING: 00 00 00
SNMPv2-SMI::mib-2.12.2.1.3.1 = INTEGER: 0
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::mib-2.12.2.1.3.1
Any ideas?

thanx!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests