{"action":"created","issue":{"url":"https://api.github.com/repos/mickem/nscp/issues/147","labels_url":"https://api.github.com/repos/mickem/nscp/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/mickem/nscp/issues/147/comments","events_url":"https://api.github.com/repos/mickem/nscp/issues/147/events","html_url":"https://github.com/mickem/nscp/issues/147","id":74303804,"number":147,"title":"check_drivesize and filter options","user":{"login":"itsul","id":12328177,"avatar_url":"https://avatars.githubusercontent.com/u/12328177?v=3","gravatar_id":"","url":"https://api.github.com/users/itsul","html_url":"https://github.com/itsul","followers_url":"https://api.github.com/users/itsul/followers","following_url":"https://api.github.com/users/itsul/following{/other_user}","gists_url":"https://api.github.com/users/itsul/gists{/gist_id}","starred_url":"https://api.github.com/users/itsul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsul/subscriptions","organizations_url":"https://api.github.com/users/itsul/orgs","repos_url":"https://api.github.com/users/itsul/repos","events_url":"https://api.github.com/users/itsul/events{/privacy}","received_events_url":"https://api.github.com/users/itsul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-08T09:41:15Z","updated_at":"2015-05-11T07:21:42Z","closed_at":"2015-05-11T05:57:44Z","body":"While configuring NSCP we have massive problems since the new v4.x version was released.\r\n\r\nA command should check all drives on windows hosts. On Windows 2012 Server there are different drives like \\\\?\\ which should be filtered. It does not work, have tried different variants.\r\n\r\nroot@ces-test:~#./check_nrpe -H xx.xxx.xx.xx\r\nI (0.4.3.131 2015-02-15) seem to be doing fine...\r\n\r\nroot@ces-test:~# ./check_nrpe -H xx.xxx.xx.xx -c check_drivesize -a show-all\r\nOK C:\\: 209.582GB/465.26GB used, D:\\: 46.828MB/12.061GB used, F:\\: 0B/0B used, S:\\: 22.583GB/45.771GB used, Boot: 293.137MB/511.996MB used|'C:\\ used'=209.5816GB;372.2078;418.73378;0;465.25976 'C:\\ used %'=45%;80;90;0;100 'D:\\ used'=0.04573GB;9.64843;10.85448;0;12.06054 'D:\\ used %'=0%;79;89;0;100 'F:\\ used'=0B;0;0;0;0 'S:\\ used'=22.58301GB;36.61718;41.19432;0;45.77147 'S:\\ used %'=49%;79;89;0;100 '\\\\?\\Volume{1f3d5adb-4aaf-11e3-824f-806e6f6e6963}\\ used'=293.13671MB;409.59687;460.79648;0;511.99609 '\\\\?\\Volume{1f3d5adb-4aaf-11e3-824f-806e6f6e6963}\\ used %'=57%;79;89;0;100\r\n\r\nroot@ces-test:~#./check_nrpe -H xx.xxx.xx.xx -c check_drivesize -a \"filter=name not like '\\\\?\\'\"\r\nInvalid command line: unrecognised option 'not'\r\nhelp                                                    Show help screen (this screen)\r\nhelp-pb                                         Show help screen as a protocol buffer payload\r\nshow-default                                            Show default values for a given command\r\nhelp-short                                              Show help screen (short format).\r\ndebug                                           Show debugging information in the log\r\nshow-all                                                Show debugging information in the log\r\nfilter=                                         Filter which marks interesting items.\r\nwarning=used > 80%                                      Filter which marks items which generates a warning state.\r\nwarn=                                           Short alias for warning\r\ncritical=used > 90%                                     Filter which marks items which generates a critical state.\r\ncrit=                                           Short alias for critical.\r\nok=                                                     Filter which marks items which generates an ok state.\r\nempty-state=unknown                                     Return status to use when nothing matched filter.\r\nperf-config=                                            Performance data generation configuration\r\ntop-syntax=${status} ${problem_list}                    Top level syntax.\r\nok-syntax=%(status) All %(count) drive(s) are ok        ok syntax.\r\nempty-syntax=%(status): No drives found         Empty syntax.\r\ndetail-syntax=${drive_or_name}: ${used}/${size} used    Detail level syntax.\r\nperf-syntax=${drive_or_id}                              Performance alias syntax.\r\ndrive=                                          The drives to check.\r\nignore-unreadable                                       Ignore drives which are not reachable by the current user.\r\nmagic=                                          Magic number for use with scaling drive sizes.\r\nexclude=                                                A list of drives not to check\r\ntotal                                           Include the total of all matching drives\r\n\r\n\r\n\r\non windows nscp debug mode:\r\ncheck_drivesize \"filter=name not like '\\\\?\\'\"\r\nL        cli Exception: unknown escape sequence\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mickem/nscp/issues/comments/100794322","html_url":"https://github.com/mickem/nscp/issues/147#issuecomment-100794322","issue_url":"https://api.github.com/repos/mickem/nscp/issues/147","id":100794322,"user":{"login":"itsul","id":12328177,"avatar_url":"https://avatars.githubusercontent.com/u/12328177?v=3","gravatar_id":"","url":"https://api.github.com/users/itsul","html_url":"https://github.com/itsul","followers_url":"https://api.github.com/users/itsul/followers","following_url":"https://api.github.com/users/itsul/following{/other_user}","gists_url":"https://api.github.com/users/itsul/gists{/gist_id}","starred_url":"https://api.github.com/users/itsul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsul/subscriptions","organizations_url":"https://api.github.com/users/itsul/orgs","repos_url":"https://api.github.com/users/itsul/repos","events_url":"https://api.github.com/users/itsul/events{/privacy}","received_events_url":"https://api.github.com/users/itsul/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T07:21:42Z","updated_at":"2015-05-11T07:21:42Z","body":"https://github.com/mickem/nscp/issues/149 <= for other users"}}