Operating System - HP-UX
1830568 Members
2748 Online
110014 Solutions
New Discussion

mrtg monitoring of HP UX 11.23 OS

 
SOLVED
Go to solution
jawed
New Member

mrtg monitoring of HP UX 11.23 OS

hi,
I run MRTG to monitor router network traffic. Can any one please guide me how to use MRTG to monitor the memory, page, and disk io in my RX 2600 server which uses HP UX 11.23.

will be very grateful.
regards,
Jawed
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: mrtg monitoring of HP UX 11.23 OS

Hi Jawed,

If you are already using MRTG, then all you have to do is to run the programs that feed data to mrtg.

For Memory, you can 'vmstat' and graph 'free memory' and 'page outs'. Your target will be the command below.

Target[memory]:`vmstat |tail -1 |awk '{printf "%d\n%d\n%d\n%d\n", $5,$9,0,0}'`

It yields four values as required by mrtg like
70
2
0
0
First two are free memory in MB and pageouts respectively. You need two more zeroes as required by mrtg.

Disk IO is complicated. Since mrtg allows only two variables to be graphed, you will have to satisfy yourself with 'sar -d'. I would draw Number of IOs and the total data transferred using the following command.

Target[disk]:`sar -d 2 2 |awk '/Average/ {iosum += $5;datasum += $6} END {printf "%d\n%d\n%d\n%d
\n", iosum,datasum/2048,0,0}'`
490
5
0
0

First two values are number of IOs and MB of data transferred to/from the disk system.

If you want to graph multiple values, you can consider 'rrd' by the same author Tobias. You can find it at the same page.

There are some graphing tools available at HP's porting site that you can make use of.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
jawed
New Member

Re: mrtg monitoring of HP UX 11.23 OS

dear sir,
thanks..my problem is solved..you have given me a path to proceed on. now I think I can fiddle around with the config maker and get what I want.
once again thanks

Jawed