AIX Host Template - Version 0.1.1

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

Moderators: Developers, Moderators

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

AIX Host Template - Version 2.0

Post by rony »

This is an update to the template I wrote over a year ago.
http://forums.cacti.net/viewtopic.php?t ... highlight=

Minor things where updated, added on graph for using the AIX mib for counting the number of processes. Other than that, the AIX snmp agent still sucks.. :P

Any questions, please let me know.
Attachments
AIX_CACTI_TEMPLATE.zip
AIX Host Template and Dependants:

Volume Group Usage
File System Usage/Statistics
CPU Utilization
Processes
Paging Utilization
Physical Volume Usage
(12.45 KiB) Downloaded 1720 times
[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]
clay-au
Posts: 2
Joined: Mon Jan 09, 2006 10:43 pm

Post by clay-au »

hi
does this template work with AIX 4.3.3? and are you able to provide some instructions on how to setup AIX to allow for snmp etc.?
thanks
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Never tried it with 4.3.x... Don't know, never really touched 4.3. I started working with AIX from version 5.1.
[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]
eliniaws
Posts: 12
Joined: Wed Aug 31, 2005 1:06 pm

Help ! Cant get this to work on my Cacti Installation

Post by eliniaws »

Hi,

I have tried to get this working on my AIX 5.3 (snmpd V1) system and cant seem to do it. I am running version H of cacti (which is the latest) and the template imported fine.

However, when i run the querys i get no data returned.

I have followed the previous threads on this and think I have everything as it should be (obviously not !!). ANy help would be greatly apreciated.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Do you have the proper daemons configured and running?

You need the following running:

snmpd
dpid2
snmpmibd
aixmibd
hostmibd

Stop and start them in that order.
[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]
eliniaws
Posts: 12
Joined: Wed Aug 31, 2005 1:06 pm

AIX 5.3 host template

Post by eliniaws »

Thanks Rony,

All the daemons are started in the correct order but with no success. I'm kinda guessing that the problem lies within my snmp conf setup. When I do a verbose query i get


+ Running data query [14].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache/htdocs/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2.6.191.6.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/apache/htdocs/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'


So I though that i had left out the line from the snmpd.conf fle to allow me access to that MIB. But my snmpd.conf looks as follows...

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

community mycommstring 1.3.6.1.4.1.2.6.191
#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
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - include -

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
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password #

Hang on.. Should I have replaced VACM_VIEW with my own data ?

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

Post by rony »

I remember going round and round with IBM support. You need to give access to snmp for localhost (127.0.0.1) with the community of public. Apparently this is the only way the sub agents will talk to the main agent. As there is no way to configure the community. :(
[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]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Oh, I forgot to add....

I HATE THE AIX SNMP AGENT! :o

That is all. 8)
[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]
eliniaws
Posts: 12
Joined: Wed Aug 31, 2005 1:06 pm

AIX 5.3 host template

Post by eliniaws »

Hi Tony,

Thanks for your help so far. My snmpd.conf looks like this now

logging file=/usr/tmp/snmpd.log enabled
logging size=100000 level=0
community public localhost readOnly 2.6.191
community public xxx.xxx.xxx.xxx 255.255.255.255 readOnly 2.6.191
community xxxxxxxx 2.6.191
#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
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - include -
view 1.17.2 system enterprises view
view 2.6.191
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 #
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password #


Still no data return. You are sooo right. This snmp implementation sucks big style. I tried the snmp binaries for net-snmp but they just core dump, so I'm stuck with the aix daemon for now....bugger :evil:
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, Are you running 64 bit or 32 bit kernel? If you are running 64 bit, you need to make sure you are running the 64 bit version of snmpd.

Check the link in /usr/sbin/snmpd and see where it is pointed.
[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]
eliniaws
Posts: 12
Joined: Wed Aug 31, 2005 1:06 pm

Post by eliniaws »

Hi Tony,

# ls -l snmpd
lrwxrwxrwx 1 root system 7 Jan 31 14:54 snmpd -> snmpdv1

So it loks like its the 32bit version. Is this wrong ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, are you running 64 bit or 32 bit kernel?

I can't recall the command to check this off the top of my head... :(
[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]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

rony wrote:Well, are you running 64 bit or 32 bit kernel?

I can't recall the command to check this off the top of my head... :(
Hi Tony

Code: Select all

bootinfo -K
32
to check what kernel you're running, and

Code: Select all

# bootinfo -y
64
to check if your hardware is 64-bit capable.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Thank you, couldn't remember the util. lol, remembered the command line options, but not the name of the util.
[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]
eliniaws
Posts: 12
Joined: Wed Aug 31, 2005 1:06 pm

Post by eliniaws »

Hi Tony,

Thanks for your help. I'm running the 64 bit kernel and the snmpd link is pointed to the 64bit version of the snmpd executeable.

I'm at a loss now. Just for info..this is running on a p520.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests