[ZBX-5186] Some parameters for system.stat key don't work on AIX platform. Created: 2012 Jun 14 Updated: 2017 Jun 09 Resolved: 2012 Jul 24 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.1 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Major |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 1 |
Labels: | aix, items | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Aix 5.3 5300-12-05-1140 LPAR |
Attachments: |
![]() ![]() ![]() |
||||||||
Issue Links: |
|
Description |
Please see attached file for more information which params don't work. |
Comments |
Comment by dimir [ 2012 Jun 19 ] |
system.stat - script to test all possible parameters Usage: system.stat [zabbix_get options] "-k <key>" options are generated automatically. You may want to adjust the full path to bash in the script header. |
Comment by dimir [ 2012 Jun 20 ] |
Results from AIX machines running exactly the same 2 versions of precompiled Zabbix agent binaries: AIX 5.3: AIX 6.1: |
Comment by dimir [ 2012 Jun 20 ] |
Are other items working fine on that "6100-06"? |
Comment by dimir [ 2012 Jun 28 ] |
The problem is accessing perfstat data on a Aix 6.1 6100-06: 12255382:20120622:180210.861 perfstat_disk_total: [22] Invalid argument So the perfstat_disk_total() call returns 22 (EINVAL) which means "One of the parameters is not valid". |
Comment by dimir [ 2012 Jun 29 ] |
Waiting for the information from reporter about accessing the machine where the problem occurred. |
Comment by dimir [ 2012 Jul 12 ] |
On the machine where system.stat is not working, try next simple program: #include <stdio.h> int main(int argc, char* argv[]) { perfstat_disk_total(NULL, &dinfo, sizeof(perfstat_disk_total_t), 1); exit(EXIT_SUCCESS); Save it to a file perfstat_disk.c and run (change "cc" to "gcc" if you want to use GNU C Compiler): cc -Wall -o perfstat_disk -lperfstat perfstat_disk.c && ./perfstat_disk If that gives error, run next commands and report their output: iostat -d I was thinking maybe perfstat_disk_total() fails due to disabled disk stats collection. Here is more info and also information how to enable disk collection: Please note that I'm not AIX system expert so I'd appreciate if someone has something to comment. |
Comment by dimir [ 2012 Jul 19 ] |
Please run attached script Save the chmod +x After that attach generated log file |
Comment by dimir [ 2012 Jul 24 ] |
OK the attached file was sent to me in private. It appeared that on one of the machines libperfstat was broken. Even the sample programs that come with libperfstat package were not working on that machine. Closing it, please feel free to reopen if you feel that the problem is still there. |
Comment by Marc [ 2017 Jun 09 ] |
In regards to system.stat[ent] |