Please login or register. August 20, 2019, 02:43:08 AM

Author Topic: Using Cacti to Monitor HACMP machines  (Read 29032 times)

0 Members and 1 Guest are viewing this topic.

HRH_H_Crab

  • Jr. Member
  • **
  • Posts: 14
  • Karma: +0/-0
Using Cacti to Monitor HACMP machines
« on: January 19, 2007, 04:04:13 PM »
I have used the Cacti AIX host template with great success for monitoring lpars, but when it comes to the HACMP lpars, nothing is returned.
Ive posted about this on the Cacti forums, but have had no luck so far.
Has anyone else had this problem and found a solution?
If so please let me know your secret! ;)

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #1 on: January 20, 2007, 12:37:18 PM »
Did a bit of google to find out what CACTI is, and I am guessing is a monitoring tool that used SNMP information for it's data.

Please verify that, and then I'll start looking into how to explain how to get the data from a HACMP cluster (using clinfo as snmp API data supplier).

I am assuming that the AIX template you mention collects the standard MIB-2 data, plus some specific AIX (.1.3.1.6.2.4.2.* IBM private OID I hope. if so, AIX specific is .1.3.1.6.2.4.6.*) - will edit later if I am quoting this incorrectly.

HRH_H_Crab

  • Jr. Member
  • **
  • Posts: 14
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #2 on: January 22, 2007, 09:28:53 AM »
Did a bit of google to find out what CACTI is, and I am guessing is a monitoring tool that used SNMP information for it's data.

This is indeed the case.

dan@ngct1:~$ snmpwalk -c public -v 1 172.29.6.9 -O fn 1.3.6.1.4.1.2.6.191
dan@ngct1:~$


The above, I think is related to my problem. For non HACMP LPARS the above returns loads of information. For HACMP, I get nothing as you can see.
I don't think it will be an easy problem to solve, as it will require someone to write a new template for cacti. I was really just posting to see if anyone had already done this. Its a last resort, because I cant find anything on the cacti forums for HACMP and AIX which is the more likely place to look!

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #3 on: January 22, 2007, 11:30:52 AM »
Actually, I dont think it will be that difficult, at least for the snmpwalk part. I am working with HACMP this week, and I'll look into the differences between snmp1, snmp3 (which are the two default snmp providers on AIX, you choose one of the two).

I believe modern versions of HACMP expect you to be using snmp3.

Regarding the templates: will depend on whether they are text based or not. And, last question, are you running CACTI from a linux box (as a network monitor), or are you running the package on AIX as well?

HRH_H_Crab

  • Jr. Member
  • **
  • Posts: 14
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #4 on: January 22, 2007, 11:52:05 AM »
Im running cacti on a linux box.
Ill try changing the smtp version in cacti to 3 and see if it makes any difference.

The template is in xml format.

HRH_H_Crab

  • Jr. Member
  • **
  • Posts: 14
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #5 on: January 22, 2007, 11:56:16 AM »
Aah... maybe its game over!
Cacti looks like it only supports snmp v1, and v2.
v1 returns nothing, and v2 gives me snmp errors.

This is prob. the problem then.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #6 on: January 22, 2007, 12:05:48 PM »
Well, it doesnt have to be game over, as your other AIX boxes are running snmp1. The other thing to check is whether the snmp info you want is only available within the cluster, and what snmp community name is being used.

From snmpd.conf (snmp1 version)

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

community       public
#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

This is from an AIX 5.2 system, using snmp1. See if you can get a copy of that file for reference.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #7 on: January 22, 2007, 02:06:58 PM »
Try this command to see what AIX specific information you can see.

btw the hacmp MIB is:

1.3.1.6.4.1.2.3.1.2.1.5

The command specifies all the available IBM info in the tree.

Quote
snmpinfo -m dump -c public -h 127.0.0.1 -v 1.3.6.1.4.1 | more

HRH_H_Crab

  • Jr. Member
  • **
  • Posts: 14
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #8 on: January 22, 2007, 02:55:43 PM »
It returns stuff, but nothing thats useful for what I want to monitor.
i.e. no cpu stuff, memory stuff, disk stuff...
just stuff about the status of the cluster.

If I run it on a non-HACMP LPAR it returns the stuff I need to monitor.
There is a huge difference. Just a few lines on HACMP, page after page of statistics on non-HACMP.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: Using Cacti to Monitor HACMP machines
« Reply #9 on: January 22, 2007, 08:30:41 PM »
Well, it probably isnt an HACMP thing directly.

1) snmpinfo -m dump of other information isn't allowed (general access removed as part of HACMP installation/configuration)
2) different levels of AIX being monitored. From memory AIX 5.1 still has snmp_v1 as default protocol, AIX 5.2 and AIX 5.3 hav snmp_v3 as default.

Check the /var/tmp directory for the name of the snmp logfile. My vanilla install AIX 5.2+ systems have /var/tmp/snmpdv3.log as logfile, while AIX 5.1 and earlier have /var/tmp/snmpd.log.

snmp_v3 support first appeared in AIX 5.1. If a system is updated via migration or update_all the snmp protocol is not changed (i.e. only in "new and complete" installs is the default protocol activated.