Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


AIX Host Template
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Thu Mar 03, 2005 10:21 am    Post subject: Reply with quote

Yep, been trying to track that bug down...

It is weird...

Next version shouldn't have that problem, although I will be testing for it.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Thu Mar 03, 2005 10:52 am    Post subject: Reply with quote

Well concerning the bug that was making this template, not "complete", I have fixed it and attached is a fixed version.

This resolved the Gprint type being wrong on 3 of the graphs causing them to sometimes not render.



Cacti_AIX_Template.zip
 Description:
AIX Host Template and Dependants:

Volume Group Usage
File System Usage/Statistics
CPU Utilization
Paging Utilization
Physical Volume Usage

Download
 Filename:  Cacti_AIX_Template.zip
 Filesize:  11.24 KB
 Downloaded:  1798 Time(s)

Back to top
pbulteel
Cacti User


Joined: 05 Sep 2003
Posts: 150
Location: London

PostPosted: Thu Mar 03, 2005 11:20 am    Post subject: Reply with quote

Thanks - I fixed it by going into the data templates already.

So was it a bug in the template or was it a bug in cacti and how it exported/imported?

Thanks for the template! Now to see if I can find an HPUX machine here I can add =)

-P
Back to top
morrisdavidj



Joined: 14 Feb 2005
Posts: 6
Location: Washington State

PostPosted: Thu Mar 03, 2005 11:53 am    Post subject: aixmibd change community name Reply with quote

Thank all of you for your work on this, I was able to follow your lead and get this up and running with one minor exception.

In changing the community name from "public" in the snmpd.conf file, the aixmibd process no longer is able to attach to the snmp agent.

I have tried starting the aixmibd service with the -c switch for the community name and no luck.

My snmpd.conf file 'community' section now looks like this:

#community public
community strongpass xxx.xxx.xxx.xxx 255.255.255.2xx readOnly
community public localhost
#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

I want the snmp information to only be grabbed from my xxx host using the 'strongpass' community name. The aixmibd service will start properly now, however, I am still able to grab the snmp information from any agent using the community name of 'public' in effect losing the security I want to put in place.

If any of you have successfully changed your community name and got the aixmibd service to run, I would appreciate your help.

Thanks,

David
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Thu Mar 03, 2005 1:11 pm    Post subject: Reply with quote

I ran into this exact same problem, and had to get IBM supports help on it.

After doing a IP trace of the agent, it was determined that the subagents where not attempting to connect to snmpd through localhost, but through the network interface which the request was coming in on. Btw, my response to IBM was a for them to create a reported bug on it, beyond my colorful words of expression.

The solution is to add line to the configuration that allows the IP address of your network interfaces access to snmpd with the public community.

Code:
#community public
community strongpass xxx.xxx.xxx.xxx 255.255.255.2xx readOnly
community public localhost
community public yyy.yyy.yyy.yyy 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


Where yyy.yyy.yyy.yyy is the ip address of your network interface.

I know, seems weird, but it is the solution that I found to work, both with the snmpdv1 and snmpdv3 daemons. FYI syntax is more complicated with the snmpv3 daemons. And if you want the snmpdv3 to be encrypted, you have to download the daemon that supports encryption. It is not included with the Base Operating System TCPIP software package.
Back to top
skwasha



Joined: 02 Mar 2004
Posts: 3

PostPosted: Fri Mar 11, 2005 3:18 pm    Post subject: Help with AIX snmpd Reply with quote

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:
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:
> 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:
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!
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Fri Mar 11, 2005 3:51 pm    Post subject: Reply with quote

64 bit or 32 bit kernel? And are you running the 64 bit or 32 daemon?

What version and maintenance level are you running?

Code:
oslevel -r


There are known problems with the 64 bit daemons. Do a ls of /usr/sbin/snmpd, this will tell you what deamon it is linked to.

Otherwise, I would say, contact IBM support.
Back to top
hootjr29



Joined: 14 Feb 2005
Posts: 20

PostPosted: Wed Mar 16, 2005 3:03 pm    Post subject: AIX 5.3 works too Tony! Reply with quote

Tony,

I was able to test out the AIX 5.3 snmpd for this. And it works as expected. Thanks again for all of your help on this. At some point, I would like to figure out how to make my own templates so that I can get Solaris going.

Also, the only thing left that I haven't got working yet is the page file. Whenever I try to click on it to see graphs for past weeks, months, years..., none of the graphs show up. I did read that you had made some changes to the template because of some possible import/export things in cacti. I will be sure to check into that a little more...

Thanks,
Joe
Back to top
FastJack



Joined: 21 Mar 2005
Posts: 2
Location: Stuttgart, Germany

PostPosted: Mon Mar 21, 2005 5:05 am    Post subject: Reply with quote

Hi everybody,

for me everything works fine so far. I can connect to the AIX Workstation so SNMP runs already on it. But i dont get any Data back so i looked on the Workstation and the aixmibd deamon doesn't run because he isnt installed.
So i tried to find him and install it but where do i get it? I searched all the CDs but dindn't find it. Can anybody Help me where i can get the aixmibd deamon ?
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Mon Mar 21, 2005 7:24 am    Post subject: Reply with quote

If I remember correctly, it's in bos.net.tcp.client or maybe bos.net.tcp.server.

I'm not completely sure, have you tried searching IBM AIX Documentation Library?
Back to top
sylvainouellet



Joined: 21 Mar 2005
Posts: 3

PostPosted: Mon Mar 21, 2005 8:18 am    Post subject: No rrd graph updated. Reply with quote

Hi,
I downloaded the Cacti_AIX_Template.zip posted by 'rony' the 17th of nov 03, I followed the instructions, everything went perfectly.
When I do a verbose query, I get all the infomation I need.
Verbose output of 'aix_fs.xml' script :
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/cacti-0.8.6c/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'
+ Located input field 'aixFsIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2.6.191.6.2.1.1'
+ Found item [aixFsIndex='1'] index: 1 [from value]
....
+ Found item [aixFsIndex='19'] index: 19 [from value]
+ Located input field 'aixFsName' [walk]

+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2.6.191.6.2.1.2'
+ Found item [aixFsName='/dev/hd4'] index: 1 [from value]
....
+ Found item [aixFsName='/dev/lv10'] index: 19 [from value]
+ Located input field 'aixFsMountPoint' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2.6.191.6.2.1.3'
+ Found item [aixFsMountPoint='/'] index: 1 [from value]
....
+ Found item [aixFsMountPoint='/tempmkcd'] index: 19 [from value]
+ Found data query XML file at '/usr/local/cacti-0.8.6c/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6c/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6c/resource/snmp_queries/aix_fs.xml'



I configure a date source from the 'Data Template'(AIX File System), the output is:
/usr/local/rrdtool-1.0.49/bin/rrdtool create \
/usr/local/cacti-0.8.6c/rra/uxa_dba01_aixfsusedinodes_243.rrd \
--step 300 \
DS:aixFsSize:GAUGE:600:0:U \
DS:aixFsFree:GAUGE:600:0:U \
DS:aixFsNumINodes:GAUGE:600:0:U \
DS:aixFsUsedInodes:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797


When I create the date source, I put 1 for the 'Index Value',.
I can create the file manually, but it never get refreshed... I turn on the DEBUG mode, I get no errors.
I can use OID, the AIX CPU Utilization is working fine.

I'm using FC3.
AIX is 5.2 ML4

Can someone help me?
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Mon Mar 21, 2005 8:30 am    Post subject: Reply with quote

You should be creating these graphs from the Device "Create new Graphs" Link. If you are not doing it from there, I can see why you are having problems.
Back to top
FastJack



Joined: 21 Mar 2005
Posts: 2
Location: Stuttgart, Germany

PostPosted: Tue Mar 22, 2005 4:25 am    Post subject: Reply with quote

Hi rony,

sorry i doesn't find it in these two packages. Have both installes and no aixmibd here
It is possible that i have a to old version? I still using AIX 5.1 Here. On the CD is printed Tivoli ready so i think because of this i can connect via SNMP but no aixmibd is installed by default.
Its very importand for me to get this to work becaus i do this as a project for my final exam as Trainee in my firm. Hope you can read my english
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Tue Mar 22, 2005 8:42 am    Post subject: Reply with quote

Well, I'm no AIX expert, but it might be part of the Performance Kit. I would strongly suggest you talk with IBM about where it comes from.
Back to top
omen1000



Joined: 02 Mar 2005
Posts: 7

PostPosted: Wed Mar 23, 2005 2:51 pm    Post subject: hrSystemNumUsers.0 = Wrong Type Reply with quote

HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Wrong Type (should be Gauge32 or Unsigned32): INTEGER: 17

Did anyone get to the bottom of this? IBM isn't helping me much and I can not graph the users logged in, I assume because it is not returning a simple value, but a string...

any ideas?

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 3 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group