Commits
Andris Mednis authored 1336d81aa77
...G...... [ZBX-10548] fixed agent compilation on Solaris without zone support (e.g. Solaris 9), added awareness of running on a newer Solaris with zones
This change:
- fixes agent compilation on Solaris 9 and older where zones are not supported,
- fixes some compiler warnings,
- if agent has been compiled on Solaris without zone support and has been copied to and is running on
a newer Solaris where zones are supported then the agent will return NOTSUPPORTED for proc.cpu.util[] item
if <zone> parameter is default or "current" (the agent cannot limit results to only current zone).
However, <zone> parameter value "all" is supported in this case.