{"action":"created","issue":{"url":"https://api.github.com/repos/justintime/nagios-plugins/issues/11","labels_url":"https://api.github.com/repos/justintime/nagios-plugins/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/justintime/nagios-plugins/issues/11/comments","events_url":"https://api.github.com/repos/justintime/nagios-plugins/issues/11/events","html_url":"https://github.com/justintime/nagios-plugins/issues/11","id":75916167,"number":11,"title":"AIX loaned memory","user":{"login":"tomasss1024","id":12426297,"avatar_url":"https://avatars.githubusercontent.com/u/12426297?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasss1024","html_url":"https://github.com/tomasss1024","followers_url":"https://api.github.com/users/tomasss1024/followers","following_url":"https://api.github.com/users/tomasss1024/following{/other_user}","gists_url":"https://api.github.com/users/tomasss1024/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasss1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasss1024/subscriptions","organizations_url":"https://api.github.com/users/tomasss1024/orgs","repos_url":"https://api.github.com/users/tomasss1024/repos","events_url":"https://api.github.com/users/tomasss1024/events{/privacy}","received_events_url":"https://api.github.com/users/tomasss1024/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T09:28:16Z","updated_at":"2015-05-13T13:31:29Z","closed_at":"2015-05-13T13:31:29Z","body":"Hello,\r\n\r\nthere is missing option for loaned memory in AIX. \r\nI did some changes in code:\r\n   vmstat -v**h**\r\nand\r\n**if ($counter_name eq 'Number of 4k page frames loaned') {**\r\n                    **$free_memory_kb += $1*4;**\r\n                **}**\r\n\r\n```perl\r\n    elsif ( $uname =~ /AIX/ ) {\r\n        my @meminfo = `/usr/bin/vmstat -vh`;\r\n        foreach (@meminfo) {\r\n            chomp;\r\n            if (/^\\s*([0-9.]+)\\s+(.*)/) {\r\n                my $counter_name = $2;\r\n                if ($counter_name eq 'memory pages') {\r\n                    $total_memory_kb = $1*4;\r\n                }\r\n                if ($counter_name eq 'free pages') {\r\n                    $free_memory_kb = $1*4;\r\n                }\r\n                if ($counter_name eq 'file pages') {\r\n                    $caches_kb = $1*4;\r\n                }\r\n                if ($counter_name eq 'Number of 4k page frames loaned') {\r\n                    $free_memory_kb += $1*4;\r\n                }\r\n            }\r\n        }\r\n        $used_memory_kb = $total_memory_kb - $free_memory_kb;\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/justintime/nagios-plugins/issues/comments/101664169","html_url":"https://github.com/justintime/nagios-plugins/issues/11#issuecomment-101664169","issue_url":"https://api.github.com/repos/justintime/nagios-plugins/issues/11","id":101664169,"user":{"login":"justintime","id":144090,"avatar_url":"https://avatars.githubusercontent.com/u/144090?v=3","gravatar_id":"","url":"https://api.github.com/users/justintime","html_url":"https://github.com/justintime","followers_url":"https://api.github.com/users/justintime/followers","following_url":"https://api.github.com/users/justintime/following{/other_user}","gists_url":"https://api.github.com/users/justintime/gists{/gist_id}","starred_url":"https://api.github.com/users/justintime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintime/subscriptions","organizations_url":"https://api.github.com/users/justintime/orgs","repos_url":"https://api.github.com/users/justintime/repos","events_url":"https://api.github.com/users/justintime/events{/privacy}","received_events_url":"https://api.github.com/users/justintime/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T13:31:29Z","updated_at":"2015-05-13T13:31:29Z","body":"Made commit 27a069a9ded1a2f52e9004457518f8f90687c0aa to address this.  Thanks!"}}