{"action":"created","issue":{"url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files/issues/1","repository_url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files","labels_url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files/issues/1/comments","events_url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files/issues/1/events","html_url":"https://github.com/wefixit-AT/nagios_check_open_files/issues/1","id":173915734,"number":1,"title":"Detect location of [ sudo lsof awk wc ] ","user":{"login":"box293","id":8356113,"avatar_url":"https://avatars.githubusercontent.com/u/8356113?v=3","gravatar_id":"","url":"https://api.github.com/users/box293","html_url":"https://github.com/box293","followers_url":"https://api.github.com/users/box293/followers","following_url":"https://api.github.com/users/box293/following{/other_user}","gists_url":"https://api.github.com/users/box293/gists{/gist_id}","starred_url":"https://api.github.com/users/box293/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box293/subscriptions","organizations_url":"https://api.github.com/users/box293/orgs","repos_url":"https://api.github.com/users/box293/repos","events_url":"https://api.github.com/users/box293/events{/privacy}","received_events_url":"https://api.github.com/users/box293/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T02:25:15Z","updated_at":"2016-11-07T23:10:35Z","closed_at":null,"body":"Might be good to detect the location of the files:\n\n```\nsudo\nlsof\nawk\nwc\n```\n\nUsing CentOS 6.x, the first time I tried to run it I got:\n\n```\n!!! command failure !!! Username wrong\n```\n\nI installed lsof and changed the script to:\n\n```\nLSOF=/usr/sbin/lsof\n```\n\nThen when I tried to run it I got the errors:\n\n```\n./nagios_check_open_files.sh: line 36: /bin/sudo: No such file or directory\n./nagios_check_open_files.sh: line 38: /bin/wc: No such file or directory\n./nagios_check_open_files.sh: line 38: /bin/sudo: No such file or directory\n(standard_in) 1: syntax error\n./nagios_check_open_files.sh: line 42: [: -lt: unary operator expected\n./nagios_check_open_files.sh: line 46: [: -ge: unary operator expected\n./nagios_check_open_files.sh: line 49: [: -ge: unary operator expected\n```\n\nOnce I updated these:\n\n```\nSUDO=/usr/bin/sudo\nWC=/usr/bin/wc\n```\n\nIt ran just fine:\n\n```\n./nagios_check_open_files.sh nagios\n\nFILES OK - 18 % with 762 files open|files=762;;;\n```\n"},"comment":{"url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files/issues/comments/258993601","html_url":"https://github.com/wefixit-AT/nagios_check_open_files/issues/1#issuecomment-258993601","issue_url":"https://api.github.com/repos/wefixit-AT/nagios_check_open_files/issues/1","id":258993601,"user":{"login":"wefixit-AT","id":10380344,"avatar_url":"https://avatars.githubusercontent.com/u/10380344?v=3","gravatar_id":"","url":"https://api.github.com/users/wefixit-AT","html_url":"https://github.com/wefixit-AT","followers_url":"https://api.github.com/users/wefixit-AT/followers","following_url":"https://api.github.com/users/wefixit-AT/following{/other_user}","gists_url":"https://api.github.com/users/wefixit-AT/gists{/gist_id}","starred_url":"https://api.github.com/users/wefixit-AT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wefixit-AT/subscriptions","organizations_url":"https://api.github.com/users/wefixit-AT/orgs","repos_url":"https://api.github.com/users/wefixit-AT/repos","events_url":"https://api.github.com/users/wefixit-AT/events{/privacy}","received_events_url":"https://api.github.com/users/wefixit-AT/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T23:10:35Z","updated_at":"2016-11-07T23:10:35Z","body":"Thanks for reporting, this is a good idea.\r\nI will build this into the check."}}
{"actor":{"display_login":"wefixit-AT"}}