Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 16, 2019 11:44 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: AS400 CPU Utilization
PostPosted: Mon Aug 09, 2004 4:58 am 
Offline

Joined: Tue Jul 20, 2004 9:04 am
Posts: 1
First contrib, i hope this work :oops: 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,/


@+


Attachments:
File comment: XML Source
cacti_graph_template_as400_proc.xml [6.69 KiB]
Downloaded 3113 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 29, 2004 2:09 pm 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
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.

_________________
Thomas Rupp


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2004 10:15 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2004 10:24 am 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2004 10:46 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 31, 2004 7:06 am 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
Could you try a "snmpwalk -c public localhost" on the AS/400 and post the results?

_________________
Thomas Rupp


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 2:13 pm 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 14, 2005 2:00 am 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
One of the best places to download MIBs IMHO is http://www.mibdepot.com/index.shtml

_________________
Thomas Rupp


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 14, 2005 6:39 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
I have had a look on that site already but can't seem to find a MIB for an AS/400.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 14, 2005 7:04 am 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
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.

_________________
Thomas Rupp


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 8:35 am 
Offline
User avatar

Joined: Tue Apr 12, 2005 4:36 pm
Posts: 35
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 ? :oops:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 13, 2005 9:38 am 
Offline

Joined: Wed Jul 13, 2005 9:36 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 4:14 am 
Offline
User avatar

Joined: Tue Apr 12, 2005 4:36 pm
Posts: 35
It's exactly the same for me, where can we find the dependencies ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 8:55 am 
Offline

Joined: Wed Jul 13, 2005 9:36 am
Posts: 2
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 05, 2006 9:05 am 
Offline
Cacti User

Joined: Fri Jan 03, 2003 11:43 am
Posts: 81
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group