Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4658

Solaris 10 SPARC 64-bit, zabbix agent, boottime/uptime kstat return type mismatch

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.10
    • 1.8.19rc1, 2.0.10rc1, 2.1.8
    • Agent (G)
    • Zabbix agent 1.8.10 compiled as a 64-bit binary on SPARC Solaris 10, with Sun C 5.11 SunOS_sparc 145354-05 2011/09/13 (Studio 12.2).
      Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC, Generic_147440-05 sun4v

    Description

      src/libs/zbxsysinfo/solaris/boottime.c and uptime.c do not check the kstat return value type and assume an unsigned long, when the correct type is ui32. This results in system.boottime and system.uptime returning insane values.

      If kn->value.ul is changed to kn->value.ui32, everything works just fine.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jk Janne Korkkula
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: