Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
54ea56d4
Verified
Commit
54ea56d4
authored
2 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
document how to trace check calls (used in
team#40795
)
parent
80b07876
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/nagios.md
+35
-0
35 additions, 0 deletions
howto/nagios.md
with
35 additions
and
0 deletions
howto/nagios.md
+
35
−
0
View file @
54ea56d4
...
...
@@ -89,6 +89,41 @@ authorized_for_full_command_resolution=user1,foo,bar,<new user>
authorized_for_configuration_information=user1,foo,bar,<new user>
```
## Pager playbook
### What is this alert anyways?
Say you receive a mysterious alert and you have no idea what it's
about. Take, for example,
[
tpo/tpa/team#40795
](
https://gitlab.torproject.org/tpo/tpa/team/-/issues/40795
)
:
09:35:23 <nsa> tor-nagios: [gettor-01] application service - gettor status is CRITICAL: 2: b[AUTHENTICATIONFAILED] Invalid credentials (Failure)
To figure out what triggered this error, follow this procedure:
1.
log into the Nagios web interface at https://nagios.torproject.org
2.
find the broken service, for example by listing all
[
unhandled
problems
](
https://nagios.torproject.org/cgi-bin/icinga/status.cgi?allunhandledproblems
)
3.
click on the actual service name to see details
4.
find the "executed command" field and click on "Command Expander"
5.
this will show you the "Raw commandline" that nagios runs to do
this check, in this case it is a NRPE check that calls
`tor_application_service`
on the other end
6.
if it's an NRPE check, log on the remote host and run the command,
otherwise, the command is ran on the nagios host
In this case, the error can be reproduced with:
root@gettor-01:~# /usr/lib/nagios/plugins/dsa-check-statusfile /srv/gettor.torproject.org/check/status
2: b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'
In this case, it seems like the status file is under the control of
the service administrator, which should be contacted for followup.
# Reference
## Design
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment