{"push_id":862037943,"size":10,"distinct_size":0,"ref":"refs/heads/master","head":"d06279c239604e8002ef00f42b6ad7594ced59e9","before":"7f4afa21ed692c5a27d9557d24333224935d6b08","commits":[{"sha":"123e4ae4a61dfa0a008e192adfee3ddb1407b02a","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"WIP:  Refactoring check_cmd_output to better facilitate wrapper checks such as check_cmd_dmesg().","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/123e4ae4a61dfa0a008e192adfee3ddb1407b02a"},{"sha":"3dd8295f1cc09615129a62db79478b562d2800c1","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"Additional (final?) tweaks to check_cmd_output() for wrapping.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/3dd8295f1cc09615129a62db79478b562d2800c1"},{"sha":"f2c9631ae6c2c6da38100ff8e7818ca0edb3a688","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"WIP:  Synchronous/verified service actions for check_ps_service.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/f2c9631ae6c2c6da38100ff8e7818ca0edb3a688"},{"sha":"1d38bb97f2481b6643888086c0e634f5f5c15482","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"At the request/suggestion of Matt McLean <mattmc@umich.edu>, I added 2\nnew flags to check_ps_service() that allow the user to request that\nthe actions to be taken, whether that's start/restart/cycle/-e or\nstop/kill/-E, be verified by NHC, and that the check should only fail\nif the action isn't successful.\n\nThe -v or \"Verify Sync\" flag causes NHC to wait on the requested\naction to complete, whatever that action may be, and check the exit\ncode of the action.  If it returns success, the check will pass.  The\ncheck will only fail if the action fails.  For example, the following\nwill cause NHC to restart the named service if it's not running, and\nthe check will only fail if \"/sbin/service named restart\" returns\nnon-zero:  check_ps_service -v -r named\n\nThe -V or \"Verify Check\" option will do the same steps outlined above\nfor -v but will additionally check to make sure that the expected\nresult of the action actually occurred; i.e., that the service is\nsubsequently running or not running, depending on the parameters of\nthe check.  For example, the following will kill any non-root sshd\nfound running on the system, *and* make sure the kill command\nsucceeded, *and* make sure afterward that the process has actually\ngone away (and fail the check if, and only if, the process still\nexists):  check_ps_service -V -k -u !root sshd\n\nThese changes are currently on branch service-restart-sync but will be\nmerged into master after additional testing.  Those wishing to test in\nthe interim can build from this branch.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/1d38bb97f2481b6643888086c0e634f5f5c15482"},{"sha":"d0cd1a1691399649ebe455b231ef99abdccf4004","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"New check:  check_cmd_dmesg()\n\nThis check, requested by Mike Dubman <miked@dev.mellanox.co.il>, both\naddresses a user suggestion/critique *and* provides a working example\nof how to write checks that wrap the built-in check_cmd_output()\nfunction.  With the recently added improvements to the aforementioned\ncheck, wrappers can now provide customized and/or user-defined\nmessages for each match string.  check_cmd_dmesg() takes advantage of\nthis capability to allow the user to detect certain error messages\nthat might appear in \"dmesg\" output and display a unique check failure\nmessage for each one.\n\nThe syntax for check_cmd_dmesg() (and check_cmd_output() too) is:\n\n  check_cmd_dmesg [-r rc] [-t tm] [-e cmd] [-M msg] [-m mstr] [...]\n\nwhere:\n\n  -r rc    Expect cmd to return rc; fail if it doesn't\n  -t tm    Time out cmd after tm seconds\n  -e cmd   Use \"cmd\" instead of \"dmesg\" as the command to run\n  -M msg   Use \"msg\" as the error message for corresponding mstr\n  -m mstr  Match string (most likely negated) to check \"cmd\" output\n\nYou can specify \"-M msg\" and \"-m mstr\" multiple times to perform\nmultiple matches.  If specified and non-empty, the 1st msg corresponds\nto the 1st mstr, the 2nd msg to the 2nd mstr, and so on.  Values\nsupplied for msg can use replaceables %m for mstr, %c for cmd, %l for\nthe line number of the match (for negated mstr only), and %L for\nthe entire matching line (again, for negated match strings only).  If\nmultiple match strings are given, %f can be used to show how many\nmatch strings failed.\n\nIn the case of check_cmd_dmesg(), the user will typically want to\nsupply a negated match string (e.g., \"-m '!/segfault at/'\") since\nthey'll almost always be looking for a string that *shouldn't* appear.\n\n(In fact, perhaps check_cmd_dmesg() should add the ! if it's not\nthere?  Thoughts?)\n\nTODO:  Cache dmesg output so it's only called once?","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/d0cd1a1691399649ebe455b231ef99abdccf4004"},{"sha":"277d3e2ff325c5942f6267a3c688817c2a1cf9ea","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"Add new command line parameter, -e '<check>', which will instruct NHC\nto execute a single check line, just as if it had been found in the\nconfig file, and then exit based on the results of the check.  This is\nuseful for quickly testing/debugging/troubleshooting individual\nchecks.\n\nFor example, to only execute a check for running sshd service, and\nstart it if missing:  nhc -e 'check_ps_service -u root -S sshd'\n\nOn branch cli-check-exec pending further testing, unit tests, and\ndocumentation.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/277d3e2ff325c5942f6267a3c688817c2a1cf9ea"},{"sha":"15a539e013e3fcd954c1ee2fcbe52f492b7769e8","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"As NHC is used more and more with systems that aren't strictly compute\nnodes, it should no longer be an error if no Resource Manager is\ndetected.  So let's suppress the warning message.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/15a539e013e3fcd954c1ee2fcbe52f492b7769e8"},{"sha":"eb1515993980a972a0d9c031794a602327af9cef","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"Merge branch 'cli-check-exec' into dev\n\n* cli-check-exec:\n  Add new command line parameter, -e '<check>', which will instruct NHC to execute a single check line, just as if it had been found in the config file, and then exit based on the results of the check.  This is useful for quickly testing/debugging/troubleshooting individual checks.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/eb1515993980a972a0d9c031794a602327af9cef"},{"sha":"edc201d23b8f5122fe82db868e22c0ac612ea805","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"Merge branch 'check_cmd_dmesg' into dev\n\n* check_cmd_dmesg:\n  New check:  check_cmd_dmesg()","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/edc201d23b8f5122fe82db868e22c0ac612ea805"},{"sha":"d06279c239604e8002ef00f42b6ad7594ced59e9","author":{"email":"e40ee141dc286dcfef6341a73cee6f306775120c@lbl.gov","name":"Michael Jennings"},"message":"Merge branch 'service-restart-sync' into dev\n\n* service-restart-sync:\n  At the request/suggestion of Matt McLean <mattmc@umich.edu>, I added 2 new flags to check_ps_service() that allow the user to request that the actions to be taken, whether that's start/restart/cycle/-e or stop/kill/-E, be verified by NHC, and that the check should only fail if the action isn't successful.","distinct":false,"url":"https://api.github.com/repos/mej/nhc/commits/d06279c239604e8002ef00f42b6ad7594ced59e9"}]}