Operating System - HP-UX
1822513 Members
2627 Online
109642 Solutions
New Discussion юеВ

Re: Monitoring HP-UX servers using cacti

 

Monitoring HP-UX servers using cacti

Does anybody here uses cacti to monitor their HP-UX boxes?

Basically, what i want to achieve to have a centralise monitoring system for HP-UX, AIX, and for any flavors of linux. I'm having difficulty getting data on HP such as Mem usage, load average, CPU and VG usage. Would anybody like to share their insights on this?

Thanks in advance. Don't worry i'll give merits to those who join and found their suggestions helpful. ",)
9 REPLIES 9
Olivier LEGRAND
Frequent Advisor

Re: Monitoring HP-UX servers using cacti

It works fine, with this configuration
Associated Graph Templates

Graph Template Name Status
1) ucd/net - CPU Usage Is Being Graphed (Edit)
2) ucd/net - Memory Usage Is Being Graphed (Edit)


Associated Data Queries

Data Query Name Debugging Re-Index Method Status
1) SNMP - Get Mounted Partitions (Verbose Query) Uptime Goes Backwards Success [60 Items, 20 Rows]
2) SNMP - Interface Statistics (Verbose Query) Uptime Goes Backwards Success [40 Items, 9 Rows]




Re: Monitoring HP-UX servers using cacti

Hello Olivier,

I tried your suggestion but still getting error. Please help.

CMDPHP: Poller[0] Host[15] WARNING: Result from SNMP not valid. Partial Result:

Olivier LEGRAND
Frequent Advisor

Re: Monitoring HP-UX servers using cacti

Hi,
Do you use the standard SNMP port?
There is a bug in a cacti script, if you change this port. Try in first time with the 151

Cheers

Olivier
Olivier LEGRAND
Frequent Advisor

Re: Monitoring HP-UX servers using cacti

Hi,

You have to install net-snmp before this, on your HP-UX servers

Regards

Olivier

Re: Monitoring HP-UX servers using cacti

I changed the SNMP port on cacti to 151 as suggested. Still the same error occurred.

For the HP-UX, i believe no need to install net-snmp as this server do have already.

Actually, from the HP server i ran snmpwalk and i want to graph or cacti to pickup CPU/MEM info from SNMP as mentioned below.

system.sysObjectID.0 : OBJECT IDENTIFIER: .iso.org.dod.internet.private.enterprises.hp.nm.system.hpux.
hp9000s700
hp.nm.system.general.computerSystem.computerSystemUpTime.0 : Timeticks: (2841994600) 328 days, 22:25:46.00
hp.nm.system.general.computerSystem.computerSystemUsers.0 : Gauge32: 5
hp.nm.system.general.computerSystem.computerSystemAvgJobs1.0 : Gauge32: 46
hp.nm.system.general.computerSystem.computerSystemAvgJobs5.0 : Gauge32: 21
hp.nm.system.general.computerSystem.computerSystemAvgJobs15.0 : Gauge32: 21
hp.nm.system.general.computerSystem.computerSystemMaxProc.0 : INTEGER: 1620
hp.nm.system.general.computerSystem.computerSystemFreeMemory.0 : Gauge32: 90316
hp.nm.system.general.computerSystem.computerSystemPhysMemory.0 : INTEGER: 1048576
hp.nm.system.general.computerSystem.computerSystemMaxUserMem.0 : Gauge32: 400
hp.nm.system.general.computerSystem.computerSystemSwapConfig.0 : INTEGER: 2097152
hp.nm.system.general.computerSystem.computerSystemEnabledSwap.0 : Gauge32: 2097152
hp.nm.system.general.computerSystem.computerSystemFreeSwap.0 : Gauge32: 1889384
hp.nm.system.general.computerSystem.computerSystemUserCPU.0 : Counter: 373326003
hp.nm.system.general.computerSystem.computerSystemSysCPU.0 : Counter: 96020609
hp.nm.system.general.computerSystem.computerSystemIdleCPU.0 : Counter: 2220274264
hp.nm.system.general.computerSystem.computerSystemNiceCPU.0 : Counter: 28982875

Olivier LEGRAND
Frequent Advisor

Re: Monitoring HP-UX servers using cacti

Hi,

I am so sorry. The default SNMP port is 161

I think, you hav to kill all snmpd deamon, and just run net-snmp deamon on the HP UX Server.

I did this, and it works fine

cheers

Olivier

PS: Did you implement cacti on SAN ?

Re: Monitoring HP-UX servers using cacti

I can't simply do that and besides even net-snmp package is using snmpd daemon. Please see attachment. I've listed the files under net-snmp.

For SAN, i haven't think about it. Perhaps if i fix this HP thing. :)
Olivier LEGRAND
Frequent Advisor

Re: Monitoring HP-UX servers using cacti

Hi,

I do that and it works fine.

I think, your problem is a snmp Mib problem. In fact, I don't know how net-snmp works, but with this package, it is OK

You can make a test, with net-snmp on another snmp port, but, there is a problem in : cacti/cacti-0.8.6c/resource/script_server/host_disk.xml
at line 6
|host_hostname|:54321 |host_snmp_community| |host_snmp_version| |host_id|

I hust put :54321, chere 54321 is my net-snmp port

Cheers

Olivier
IT Operations Unix Admi
Occasional Advisor

Re: Monitoring HP-UX servers using cacti


I found the following hpux templates for cacti usefull

http://adumont.serveblog.net/tag/cacti

Attached is a modified template I made for the cpu monitoring. This one also shows IOwait.

Unfortunately the hp-unix snmp does not give total swap (memory swap included) or swap reserved numbers. Also the page in and out numbers are missing.