Ad Widget

Collapse

AS/400 Monitoring solutions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • turki
    Junior Member
    • Nov 2022
    • 2

    #196
    Originally posted by Kos
    check, please, that you use the last version of the Zabbix agent emulator (0.7.9 at the moment).
    I provided an announce about this problem and an update some time ago (see link here).
    If the problem still persist with this version, contact me directly by e-mail, please.
    Yes that was the problem, I downloaded new version almost year ago, but didn't applied ... brain is "funny felow" when you assume something.

    Kos, thank you and sorry to spend your time for something what was my mistake ...

    at the end everything works well even with newest PTF's.

    best regards,
    turki​

    Comment

    • julian566
      Junior Member
      • Oct 2023
      • 1

      #197
      Originally posted by Kos
      Version 0.6.3 was published here.

      Change list:
      • some additional debugging info added;
      • initialization improved. For example, if the JSON library could not be found, the program will stop gracefully immediately (instead of some strange semi-live state);
      • negative values of CPU Usage should be avoided now.
      Hi Kos, first of all, thank you for all your work. I´m looking for the template that you previously shared, I would be really grateful if you can provide me a link with the template. I´m trying to implement with the version 7.7, I have some difficulties to understand the new version with the directory Source and Go

      Comment

      • Kos
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Aug 2015
        • 3404

        #198
        Originally posted by julian566
        Hi Kos, first of all, thank you for all your work. I´m looking for the template that you previously shared, I would be really grateful if you can provide me a link with the template. I´m trying to implement with the version 7.7, I have some difficulties to understand the new version with the directory Source and Go
        Hi Julian,
        thank you for a feedback.
        The current version is 0.7.9, it's available by the link published here. I highly recommend to use this version, as it has fixes of bugs found earlier, as well as some additional features (see the section "History" in documentation).

        All published versions have the same structure: it's a ZIP-archive containing a compiled version of Agent (jar-file), a detailed documentation (in PDF), example of the config file and another ZIP-archive with the sources. The sources archive is interested only if you like to explore internals of this agent or if you like to recompile it by yourself. The GO.BAT file here is the script used by me to recompile and build (including all needed resources) the resulting JAR-file from scratch, and then to start it if it was built successfully. If you don't want to recompile, the sources.zip archive is not necessary.

        Unfortunately, there is no officially supported template for that operation system. Several year ago I published an example of a template (it is still available here, you can look the branch for the v5.0, as it has not been modified since then); however, keep in mind that it's not some "recommended" settings or some "best practices", but only an example to demonstrate how this agent could be used.

        Comment

        • fjjimenez
          Junior Member
          • Sep 2023
          • 1

          #199
          ello Kos.
          I'm trying to locate a couple of files that I can't find to have everything I need to install the zabbix agent that you have developed to obtain information from an iSeries as/400 system. I can't found the files jt400.jar and json-simple-1.1.1.jar.
          Could you please help me with this search?
          thank you in advance for your time and your contribution to the world zabbix

          Comment

          • Kos
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Aug 2015
            • 3404

            #200
            Originally posted by fjjimenez
            I can't found the files jt400.jar and json-simple-1.1.1.jar.
            Could you please help me with this search?
            The links for both these dependencies (as well as detailed instructions how to run this agent) are in documentation:
            • json-simple-1.1.1.jar (link);
            • jt400.jar (link), now moved here (the current download page is here)

            Comment

            • bvollmer
              Junior Member
              • Mar 2024
              • 1

              #201
              Setup zabbix agent on IBMi v7r4 system, getting the following error upon startup; debug level 4:

              Code:
                  24:20240329:125028.852 Starting Zabbix Agent v0.7.9
                  24:20240329:125028.873 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                  24:20240329:125028.878 agent #-1 started [ZabbixAgent config]
                  24:20240329:125028.879 IBM Corporation Java version "1.8.0_391"
                  24:20240329:125028.880  Java(TM) SE Runtime Environment (build 8.0.8.15 - pap6480sr8fp15-20231030_01(SR8 FP15))
                  24:20240329:125028.881  IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20230908_57744 (JIT enabled, AOT enabled)
              OpenJ9   - ec90c19
              OMR      - 8b64d40
              IBM      - 696e9df)
                  24:20240329:125028.940  Open Source Software, JTOpen 20.0.7 codebase 5770-SS1 V7R5M0.00 built=2024-02-05 20:39:28 (GMT)
                  24:20240329:125028.970 ZbxMetric() constructor: metric 'log' successfully added
                  24:20240329:125028.971 ZbxMetric() constructor: metric 'logrt' successfully added
                  24:20240329:125028.972 ZbxMetric() constructor: metric 'eventlog' successfully added
                  24:20240329:125028.978 ZbxMetric() constructor: metric 'agent.exit' successfully added
                  24:20240329:125028.981 ZbxMetric() constructor: metric 'agent.hostname' successfully added
                  24:20240329:125028.988 ZbxMetric() constructor: metric 'agent.ping' successfully added
                  24:20240329:125028.990 ZbxMetric() constructor: metric 'agent.version' successfully added
                  24:20240329:125028.993 ZbxMetric() constructor: metric 'agent.debug.active.thread' successfully added
                  24:20240329:125029.039 ZbxMetric() constructor: metric 'system.hostname' successfully added
                  24:20240329:125029.048 ZbxMetric() constructor: metric 'system.uname' successfully added
                  24:20240329:125029.062 ZbxMetric() constructor: metric 'system.localtime' successfully added
                  24:20240329:125029.071 ZbxMetric() constructor: metric 'system.cpu.num' successfully added
                  24:20240329:125029.080 ZbxMetric() constructor: metric 'as400.cpu.capacity' successfully added
                  24:20240329:125029.090 ZbxMetric() constructor: metric 'system.users.num' successfully added
                  24:20240329:125029.110 ZbxMetric() constructor: metric 'proc.num' successfully added
                  24:20240329:125029.118 ZbxMetric() constructor: metric 'as400.subsystem' successfully added
                  24:20240329:125029.121 ZbxMetric() constructor: metric 'as400.outputqueue.size' successfully added
                  24:20240329:125029.132 ZbxMetric() constructor: metric 'as400.services' successfully added
                  24:20240329:125029.140 ZbxMetric() constructor: metric 'vfs.fs.discovery' successfully added
                  24:20240329:125029.142 ZbxMetric() constructor: metric 'vfs.fs.size' successfully added
                  24:20240329:125029.150 ZbxMetric() constructor: metric 'vfs.fs.state' successfully added
                  24:20240329:125029.152 ZbxMetric() constructor: metric 'as400.disk.discovery' successfully added
                  24:20240329:125029.159 ZbxMetric() constructor: metric 'as400.disk.size' successfully added
                  24:20240329:125029.162 ZbxMetric() constructor: metric 'as400.disk.state' successfully added
                  24:20240329:125029.168 ZbxMetric() constructor: metric 'as400.disk.asp' successfully added
                  24:20240329:125029.171 ZbxMetric() constructor: metric 'as400.systemPool.discovery' successfully added
                  24:20240329:125029.179 ZbxMetric() constructor: metric 'as400.systemPool.state' successfully added
                  24:20240329:125029.182 ZbxMetric() constructor: metric 'proc.cpu.util.discovery' successfully added
                  24:20240329:125029.189 ZbxMetric() constructor: metric 'proc.cpu.util' successfully added
                  24:20240329:125029.339 constuctor AgentRequest(): str='system.uname', key_name='system.uname'
                  24:20240329:125029.341  parameters list: null
                  24:20240329:125029.341 in ZabbixAgent.process(): key_name='system.uname', full key='system.uname'
                  24:20240329:125031.589  ZabbixAgent.process(): 'system.uname' communication error: java.net.ConnectException: A remote host refused an attempted connect operation. (Connection refused), trying to reconnect...
                  24:20240329:125031.602   ZabbixAgent.process() 'system.uname' communication error: java.net.ConnectException: A remote host refused an attempted connect operation. (Connection refused)
                  24:20240329:125031.603 end of ZabbixAgent.process()
                  24:20240329:125031.608 Error obtaining 'system.uname' metric, exiting

              Comment


              • turki
                turki commented
                Editing a comment
                Hi bvollmer,

                I don't have experience with this error, but at the end of the log notice "system.uname" as a problem.

                I suggest to check that your name resolving (DNS) on your IBM i system is working well.

                Check that your system has correct TCPIP name configuration in CHGTCPDMN command.
                (just enter command and press F4 to see what is configured for Hostname, Domain name and Domain name server(s))

                Also try to ping by using symbolic (textual, not IP) names of your server and zabbix server not just to check if they are reachable but also to be sure that name resolving is functional.

                So check hosts you enter under following parameters inside your /home/ZABBIX/agentd/zabbix_agentd.conf config file:

                Server = zabbix.domain.local
                ServerActive = zabbix.domain.local, localhost
                Hostname = MYIBMI

                So in this example check that you can resolve:
                PING RMTSYS('zabbix.domain.local')
                PING RMTSYS('MYIBMI')



                best regards,
                turki
                Last edited by turki; 04-04-2024, 09:02.
            • Kos
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Aug 2015
              • 3404

              #202
              Originally posted by bvollmer
              Setup zabbix agent on IBMi v7r4 system, getting the following error upon startup; debug level 4:

              Code:
               24:20240329:125028.852 Starting Zabbix Agent v0.7.9
              24:20240329:125028.873 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
              24:20240329:125028.878 agent #-1 started [ZabbixAgent config]
              24:20240329:125028.879 IBM Corporation Java version "1.8.0_391"
              24:20240329:125028.880 Java(TM) SE Runtime Environment (build 8.0.8.15 - pap6480sr8fp15-20231030_01(SR8 FP15))
              24:20240329:125028.881 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20230908_57744 (JIT enabled, AOT enabled)
              [...]
              24:20240329:125029.339 constuctor AgentRequest(): str='system.uname', key_name='system.uname'
              24:20240329:125029.341 parameters list: null
              24:20240329:125029.341 in ZabbixAgent.process(): key_name='system.uname', full key='system.uname'
              24:20240329:125031.589 ZabbixAgent.process(): 'system.uname' communication error: java.net.ConnectException: A remote host refused an attempted connect operation. (Connection refused), trying to reconnect...
              24:20240329:125031.602 ZabbixAgent.process() 'system.uname' communication error: java.net.ConnectException: A remote host refused an attempted connect operation. (Connection refused)
              24:20240329:125031.603 end of ZabbixAgent.process()
              24:20240329:125031.608 Error obtaining 'system.uname' metric, exiting
              Hi bvollmer ,
              from the provided log file we can see the following:
              • you are starting this agent on the IBMi system (architecture is: OS/400 ppc64-64-Bit);
              • the agent got the error trying to ask the "system.uname" metric (it asks this metric at the end of its initialization to write this information into the log, too);
              • the error is "A remote host refused an attempted connect operation".
              Are you trying to monitor another IBMi host from this IBMi system? If not, are you using some credentials in your configuration file (the "User", "as400ServerHost" and "as400Password" parameters)? All these parameters are not required for the local IBMi system monitoring; if they are specified, they could be commented out. And just opposite: for the remote monitoring all there parameters must be specified (as described in the documentation).

              Comment

              • Jlayme
                Junior Member
                • Jun 2024
                • 2

                #203
                Hi, zabbix is ​not collecting messages from the QSYSOPR queue, I see in the log that it shows the following messages. Please your support:

                56:20240604:192903.262 As400Metric.process() error: com.ibm.as400.access.AS400Exception: CPF34C4 List is too large for user space QNPSLIST.
                57:20240604:192903.288 As400Metric.process() error: com.ibm.as400.access.AS400Exception: CPF34C4 List is too large for user space QNPSLIST.
                53:20240604:193009.966 Procstat.updateJobinfoList() error: com.ibm.as400.access.AS400Exception: CPF3C53 Job 520019/NP501119/QP0ZSPWP not found.
                57:20240604:194353.821 As400Metric.process() error: com.ibm.as400.access.AS400Exception: CPF34C4 List is too large for user space QNPSLIST.
                55:20240604:194437.578 As400Metric.process() error: com.ibm.as400.access.AS400Exception: CPF34C4 List is too large for user space QNPSLIST.
                57:20240604:195743.754 As400Metric.process() error: com.ibm.as400.access.AS400Exception: CPF34C4 List is too large for user space QNPSLIST.
                53:20240604:200039.264 Procstat.updateJobinfoList() error: com.ibm.as400.access.AS400Exception: CPF3C53 Job 520177/SECOPS/ACTRESUME not found.

                Thanks.

                Comment


                • jsolman
                  jsolman commented
                  Editing a comment
                  If you check out page 9 onwards, these issues have already been covered.
                  CPF34C4 is an OS400 error, so nothing the Zabbix Agent Emulator is generating, I've logged a call with IBM on this one myself, as I'm new to this, so seeing if there is an OS parameter to help etc.
                  CPF3C53 means the job has been removed during the list processing (was there at the start, but gone now).
              • obermotz
                Junior Member
                • Dec 2024
                • 1

                #204
                Hello, just started using the IBM i Zabbix agent and so far so good - thanks Kos for implementing such a useful piece of software. Also after dabbling around a bit I realized that the AS400 agent does not support the system.run metrics and that made mi a little sad Checked the sources and I can see that you already did some testing but commented out the relevant part due to bugs (I presume). Also I would prefer to run a shell script instead of a "classic" AS400 command as you can also call native commands/programs with the SYSTEM PASE command (whenever I am allowed to, I install the OSS environment for IBM i to have the proper GNU tools on my LPARs). Any chance for you to look into this or bugfix the preliminary system.run function (I would gladly do it but unfortunately I can't develop in Java)?

                Comment

                • ChrisQCK
                  Junior Member
                  • Nov 2023
                  • 11

                  #205
                  Hi Kos,

                  Firstly, thanks again for starting this. Really appreciate it. I am testing this agent and previously it was running OK. Then out of the blue, it just started complaining about system.uname. I have disabled this metrics on the template but in the log it's still somehow causing the agent to exit.

                  ================================================== ====================================
                  32:20250811:104752.792 Starting Zabbix Agent v0.7.9
                  32:20250811:104752.799 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                  32:20250811:104752.799 IBM Corporation Java version "1.8.0_431"
                  32:20250811:104752.800 Java(TM) SE Runtime Environment (build 8.0.8.35 - pap6480sr8fp35-20241105_01(SR8 FP35))
                  32:20250811:104752.800 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20240926_78736 (JIT enabled, AOT enabled)
                  OpenJ9 - 8ce0d57a2f6
                  OMR - 8eaf1a20f
                  IBM - dd9cff8)
                  32:20250811:104752.817 Open Source Software, JTOpen 21.0.0 codebase 5770-SS1 V7R5M0.00 built=2025-01-27 00:26:54 (GMT)
                  32:20250811:104753.611 As400Metric.process() error: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                  32:20250811:104753.612 Error obtaining 'system.uname' metric, exiting

                  32:20250811:114127.242 Starting Zabbix Agent v0.7.9
                  32:20250811:114127.249 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                  32:20250811:114127.249 IBM Corporation Java version "1.8.0_431"
                  32:20250811:114127.250 Java(TM) SE Runtime Environment (build 8.0.8.35 - pap6480sr8fp35-20241105_01(SR8 FP35))
                  32:20250811:114127.250 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20240926_78736 (JIT enabled, AOT enabled)
                  OpenJ9 - 8ce0d57a2f6
                  OMR - 8eaf1a20f
                  IBM - dd9cff8)
                  32:20250811:114127.262 Open Source Software, JTOpen 21.0.0 codebase 5770-SS1 V7R5M0.00 built=2025-01-27 00:26:54 (GMT)
                  32:20250811:114128.152 As400Metric.process() error: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                  32:20250811:114128.152 Error obtaining 'system.uname' metric, exiting

                  32:20250811:114701.429 Starting Zabbix Agent v0.7.9
                  32:20250811:114701.436 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                  32:20250811:114701.436 agent #-1 started [ZabbixAgent config]
                  32:20250811:114701.437 IBM Corporation Java version "1.8.0_431"
                  32:20250811:114701.437 Java(TM) SE Runtime Environment (build 8.0.8.35 - pap6480sr8fp35-20241105_01(SR8 FP35))
                  32:20250811:114701.437 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20240926_78736 (JIT enabled, AOT enabled)
                  OpenJ9 - 8ce0d57a2f6
                  OMR - 8eaf1a20f
                  IBM - dd9cff8)
                  32:20250811:114701.449 Open Source Software, JTOpen 21.0.0 codebase 5770-SS1 V7R5M0.00 built=2025-01-27 00:26:54 (GMT)
                  32:20250811:114701.455 ZbxMetric() constructor: metric 'log' successfully added
                  32:20250811:114701.455 ZbxMetric() constructor: metric 'logrt' successfully added
                  32:20250811:114701.456 ZbxMetric() constructor: metric 'eventlog' successfully added
                  32:20250811:114701.457 ZbxMetric() constructor: metric 'agent.exit' successfully added
                  32:20250811:114701.458 ZbxMetric() constructor: metric 'agent.hostname' successfully added
                  32:20250811:114701.459 ZbxMetric() constructor: metric 'agent.ping' successfully added
                  32:20250811:114701.460 ZbxMetric() constructor: metric 'agent.version' successfully added
                  32:20250811:114701.461 ZbxMetric() constructor: metric 'agent.debug.active.thread' successfully added
                  32:20250811:114701.466 ZbxMetric() constructor: metric 'system.hostname' successfully added
                  32:20250811:114701.467 ZbxMetric() constructor: metric 'system.uname' successfully added
                  32:20250811:114701.472 ZbxMetric() constructor: metric 'system.localtime' successfully added
                  32:20250811:114701.474 ZbxMetric() constructor: metric 'system.cpu.num' successfully added
                  32:20250811:114701.475 ZbxMetric() constructor: metric 'as400.cpu.capacity' successfully added
                  32:20250811:114701.476 ZbxMetric() constructor: metric 'system.users.num' successfully added
                  32:20250811:114701.477 ZbxMetric() constructor: metric 'proc.num' successfully added
                  32:20250811:114701.479 ZbxMetric() constructor: metric 'as400.subsystem' successfully added
                  32:20250811:114701.480 ZbxMetric() constructor: metric 'as400.outputqueue.size' successfully added
                  32:20250811:114701.482 ZbxMetric() constructor: metric 'as400.services' successfully added
                  32:20250811:114701.483 ZbxMetric() constructor: metric 'vfs.fs.discovery' successfully added
                  32:20250811:114701.484 ZbxMetric() constructor: metric 'vfs.fs.size' successfully added
                  32:20250811:114701.485 ZbxMetric() constructor: metric 'vfs.fs.state' successfully added
                  32:20250811:114701.486 ZbxMetric() constructor: metric 'as400.disk.discovery' successfully added
                  32:20250811:114701.488 ZbxMetric() constructor: metric 'as400.disk.size' successfully added
                  32:20250811:114701.489 ZbxMetric() constructor: metric 'as400.disk.state' successfully added
                  32:20250811:114701.490 ZbxMetric() constructor: metric 'as400.disk.asp' successfully added
                  32:20250811:114701.491 ZbxMetric() constructor: metric 'as400.systemPool.discovery' successfully added
                  32:20250811:114701.492 ZbxMetric() constructor: metric 'as400.systemPool.state' successfully added
                  32:20250811:114701.493 ZbxMetric() constructor: metric 'proc.cpu.util.discovery' successfully added
                  32:20250811:114701.494 ZbxMetric() constructor: metric 'proc.cpu.util' successfully added
                  32:20250811:114701.527 constuctor AgentRequest(): str='system.uname', key_name='system.uname'
                  32:20250811:114701.528 parameters list: null
                  32:20250811:114701.528 in ZabbixAgent.process(): key_name='system.uname', full key='system.uname'
                  32:20250811:114702.320 As400Metric.process() error: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                  32:20250811:114702.321 Error in ZabbixAgent.process(): as400.ZbxException: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                  32:20250811:114702.322 end of ZabbixAgent.process()
                  32:20250811:114702.323 Error obtaining 'system.uname' metric, exiting
                  ================================================== ====================================


                  Comment

                  • ChrisQCK
                    Junior Member
                    • Nov 2023
                    • 11

                    #206
                    Hi Kos,

                    Firstly, thanks again for starting this. Really appreciate it. I am testing this agent and previously it was running OK. Then out of the blue, it just started complaining about system.uname. I have disabled this metrics on the template but in the log it's still somehow causing the agent to exit.

                    ================================================== ====================================
                    32:20250811:104752.792 Starting Zabbix Agent v0.7.9
                    32:20250811:104752.799 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                    32:20250811:104752.799 IBM Corporation Java version "1.8.0_431"
                    32:20250811:104752.800 Java(TM) SE Runtime Environment (build 8.0.8.35 - pap6480sr8fp35-20241105_01(SR8 FP35))
                    32:20250811:104752.800 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20240926_78736 (JIT enabled, AOT enabled)
                    OpenJ9 - 8ce0d57a2f6
                    OMR - 8eaf1a20f
                    IBM - dd9cff8)
                    32:20250811:104752.817 Open Source Software, JTOpen 21.0.0 codebase 5770-SS1 V7R5M0.00 built=2025-01-27 00:26:54 (GMT)
                    32:20250811:104753.611 As400Metric.process() error: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                    32:20250811:104753.612 Error obtaining 'system.uname' metric, exiting

                    32:20250811:114127.242 Starting Zabbix Agent v0.7.9
                    32:20250811:114127.249 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                    32:20250811:114127.249 IBM Corporation Java version "1.8.0_431"
                    32:20250811:114127.250 Java(TM) SE Runtime Environment (build 8.0.8.35 - pap6480sr8fp35-20241105_01(SR8 FP35))
                    32:20250811:114127.250 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20240926_78736 (JIT enabled, AOT enabled)
                    OpenJ9 - 8ce0d57a2f6
                    OMR - 8eaf1a20f
                    IBM - dd9cff8)
                    32:20250811:114127.262 Open Source Software, JTOpen 21.0.0 codebase 5770-SS1 V7R5M0.00 built=2025-01-27 00:26:54 (GMT)
                    32:20250811:114128.152 As400Metric.process() error: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                    32:20250811:114128.152 Error obtaining 'system.uname' metric, exiting

                    32:20250811:114701.429 Starting Zabbix Agent v0.7.9
                    32:20250811:114701.436 using configuration file: /home/ZABBIX/agentd/zabbix_agentd.conf
                    32:20250811:114701.436 agent #-1 started [ZabbixAgent config]
                    32:20250811:114701.437 IBM Corporation Java version "1.8.0_431"
                    32:20250811:114701.437 Java(TM) SE Runtime Environment (build 8.0.8.35 - pap6480sr8fp35-20241105_01(SR8 FP35))
                    32:20250811:114701.437 IBM J9 VM (build 2.9, JRE 1.8.0 OS/400 ppc64-64-Bit Compressed References 20240926_78736 (JIT enabled, AOT enabled)
                    OpenJ9 - 8ce0d57a2f6
                    OMR - 8eaf1a20f
                    IBM - dd9cff8)
                    32:20250811:114701.449 Open Source Software, JTOpen 21.0.0 codebase 5770-SS1 V7R5M0.00 built=2025-01-27 00:26:54 (GMT)
                    32:20250811:114701.455 ZbxMetric() constructor: metric 'log' successfully added
                    32:20250811:114701.455 ZbxMetric() constructor: metric 'logrt' successfully added
                    32:20250811:114701.456 ZbxMetric() constructor: metric 'eventlog' successfully added
                    32:20250811:114701.457 ZbxMetric() constructor: metric 'agent.exit' successfully added
                    32:20250811:114701.458 ZbxMetric() constructor: metric 'agent.hostname' successfully added
                    32:20250811:114701.459 ZbxMetric() constructor: metric 'agent.ping' successfully added
                    32:20250811:114701.460 ZbxMetric() constructor: metric 'agent.version' successfully added
                    32:20250811:114701.461 ZbxMetric() constructor: metric 'agent.debug.active.thread' successfully added
                    32:20250811:114701.466 ZbxMetric() constructor: metric 'system.hostname' successfully added
                    32:20250811:114701.467 ZbxMetric() constructor: metric 'system.uname' successfully added
                    32:20250811:114701.472 ZbxMetric() constructor: metric 'system.localtime' successfully added
                    32:20250811:114701.474 ZbxMetric() constructor: metric 'system.cpu.num' successfully added
                    32:20250811:114701.475 ZbxMetric() constructor: metric 'as400.cpu.capacity' successfully added
                    32:20250811:114701.476 ZbxMetric() constructor: metric 'system.users.num' successfully added
                    32:20250811:114701.477 ZbxMetric() constructor: metric 'proc.num' successfully added
                    32:20250811:114701.479 ZbxMetric() constructor: metric 'as400.subsystem' successfully added
                    32:20250811:114701.480 ZbxMetric() constructor: metric 'as400.outputqueue.size' successfully added
                    32:20250811:114701.482 ZbxMetric() constructor: metric 'as400.services' successfully added
                    32:20250811:114701.483 ZbxMetric() constructor: metric 'vfs.fs.discovery' successfully added
                    32:20250811:114701.484 ZbxMetric() constructor: metric 'vfs.fs.size' successfully added
                    32:20250811:114701.485 ZbxMetric() constructor: metric 'vfs.fs.state' successfully added
                    32:20250811:114701.486 ZbxMetric() constructor: metric 'as400.disk.discovery' successfully added
                    32:20250811:114701.488 ZbxMetric() constructor: metric 'as400.disk.size' successfully added
                    32:20250811:114701.489 ZbxMetric() constructor: metric 'as400.disk.state' successfully added
                    32:20250811:114701.490 ZbxMetric() constructor: metric 'as400.disk.asp' successfully added
                    32:20250811:114701.491 ZbxMetric() constructor: metric 'as400.systemPool.discovery' successfully added
                    32:20250811:114701.492 ZbxMetric() constructor: metric 'as400.systemPool.state' successfully added
                    32:20250811:114701.493 ZbxMetric() constructor: metric 'proc.cpu.util.discovery' successfully added
                    32:20250811:114701.494 ZbxMetric() constructor: metric 'proc.cpu.util' successfully added
                    32:20250811:114701.527 constuctor AgentRequest(): str='system.uname', key_name='system.uname'
                    32:20250811:114701.528 parameters list: null
                    32:20250811:114701.528 in ZabbixAgent.process(): key_name='system.uname', full key='system.uname'
                    32:20250811:114702.320 As400Metric.process() error: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                    32:20250811:114702.321 Error in ZabbixAgent.process(): as400.ZbxException: com.ibm.as400.access.ErrorCompletingRequestExcepti on: An error occurred on the system.
                    32:20250811:114702.322 end of ZabbixAgent.process()
                    32:20250811:114702.323 Error obtaining 'system.uname' metric, exiting
                    ================================================== ====================================

                    Comment

                    • Kos
                      Senior Member
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Aug 2015
                      • 3404

                      #207
                      ChrisQCK,
                      the 'system.uname' metric must work for the agent be usable.
                      It uses this metric at the very beginning of its work (during a startup and initialization) to output some general information about the system to the log file.
                      Obviously, the error is occurring just during this time in your case.
                      Unfortunately, the only useful information we have now is the following:
                      Code:
                      com.ibm.as400.access.ErrorCompletingRequestException: An error occurred on the system.
                      According to documentation for API, the ErrorCompletingRequestException can occur during the SystemStatus.getSystemName() call:
                      If an error occurs before the request is completed.
                      Unfortunately, that's all that I can tell - there is no more detailed hints about reasons
                      The rest is just guesses.

                      Did the agent work on this system successfully before? If yes - were any changes on this system or agent configuration?
                      Is the user for this agent exist and not disabled/locked/etc.?

                      Comment


                      • soren.buchberg
                        soren.buchberg commented
                        Editing a comment
                        We had similar error after going to V7R6 and started playing with MFA. Turned out to be Java tool box (JT Open) - Downloaded lates build and implemented - Solved problem with "system.uname".
                    • ChrisQCK
                      Junior Member
                      • Nov 2023
                      • 11

                      #208
                      Kos We identified the root cause of the problem~!!! It was due to the storage space assigned to the profile was insufficient to accommodate the log file size. After we increased that and also fix permission so that the log file can grow without being limited by the storage size limitation, the agent was able to run as normal. hahahaha~!!! I will note this down in the KB that we are building so that these would be the things that we need to check if we come across similar issue on the production servers later on.
                      Last edited by ChrisQCK; 13-08-2025, 14:05.

                      Comment


                      • Kos
                        Kos commented
                        Editing a comment
                        ChrisQCK, thank you for sharing the cause of this problem and the solution!
                    • ChrisQCK
                      Junior Member
                      • Nov 2023
                      • 11

                      #209
                      Kos Sorry I am just checking... are any updates on this agent ? I understand you are doing this based on your free time and motivation so no worries if no updates.

                      just wanted to share that I tested also another method which is via ODBC. So far I am able to query some metrics. However, when it comes to QSYSOPR message queue, it failed to successfully get the information. I'm not sure if anyone here has any knowledge on this issue. It seems message queue is the limitation for monitoring in Zabbix ? hahaha

                      Comment


                      • Kos
                        Kos commented
                        Editing a comment
                        Unfortunately, up to now the latest version still is 0.7.9
                        I hoped to perform some modifications this year; but...
                        Maybe, I'll return to this task next year (2026).
                    • irontmp
                      Member
                      • Sep 2023
                      • 36

                      #210
                      Originally posted by MNfromH
                      I reproduced your problem and kind of fixed it but im not really happy with the results.

                      I gues on your first run of the agentd the agentd complained about a missing user "zabbix".

                      Did you create a new userprofile "ZABBIX" via CRTUSRPRF? If so, delete it. I think the agent tries to check for the existence of a userprofile "zabbix" via id -un or some API and then tries to "su" to it. Since we dont ahve a "su" in PASE this fails hard. Giving some obscure errors like yours.

                      Well, the bad news here is: After removing the user "zabbix" from the system the agentd only would run when the invoking userprofile has the attribute
                      GRPPRF(QPGMR) - wich of course raises some security questions.

                      I don't quite understand what is happening here. Even after adding all special permissions from QPGMR to my zabbix-agentd user, the agentd would only run when the profile has it GRPPRF as QPGMR, similar to how you need proper access to Descargar Minecraft before running the installer.

                      So, the quick fix for your problem shoudl be:

                      1. Remove user "zabbix" from the system
                      2. Addd GRPPRF(QPGMR) to the userprofile which invokes the agentd
                      3. Re login
                      4. ./zabbix_agentd should be working

                      I try to get a hand on that QPGMR GRPPRF thing.
                      Simply saving the MIB file on your Zabbix server won’t be enough. The MIB just maps OIDs; the AS/400 must expose the specific data via SNMP, and you need to configure Zabbix items to query the correct OIDs. For detailed monitoring like active processes and job queue statistics, SNMP is often limited. A more reliable approach is to use scripts or APIs on the AS/400 that extract the needed data and send it to Zabbix, or run commands via SSH/Telnet and parse the results. This method gives you full control over the metrics you want to monitor.

                      Comment

                      Working...