Ad Widget

Collapse

net.if.in on 64bit solaris

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akapap
    Member
    • Nov 2009
    • 35

    #1

    net.if.in on 64bit solaris

    When I test solaris a get from agent obyte64 rbyte64 and the zabbix agent is not aware 64bit long number. He still thinks that is 32bit one.

    So, what now? How to forse zabbix agent/server/item etc. to get the number in the right way?

    I can always changet the value for SYSINFO_RET_OK in the include agent, but that is not the case.

    TiA.
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    You must patch and recompile. I found this somewhere in here and it works:
    Code:
    Patch: 
    Index: src/libs/zbxsysinfo/sysinfo.c 
    =================================================================== 
    --- src/libs/zbxsysinfo/sysinfo.c (revision 8111) 
    +++ src/libs/zbxsysinfo/sysinfo.c (working copy) 
    @@ -539,8 +539,8 @@ 
    *{ 
    *#if defined(HAVE_POSTGRESQL) || defined(HAVE_ORACLE) || defined(HAVE_SQLITE3) 
    ********/* field with precision 16, scale 4 [NUMERIC(16,4)] */ 
    - register double pg_min_numeric = (double)-1E12; 
    - register double pg_max_numeric = (double)1E12; 
    + register double pg_min_numeric = (double)-1E16; 
    + register double pg_max_numeric = (double)1E16; 
    
    ********if (value <= pg_min_numeric || value >= pg_max_numeric) 
    ****************return FAIL;

    I have done this for 1.6.6 and 1.6.7 and it works quite well.

    Comment

    • akapap
      Member
      • Nov 2009
      • 35

      #3
      This patch such go to zabbix-server or zabbix-agentd?

      Best regards.

      Comment

      • akapap
        Member
        • Nov 2009
        • 35

        #4
        Okay. It should goes to zabbix-server.

        Comment

        Working...