|
|
| Author |
Message |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Fri Oct 21, 2005 11:09 am Post subject: |
|
|
No suggestions, only a statement...
The AIX snmp agent sucks.
I don't know, you could potientially update the script to work with it, but I haven't really played with the scripts. |
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
|
| Back to top |
|
 |
sqtchman74
Joined: 09 Jun 2006 Posts: 6
|
Posted: Wed Jun 21, 2006 3:36 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Thu Jun 22, 2006 9:25 am Post subject: |
|
|
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). |
|
| Back to top |
|
 |
Hiney Cacti User
Joined: 16 Oct 2006 Posts: 55
|
Posted: Fri Nov 03, 2006 12:02 am Post subject: aix mib |
|
|
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  |
|
| Back to top |
|
 |
boydo
Joined: 05 Nov 2006 Posts: 3
|
Posted: Sun Nov 05, 2006 5:27 pm Post subject: Looking for Aix Host Template |
|
|
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 |
|
| Back to top |
|
 |
Hiney Cacti User
Joined: 16 Oct 2006 Posts: 55
|
Posted: Sun Nov 05, 2006 5:44 pm Post subject: Cacti_AIX_Template.zip |
|
|
on page 3 of this very thread, look for Cacti_AIX_Template.zip (posted by rony)
H |
|
| Back to top |
|
 |
boydo
Joined: 05 Nov 2006 Posts: 3
|
Posted: Sun Nov 05, 2006 9:28 pm Post subject: AIX monitoring issue |
|
|
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 |
|
| Back to top |
|
 |
Hiney Cacti User
Joined: 16 Oct 2006 Posts: 55
|
Posted: Sun Nov 05, 2006 11:19 pm Post subject: error |
|
|
| I have yet to resolve this problem as well. |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Mon Nov 06, 2006 9:57 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
boydo
Joined: 05 Nov 2006 Posts: 3
|
Posted: Mon Nov 06, 2006 3:40 pm Post subject: |
|
|
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.... |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Mon Nov 06, 2006 3:46 pm Post subject: |
|
|
| Are you sure you SNMP version is correct on that host? |
|
| Back to top |
|
 |
Hiney Cacti User
Joined: 16 Oct 2006 Posts: 55
|
Posted: Mon Nov 06, 2006 4:53 pm Post subject: ooops |
|
|
| 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 |
|
| Back to top |
|
 |
Hiney Cacti User
Joined: 16 Oct 2006 Posts: 55
|
Posted: Mon Nov 06, 2006 5:20 pm Post subject: oooh, so close |
|
|
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
|
|
| Back to top |
|
 |
Hiney Cacti User
Joined: 16 Oct 2006 Posts: 55
|
Posted: Mon Nov 06, 2006 7:33 pm Post subject: debug output |
|
|
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 |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|