Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


AS400 CPU Utilization
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
chavers



Joined: 20 Jul 2004
Posts: 1

PostPosted: Mon Aug 09, 2004 4:58 am    Post subject: AS400 CPU Utilization Reply with quote

First contrib, i hope this work for you

I use a
Code:
IBM OS/400 V5R1M0
server. whith only one processor.
The OID for CPU uasage was
Code:
.1.3.6.1.4.1.2.6.4.5.1.0

My mib say:
Code:
The cpu load as a percentage i.e. 25% is 2500.

so i need do make a new CDEF, very simple
Code:
cdef=a,100,/


@+



cacti_graph_template_as400_proc.xml
 Description:
XML Source

Download
 Filename:  cacti_graph_template_as400_proc.xml
 Filesize:  6.69 KB
 Downloaded:  1683 Time(s)

Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Wed Dec 29, 2004 2:09 pm    Post subject: Reply with quote

As a start check http://forums.cacti.net/viewtopic.php?t=4523&highlight=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.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2326
Location: Sophia-Antipolis, France

PostPosted: Thu Dec 30, 2004 10:15 am    Post subject: Reply with quote

Hi

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

Code:
# 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
Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Thu Dec 30, 2004 10:24 am    Post subject: Reply with quote

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.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2326
Location: Sophia-Antipolis, France

PostPosted: Thu Dec 30, 2004 10:46 am    Post subject: Reply with quote

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.
Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Fri Dec 31, 2004 7:06 am    Post subject: Reply with quote

Could you try a "snmpwalk -c public localhost" on the AS/400 and post the results?
Back to top
pshankland
Cacti User


Joined: 31 Dec 2004
Posts: 231
Location: UK

PostPosted: Thu Jan 13, 2005 2:13 pm    Post subject: Reply with quote

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.
Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Fri Jan 14, 2005 2:00 am    Post subject: Reply with quote

One of the best places to download MIBs IMHO is http://www.mibdepot.com/index.shtml
Back to top
pshankland
Cacti User


Joined: 31 Dec 2004
Posts: 231
Location: UK

PostPosted: Fri Jan 14, 2005 6:39 am    Post subject: Reply with quote

I have had a look on that site already but can't seem to find a MIB for an AS/400.
Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Fri Jan 14, 2005 7:04 am    Post subject: Reply with quote

Again, I don't know anything about AS/400, but searching Google I found the following link http://lists.skills-1st.co.uk/mharc/html/nv-l/1999-12/msg00344.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.
Back to top
Jem



Joined: 12 Apr 2005
Posts: 27

PostPosted: Mon Apr 25, 2005 8:35 am    Post subject: Reply with quote

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

Code:
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 ?
Back to top
serje



Joined: 13 Jul 2005
Posts: 2

PostPosted: Wed Jul 13, 2005 9:38 am    Post subject: Reply with quote

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
Back to top
Jem



Joined: 12 Apr 2005
Posts: 27

PostPosted: Mon Jul 18, 2005 4:14 am    Post subject: Reply with quote

It's exactly the same for me, where can we find the dependencies ?
Back to top
serje



Joined: 13 Jul 2005
Posts: 2

PostPosted: Thu Jul 21, 2005 8:55 am    Post subject: Reply with quote

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.
Back to top
Fred
Cacti User


Joined: 03 Jan 2003
Posts: 81

PostPosted: Wed Jul 05, 2006 9:05 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group