Example 1: Signature for node restarts during a health check

Here is a sample HCP health check report signature that reports of a node restarting repeatedly during a health check. The output format is a JSON file.

Sample signature in JSON

{
    "name" : "Node Rolls during Health Check",
    "description" : "This can be caused due to the connectivity issue between HCP nodes and NTP server",
    "jiraId" : "NONE",
    "component" : "JVM",
    "steps" : [
        {
            "stepId" : "1",
            "commandType" : "shell",
            "command" : "find . -name \"*jvm*\" -print -exec grep \"RuntimeException\" {} \\;",
            "expectedOutputCommand" : "if wc -l) -gt 0 ; then echo true; fi"
        },
            {
            "stepId" : "2",
            "commandType" : "shell",
            "command" : "find . -name \"*jvm*\" -print -exec grep \"HealthConnectionErrorHandler\" {} \\;"
            "expectedOutputCommand" : "if wc -l) -gt 0 ; then echo true; fi"
        }
    ]
}

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.