Ad Widget

Collapse

help with Zabbix agent on IBM i V7R2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dstevens1
    Junior Member
    • Oct 2016
    • 3

    #1

    help with Zabbix agent on IBM i V7R2

    Hello

    I am trying to get zabbix_agentd to run on an IBM i @ V7R2. I am using the zabbix agent 1.4.6 for AIX 5.2

    HTML Code:
    $                                           
     /QOpenSys/usr/sbin/zabbix_agentd --version  
     ZABBIX Agent (daemon) v1.4.6 (23 July 2008) 
     Compilation time:  Nov 12 2008 17:00:23
    I have followed this thread
    HTML Code:
    https://www.zabbix.com/forum/showthread.php?t=47525&highlight=as400
    and created a zabbix user with a dummy group profile
    HTML Code:
      $                                                   
    > id                                                  
      uid=141(ZBX) gid=104(DUMMYGRP) groups=104(DUMMYGRP)
    I have re-created the directory structure mentioned in that same thread as well:
    HTML Code:
     $                                            
    > ls -l /QOpenSys/usr/sbin|grep zabbix                                   
      -rwx------  1 ZBX   0                142141 Oct 17 07:53 zabbix_agent  
      -rwx------  1 ZBX   0                160026 Oct 17 07:53 zabbix_agentd 
      $                                                                      
    ls -l /QOpenSys/usr/bin|grep zabbix                                    
    -rwxr-xr-x  1 QSYS  0                 57885 Oct 17 07:54 zabbix_get    
    -rwxr-xr-x  1 QSYS  0                 61713 Oct 17 07:54 zabbix_sender
    when I try to execute the agentd, I get:

    HTML Code:
       $                                                             
     > /QOpenSys/usr/sbin/zabbix_agentd                              
       zabbix_agentd [11383]: Error in line [1] "{@ã  ¢@ ¢@ @      @ 
       @   @£
    <much more similar stuff deleted>
    zabbix_agentd [11383]: Missing mandatory parameter [Server]. 
    am I missing something in my /etc/zabbix/zabbix_agentd.conf file? Or am I missing something else completely?

    any help would be appreciated.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    first, why you are using zabbix-agent 1.4 ??

    please try:
    Code:
    /QOpenSys/usr/sbin/zabbix_agentd -c /Path/to/Config/file
    works this?
    Debian-User

    Sorry for my bad english

    Comment

    • dstevens1
      Junior Member
      • Oct 2016
      • 3

      #3
      I'm shooting for whatever Zabbix version that will work with OS/400 - I know the version I am trying to use is OLD, but I've not seen where a newer version will work.

      results of running the command suggested:

      HTML Code:
       > /QOpenSys/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf 
         zabbix_agentd [11996]: Error in line [1] "{@ã  ¢@ ¢@ @      @
      <much similar stuff deleted>
       É×~ðKðKðK"                                                  
      zabbix_agentd [11996]: Missing mandatory parameter [Server]. 
      $
      am I missing a directive in my zabbix_agentd.conf file? Am I supposed to enter the Zabbix server IP address in my agentd.conf file?

      Comment

      • Colttt
        Senior Member
        Zabbix Certified Specialist
        • Mar 2009
        • 878

        #4
        you must have this following Parameter:
        Server=<IP>

        my zabbix_agentd.conf looks like this:


        Code:
        PidFile=/var/run/zabbix/zabbix_agentd.pid                                                                                                                                                                                                                                                                                    
        LogFile=/var/log/zabbix/zabbix_agentd.log                                                                                                                                                                                                                                                                                    
        LogFileSize=10                                                                                                                                                                                                                                                                                                               
        DebugLevel=3                                                                                                                                                                                                                                                                                                                 
        Server=<IP-FROM-ZABBIX-SERVER>                                                                                                                                                                                                                                                                                                        
        ServerActive=<IP-FROM-ZABBIX-SERVER>                                                                                                                                                                                                                                                                                                   
        Hostname=<HOSTNAME>                                                                                                                                                                                                                                                                                                   
        Timeout=5                                                                                                                                                                                                                                                                                                                    
        Include=/etc/zabbix/zabbix_agentd.userparams.conf                                                                                                                                                                                                                                                                            
        Include=/etc/zabbix/zabbix_agentd.conf.d/                                                                                                                                                                                                                                                                                    
        UserParameter=debian_updates[*],/usr/lib/update-notifier/apt-check --human-readable | grep $1 | cut -d " " -f1

        I know the version I am trying to use is OLD, but I've not seen where a newer version will work.
        i guess that a newer version works too
        Debian-User

        Sorry for my bad english

        Comment

        • dstevens1
          Junior Member
          • Oct 2016
          • 3

          #5
          SOLVED: help with Zabbix agent on IBM i V7R2

          FWIW, I got this fixed.

          The fix was to change the CCSID of the zabbix_agent and zabbix_agentd binaries from 819 (ISO-8859 ASCII) to 37 (US/Canada); QSHELL does not recognize CCSID 819

          Comment

          Working...