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 »

No suggestions, only a statement...

The AIX snmp agent sucks. :o

I don't know, you could potientially update the script to work with it, but I haven't really played with the scripts.
[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:The AIX snmp agent sucks. :o
Agree...

I always install Net-SNMP on my AIX boxes : http://aixpdslib.seas.ucla.edu/packages/net-snmp.html
[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]
sqtchman74
Posts: 6
Joined: Fri Jun 09, 2006 4:25 pm
Contact:

Post by sqtchman74 »

I just spoke with IBM support and they told me that the aixmidb and snmpmibd are not available for AIX 5.1L. So what should I do now?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Really?

Um.... I didn't have a chance to work with 5.1, I think it's part of the performance pack or something like that.

Quick solution, get net-snmp working. You can use gcc to compile it on AIX, otherwise, you have to use xlc (IBM's C compiler).
[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

aix mib

Post by Hiney »

Hi, apologies if this is a daft question, and i think it is. I have downloaded the mib from http://www.oidview.com/mibs/2/XMSERVD-PERF-MIB.html.

do i rename it to XMSERVD-PERF-MIB.my (upper or lower case ?) and stick it in /usr/samples/snmpd/ directory ???


or there some registration process to install it ?

thanks in advance.

H :oops:
"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
boydo
Posts: 3
Joined: Sun Nov 05, 2006 5:21 pm

Looking for Aix Host Template

Post by boydo »

Reading thru all these posts, I am wanting to give cacti a shot monitoring some aix systems. Is there anywhere I can download this "AIX host template"?

Thanks,

Boyd
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

Cacti_AIX_Template.zip

Post by Hiney »

on page 3 of this very thread, look for Cacti_AIX_Template.zip (posted by rony)

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
boydo
Posts: 3
Joined: Sun Nov 05, 2006 5:21 pm

AIX monitoring issue

Post by boydo »

Hi,

running Cacti 0.8.6h on RHEL ES 4.0.

I have:

Imported the AIX Host template found on this list and copied resource files to the cacti resource directory.

Changed the VACM_VIEW defaultView to 'included' in /etc/snmpdv3.conf

Checked that /usr/snmpd is symlinked to snmpdv3ne
lrwxrwxrwx 1 root system 9 Jul 15 17:48 snmpd -> snmpdv3ne

Ran:
startsrc -s snmpd
startsrc -s dpid2
startsrc -s aixmibd
startsrc -s hostmibd
startsrc -s snmpmibd

Able to run serveral commands such as follows:
root@aixbox:/home/users/bokelly:# snmpinfo -m dump -v | grep aixFsFree
aixFsFree.1 = 110
aixFsFree.2 = 767
aixFsFree.3 = 465
aixFsFree.4 = 350
aixFsFree.5 = 304
aixFsFree.6 = 0
aixFsFree.7 = 174
aixFsFree.8 = 62
aixFsFree.9 = 33620
aixFsFree.10 = 13039
aixFsFree.11 = 99686
aixFsFree.12 = 446417
aixFsFree.13 = 3542
aixFsFree.14 = 3542
aixFsFree.15 = 863473
aixProcCMD.2363636 = "grep aixFsFree "

Able to run on a remote box:
[root@myworkstation resource]# snmpwalk -c public -v 1 aixbox -O fn 1.3.6.1.4.1.2.6.191.6.2.1.1
.1.3.6.1.4.1.2.6.191.6.2.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2.6.191.6.2.1.1.2 = INTEGER: 2
.1.3.6.1.4.1.2.6.191.6.2.1.1.3 = INTEGER: 3
.1.3.6.1.4.1.2.6.191.6.2.1.1.4 = INTEGER: 4
....
.1.3.6.1.4.1.2.6.191.6.2.1.1.15 = INTEGER: 15

So this all seems to be working ok. But in Cacti reports smtp error. And all the data queries report no data returned.

+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/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/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6h/resource/snmp_queries/aix_fs.xml'

Any solution to this issue would be really greatly appreciated.

Thanks,

Boyd
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

error

Post by Hiney »

I have yet to resolve this problem as well.
"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 »

Um....

Have you altered the community of the snmp agent? If so, there is a little known issue where you need to allow "public" from localhost so that the other agents (hostmibd, aixmibd, snmpmibd) can communicate with snmpd.

Make sure that from localhost, you can query the aix specifiy information in snmp.
[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]
boydo
Posts: 3
Joined: Sun Nov 05, 2006 5:21 pm

Post by boydo »

Thanks Rony and Hiny for the responses.

I have left the community string as default of public, at least while trying to get this working.

community public
community public localhost
community public 10.50.94.68 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

I can run snmpinfo on the localhost, and I can run snmpwalk from the machine that has cacti installed as follows:

[root@myworkstation resource]# snmpwalk -c public -v 1 aixbox -O fn 1.3.6.1.4.1.2.6.191.6.2.1.1
.1.3.6.1.4.1.2.6.191.6.2.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2.6.191.6.2.1.1.2 = INTEGER: 2
.1.3.6.1.4.1.2.6.191.6.2.1.1.3 = INTEGER: 3
.1.3.6.1.4.1.2.6.191.6.2.1.1.4 = INTEGER: 4
....
.1.3.6.1.4.1.2.6.191.6.2.1.1.15 = INTEGER: 15

But yet clicking on the Verbose Query link within cacti (on this same machine) it reports:

+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2.6.191.6.2.1.1'
+ No SNMP data returned

So if the snmpwalk works on the cacti box command line, must there not be some config issue that is preventing cacti from getting the same returned data?

Also when I go into the create graphs for this host page for each AIX query it reports "End of MIB" under the columns displayed. ie
Data Query [AIX - Get File Systems]
Index Name Mount Point
End of MIB End of MIB End of MIB

Thanks very much again for any help here....
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Are you sure you SNMP version is correct on that host?
[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

ooops

Post by Hiney »

rony wrote:Um....

Have you altered the community of the snmp agent? If so, there is a little known issue where you need to allow "public" from localhost so that the other agents (hostmibd, aixmibd, snmpmibd) can communicate with snmpd.

Make sure that from localhost, you can query the aix specifiy information in snmp.
damn, i had removed public.

that explains why i can get some stuff and not others.

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

oooh, so close

Post by Hiney »

I just went thru and reread this post, with a little greater understanding.

here's my /etc/snmpdv3.conf
  • VACM_GROUP group1 SNMPv1 public -
    VACM_GROUP group2 SNMPv1 strongpass -

    VACM_VIEW defaultView internet - included -

    # exclude snmpv3 related MIBs from the default view
    #VACM_VIEW defaultView snmpModules - excluded -
    #VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included -
    #VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -

    # exclude aixmibd managed MIBs from the default view
    #VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - excluded -

    VACM_VIEW group2View 1.3.6.1.4.1.2.6.191 - included -
    VACM_VIEW group2View system - included -
    VACM_VIEW group2View interfaces - included -
    VACM_VIEW group2View tcp - included -
    VACM_VIEW group2View icmp - included -
    VACM_VIEW group2View internet - included -
    VACM_VIEW group2View enterprises - included -

    VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -
    VACM_ACCESS group2 - - noAuthNoPriv SNMPv1 group2View - group2View -

    NOTIFY notify1 traptag trap -

    TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -

    TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 public noAuthNoPriv -

    # access for public from our interface only
    COMMUNITY public public noAuthNoPriv 10.x.y.z 255.255.255.255 -

    #access for the cacti monitoring machine
    COMMUNITY strongpass strongpass noAuthNoPriv 10.z.y.x 255.255.255.255 -


    DEFAULT_SECURITY no-access - -

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

    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.3.1.1 muxatmd_password #muxatmd

    syscontact "System Adminstrator"
    syslocation "Canberra, ACT, Australia"

I get a listing for all my filesystems in the make graph section, but no graphs appear. There are no yellow lines in the log, so it doesn't appear to have any errors. tho i do have the following but that was back when i created the graphs.
  • 20061107 09:01:07 - CMDPHP: Poller[0] ASSERT: '32111800<5500' failed. Recaching host '10.20.0.58', data query #14
    20061107 09:01:07 - CMDPHP: Poller[0] ASSERT: '32111800<5500' failed. Recaching host '10.20.0.58', data query #13
    20061107 09:01:07 - CMDPHP: Poller[0] ASSERT: '32111800<5500' failed. Recaching host '10.20.0.58', data query #12
    20061107 09:01:07 - CMDPHP: Poller[0] ASSERT: '32111800<5500' failed. Recaching host '10.20.0.58', data query #11
"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

debug output

Post by Hiney »

FYI, I got the results of a "medium" log. it shows the results and i am getting results. Now i have a cacti problem, no graphs. :-(
  • 20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[489] SNMP: v1: 10.x.y.z, dsname: aixPvFree, oid: .1.3.6.1.4.1.2.6.191.2.3.1.1.5.1, output: 2816
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[489] SNMP: v1: 10.x.y.z, dsname: aixPvSize, oid: .1.3.6.1.4.1.2.6.191.2.3.1.1.4.1, output: 10224
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[484] SNMP: v1: 10.x.y.z, dsname: aixFsNumINodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.7.12, output: 141103
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[484] SNMP: v1: 10.x.y.z, dsname: aixFsUsedInodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.8.12, output: 12006
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[479] SNMP: v1: 10.x.y.z, dsname: aixFsUsedInodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.8.7, output: 6539
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[479] SNMP: v1: 10.x.y.z, dsname: aixFsNumINodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.7.7, output: 186872
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[473] SNMP: v1: 10.x.y.z, dsname: aixFsUsedInodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.8.1, output: 1934
    20061107 11:27:05 - CMDPHP: Poller[0] Host[19] DS[473] SNMP: v1: 10.x.y.z, dsname: aixFsNumINodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.7.1, output: 114238
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[494] SNMP: v1: 10.x.y.z, dsname: aixVgCurNumLVs, oid: .1.3.6.1.4.1.2.6.191.2.1.2.1.6.3, output: 2
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[494] SNMP: v1: 10.x.y.z, dsname: aixVgOpenLVs, oid: .1.3.6.1.4.1.2.6.191.2.1.2.1.7.3, output: 2
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[494] SNMP: v1: 10.x.y.z, dsname: aixVgActivePVs, oid: .1.3.6.1.4.1.2.6.191.2.1.2.1.8.3, output: 1
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[488] SNMP: v1: 10.x.y.z, dsname: aixPagePercent, oid: .1.3.6.1.4.1.2.6.191.2.4.2.1.5.2, output: 7
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[483] SNMP: v1: 10.x.y.z, dsname: aixFsNumINodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.7.11, output: 145572
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[483] SNMP: v1: 10.x.y.z, dsname: aixFsUsedInodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.8.11, output: 4
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[477] SNMP: v1: 10.x.y.z, dsname: aixFsNumINodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.7.5, output: 25213
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[477] SNMP: v1: 10.x.y.z, dsname: aixFsUsedInodes, oid: .1.3.6.1.4.1.2.6.191.6.2.1.8.5, output: 80
    20061107 11:30:06 - CMDPHP: Poller[0] Host[19] DS[391] CMD: /usr/bin/perl /opt/nagios/cacti/scripts/unix_users.pl, output: 1


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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests