Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands to verify monitoring agents are active #2150

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions modules/scripts/startup-script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,29 @@ sudo bash add-logging-agent-repo.sh --also-install
sudo service stackdriver-agent start
```

You can test if one of the agents is running using the following commands:
tpdownes marked this conversation as resolved.
Show resolved Hide resolved

```bash
# For Cloud Ops Agent
$ sudo systemctl is-active google-cloud-ops-agent"*"
active
active
active
active

# For Legacy Monitoring and Logging Agents
$ sudo service stackdriver-agent status
stackdriver-agent is running [ OK ]
$ sudo service google-fluentd status
google-fluentd is running [ OK ]
```

For official documentation see troubleshooting docs:

- [Cloud Ops Agent](https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-install-startup)
- [Legacy Monitoring Agent](https://cloud.google.com/stackdriver/docs/solutions/agents/monitoring/troubleshooting)
- [Legacy Logging Agent](https://cloud.google.com/stackdriver/docs/solutions/agents/logging/troubleshooting)

### Example

```yaml
Expand Down