AS400 CPU Utilization

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

chavers
Posts: 1
Joined: Tue Jul 20, 2004 9:04 am

AS400 CPU Utilization

Post by chavers »

First contrib, i hope this work :oops: for you

I use a

Code: Select all

IBM OS/400 V5R1M0
server. whith only one processor.
The OID for CPU uasage was

Code: Select all

.1.3.6.1.4.1.2.6.4.5.1.0
My mib say:

Code: Select all

The cpu load as a percentage i.e. 25% is 2500.
so i need do make a new CDEF, very simple

Code: Select all

cdef=a,100,/
@+
Attachments
cacti_graph_template_as400_proc.xml
XML Source
(6.69 KiB) Downloaded 3810 times
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

As a start check http://forums.cacti.net/viewtopic.php?t ... ight=as400.
I don't know very much about AS/400. But if it has an SNMP implementation you need a tool to see what OIDs your AS/400 offers and an AS/400 MIB file that explains the returned values.
I would suggest that you
* check if AS/400 offers SNMP
* if yes, get the MIB for AS/400 from http://www.mibdepot.com
* get the tool GETIF from http://www.wtcs.org/snmp4tpc/getif.htm
* Move the AS/400 MIB to the GETIF directory (see the GETIF readme) and then GETIF can tell you the meaning of the AS/400 OIDs.
Thomas Rupp
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

I'm trying to graph an AS/400 server, but it doesn't work. The SNMP agent seems to be running :

Code: Select all

# nmap xx.xxx.xxx.xxx -p 161 -sU

Starting nmap 3.55 ( http://www.insecure.org/nmap/ ) at 2004-12-30 16:07 CET
Interesting ports on xx.xxx.xxx.xxx:
PORT    STATE SERVICE
161/udp open  snmp

Nmap run completed -- 1 IP address (1 host up) scanned in 0.924 seconds

$ snmpwalk -v 1 -c public xx.xxx.xxx.xxx sysdescr
Timeout: No Response from 10.150.113.253
We've looked at IBM's redbook "An Introduction to AS/400 SNMP Support", but everything seems to be well configured.

Do you know what could be wrong ?

Thanks in advance.

Regards,

Frédéric
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

Getting no reply from SNMP could have the following reasons (in my experience):
* SNMP isn't running at all -> check if there is a SNMP daemon running
* SNMP uses a different port -> check the SNMP config file
* SNMP isn't configured for the specified community -> check the SNMP config file for the community string.
* SNMP doesn't allow your computer to query -> check the SNMP config file for the hostnames/IP addresses allowed to query the SNMP daemon
As I know nothing about AS/400 this can only give you a starting point.
Maybe you can post the SNMP config file so we all can have a look at it.
Thomas Rupp
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Running 'netstat' on the AS/400 shows that SNMP is running on UDP 161 port, and I get the same result witch 'nmap' on my Cacti server.

The SNMP community is 'public', and is set up to answer any SNMP master.
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

Could you try a "snmpwalk -c public localhost" on the AS/400 and post the results?
Thomas Rupp
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Chavers - How did you find out what the OID was for the CPU? Do you have a list of the OID's or the MIB?

I have got a couple of 720 AS/400's and would like to start monitoring CPU, HDD, Memory etc.

Thanks.

Pete.
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

One of the best places to download MIBs IMHO is http://www.mibdepot.com/index.shtml
Thomas Rupp
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

I have had a look on that site already but can't seem to find a MIB for an AS/400.
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

Again, I don't know anything about AS/400, but searching Google I found the following link http://lists.skills-1st.co.uk/mharc/htm ... 00344.html.
It seems that an AS/400 has SNMP support but you need an additional agent.
Check http://www.comtek.destek.com/as400.htm as well.
Thomas Rupp
User avatar
Jem
Posts: 35
Joined: Tue Apr 12, 2005 4:36 pm
Contact:

Post by Jem »

When I try to use the xml file I've the following error:

Code: Select all

Warning: Variable passed to each() is not an array or object in /var/www/cacti/data_queries.php on line 312
Can somebody help me ? :oops:
serje
Posts: 2
Joined: Wed Jul 13, 2005 9:36 am

Post by serje »

It doesn't work on 0.8.6f When I try to import the template I get the following:


Cacti has imported the following items:

CDEF
[success] a/100 [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] AS400 - proc [update]
+ Unmet Dependency: (Data Input Method) Get SNMP Data
+ Unmet Dependency: (Data Input Field) OID
+ Unmet Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Unmet Dependency: (Data Input Field) SNMP Password
+ Unmet Dependency: (Data Input Field) SNMP Username
+ Unmet Dependency: (Data Input Field) SNMP Community
+ Unmet Dependency: (Data Input Field) SNMP IP Address

Graph Template
[success] AS400 - proc [update]
+ Found Dependency: (Data Template Item) AS400
+ Found Dependency: (CDEF) a/100
+ Unmet Dependency: (GPRINT Preset) Normal
User avatar
Jem
Posts: 35
Joined: Tue Apr 12, 2005 4:36 pm
Contact:

Post by Jem »

It's exactly the same for me, where can we find the dependencies ?
serje
Posts: 2
Joined: Wed Jul 13, 2005 9:36 am

Post by serje »

I'm afraid the template wasn't exported correctly. Comparing that one and the one I exported from my Cacti it misses few groups within .xml file.

Thx, Serge.
Fred
Cacti User
Posts: 81
Joined: Fri Jan 03, 2003 11:43 am

Post by Fred »

fmangeant wrote:I'm trying to graph an AS/400 server, but it doesn't work. The SNMP agent seems to be running :

...

Do you know what could be wrong ?
I realize this is a very old message, but we're revisiting getting some decent metrics off our iSeries/AS400 machines. And immediately we ran into the same problem: SNMP running, but no response from an snmpwalk.

Turns out, the OS/400 implementation of SNMP, as with many things in its TCP stack, is slightly off. Our firewalls were blocking the snmp-replies. Basically, with most devices you send an SNMP-read to port 161 with a source of some random high port, and it will reply with source port 161. The iSeries, however, chooses a random source port to reply with. Fortunately, our firewall had an option for snmp for "Accept replies from any port." This solved the problem.

I'm putting together some graphs... If I find anything useful with the default snmp agent I'll be sure to post them.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests