SyferLock Help Center

Installing GridGuard Status Monitoring Script

A script used to monitor the status of the GridGuard server using 3rd party tools like SiteScope.

Installation Instructions

On each server in the cluster, install the script as per instructions below:

Using scp, copy attached script to /var/www/html on the GridGuard server
chmod 600 status.php
chown root:root status.php

Invoking Script

To invoke the script, access the URL given below:

https://{gridguard-server}:8443/status.php

Response Format

Response will be in JSON format. A sample response with details are given below:

{
  "hostname":"ggva1.syferlock.net",     // Name of the host
  "services":{                          // List of services
    "gridserver":{"status":"OK"},       // Status: OK, if service is up
    "httpd":{"status":"OK"},            //       : NOT OK, otherwise
    "postgresql-9.0":{"status":"OK"},
    "radiusd":{"status":"OK"},
    "slapd":{"status":"OK"},
    "slapd-proxy":{"status":"OK"},
    "snmpd":{"status":"OK"},
    "sshd":{"status":"OK"},
    "syslog":{"status":"OK"}
  },
  "clusterConfiguration":{              // Cluster Configuration
    "peers":{                           // Peer nodes in cluster
      "ggva2.syferlock.net":{           // First peer node hostname
        "nonceReplicationMode":"ON",    // ON, to replicate nonces 
                                        // OFF otherwise
        "nonceReplicationResult":"OK",  // OK if nonces are replicating; 
                                        // NOT OK otherwise
        "errorMsg":""                   // Nonce Replication errors
      },
      "ggva3.syferlock.net":{           // Second peer node hostname
        "nonceReplicationMode":"ON",
        "nonceReplicationResult":"OK",
        "errorMsg":""
      }
    },
    "localhost":{                    // Localhost server 
      "clustering":"ON",             // ON, if server is clustered
                                     // OFF otherwise
      "nonceCreationResult":"OK"     // OK, if nonce creation succeeded
                                     // NOT OK otherwise
      "errorMsg":""                  // Nonce creation errors
    }
  }
}
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk