|
|
| Author |
Message |
chavers
Joined: 20 Jul 2004 Posts: 1
|
|
| Back to top |
|
 |
Thomas Cacti User
Joined: 09 Dec 2004 Posts: 112 Location: Austria
|
Posted: Wed Dec 29, 2004 2:09 pm Post subject: |
|
|
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
|
Posted: Thu Dec 30, 2004 10:15 am Post subject: |
|
|
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
|
Posted: Thu Dec 30, 2004 10:24 am Post subject: |
|
|
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
|
Posted: Thu Dec 30, 2004 10:46 am Post subject: |
|
|
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
|
Posted: Fri Dec 31, 2004 7:06 am Post subject: |
|
|
| 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
|
Posted: Thu Jan 13, 2005 2:13 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
pshankland Cacti User
Joined: 31 Dec 2004 Posts: 231 Location: UK
|
Posted: Fri Jan 14, 2005 6:39 am Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
Jem
Joined: 12 Apr 2005 Posts: 27
|
Posted: Mon Apr 25, 2005 8:35 am Post subject: |
|
|
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
|
Posted: Wed Jul 13, 2005 9:38 am Post subject: |
|
|
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
|
Posted: Mon Jul 18, 2005 4:14 am Post subject: |
|
|
| It's exactly the same for me, where can we find the dependencies ?
|
|
| Back to top |
|
 |
serje
Joined: 13 Jul 2005 Posts: 2
|
Posted: Thu Jul 21, 2005 8:55 am Post subject: |
|
|
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
|
Posted: Wed Jul 05, 2006 9:05 am Post subject: |
|
|
| 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 |
|
 |
|