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

proc.num[] not working correctly for Solaris ZONES

XMLWordPrintable

    • Sprint 36, Sprint 38, Sprint 39, Sprint 40
    • 1.5

      If I use proc.num[cron,root] as an item on a Solaris Server which hosts a Solaris zone the result is 2 ( one cron deamon running on the Server, one running on the zone).

      explanation:
      The agent is going through the /proc directory and checking for the deamon.
      the output for a Server hosting zones can look like this:

      dr-x--x--x   5 root     root         864 May  8 15:06 24088
      dr-x--x--x   5 834      843          864 May  8 15:06 24125
      dr-x--x--x   5 834      843          864 May  8 15:06 24127
      dr-x--x--x   5 834      843          864 May  8 15:06 24131
      dr-x--x--x   5 805      805          864 May  8 15:20 25849
      dr-x--x--x   5 805      805          864 May  8 15:28 26856
      dr-x--x--x   5 805      805          864 May  8 15:30 27112
      dr-x--x--x   5 805      805          864 May  8 15:40 28388
      dr-x--x--x   5 805      805          864 May  8 15:51 29748
      dr-x--x--x   5 root     root         864 May  8 15:52 29941
      dr-x--x--x   5 917      207          864 May  8 15:53 5
      dr-x--x--x   5 917      207          864 May  8 15:53 8
      dr-x--x--x   5 805      805          864 May  8 15:53 37
      dr-x--x--x   5 805      805          864 May  8 15:55 285
      dr-x--x--x   5 805      805          864 May  8 15:57 538
      dr-x--x--x   5 805      805          864 May  8 15:59 800
      dr-x--x--x   5 805      805          864 May  8 16:01 1041
      dr-x--x--x   5 root     root         864 May  8 16:02 1158
      

      ==> here you see the userid and groupid are either "real/local" userids or zone users represented by a number

      Explicitly searching for a deamon with userid "root" for eg. is no workaround, as the checking for the user running the deamon is done in the subdirectory.

      Can this be changed/corrected?

      Thanx
      Patrick

        1. zabbix-1.8.2-add_zone_support.patch
          9 kB
          Takanori Suzuki
        2. zabbix-1.8.2-add_zone_support2.patch
          9 kB
          Takanori Suzuki
        3. zabbix-1.8.5-add_zone_support.patch
          8 kB
          Stéphane Lacasse

            viktors.tjarve Viktors Tjarve
            patrick.waldispuhl Patrick Waldispuhl
            Team A
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: