Closed
Bug 411360
Opened 18 years ago
Closed 17 years ago
Add nagios script to monitor Socorro collector
Categories
(mozilla.org Graveyard :: Server Operations, task)
mozilla.org Graveyard
Server Operations
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: samuel.sidler+old, Assigned: aravind)
References
()
Details
Attachments
(2 files)
|
292 bytes,
patch
|
Details | Diff | Splinter Review | |
|
67.28 KB,
application/octet-stream
|
Details |
Reported by bsmedberg, Jul 10, 2007
Provide a method for nagios to monitor the status of the collector. We
should attempt to write to the filestore during it, instead of merely
returning an "I'm alive" result.
Sayrer, can you take this?
Comment 1•18 years ago
|
||
dupe of bug 411360 ?
Comment 2•18 years ago
|
||
Comment 3•18 years ago
|
||
Not a dupe, they are separate tiers. Aravind -- do you have a monitor already in place for this? If not, how do you want to go about checking the collector?
Assignee: nobody → aravind
Comment 4•18 years ago
|
||
You used to be able to GET https://crash-reports.mozilla.com/submit and get back a "405 method not allowed", but I guess we changed that? Looks like you can still HEAD it and get that, so maybe that's sufficient?
| Reporter | ||
Comment 5•18 years ago
|
||
Aravind, any update here?
Updated•18 years ago
|
Target Milestone: --- → 0.5
Comment 6•18 years ago
|
||
Aravind, is there any nagios check for the collector?
Updated•17 years ago
|
Target Milestone: 0.5 → ---
Updated•17 years ago
|
Target Milestone: --- → 0.6
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 7•17 years ago
|
||
This isn't fixed, monitoring isn't there yet.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 8•17 years ago
|
||
Aravind - can you post an update here and give an ETA for when a check could be put in place?
Comment 9•17 years ago
|
||
Aravind - can you post an update here and give an ETA for when a check could be
put in place?
| Assignee | ||
Comment 10•17 years ago
|
||
I will try and get something going this week.
Comment 11•17 years ago
|
||
All we need is a HEAD request on /submit to verify the 405 exists.
Comment 12•17 years ago
|
||
-> server-ops so this can get done
Assignee: aravind → server-ops
Component: Socorro → Server Operations
Product: Webtools → mozilla.org
QA Contact: socorro → mrz
Summary: Allow for nagios status monitoring of the collector → Add nagios script to monitor Socorro collector
Target Milestone: 0.6 → ---
Version: Trunk → other
Updated•17 years ago
|
Assignee: server-ops → aravind
Comment 13•17 years ago
|
||
This needs some support from webdev:
1) collector configuration to ignore the "nagios" product
2) sample dump file with post parameters to mimic a submission
3) curl command to submit said post to verify that a valid UUID is sent back
Lars - could you provide instructions on 1) and I can provide the rest. Thanks.
Comment 14•17 years ago
|
||
Comment 15•17 years ago
|
||
Updated•17 years ago
|
Attachment #349050 -
Attachment is patch: true
Attachment #349050 -
Attachment mime type: application/octet-stream → text/plain
Comment 16•17 years ago
|
||
So, to run this:
1) unpack the test dump somewhere
2) cron to run the .sh in same cwd as the test dump
At some point we can configure the collector to ignore submissions with Product=Nagios.
Expected output is easy to parse:
macnugget:td morgamic$ ./test.sh
CrashID=bp-0b0ec860-85d7-438c-9a54-f8d720081119
Comment 17•17 years ago
|
||
to get collector to avoid queuing any submissions with "Nagios" as the product, add the line below to the list of throttle conditions in collectorconfig.py.
This will cause the collector to place 100% of entries where Product == "Nagios" into deferred storage. It will still, however, return a uuid for the submission.
("Product", "Nagios", 0), # queue nothing where Product == "Nagios"
#BEFORE:
throttleConditions.default = [
# other conditions ...
(None, True, 10) # queue 10% of what's left
]
#AFTER:
throttleConditions.default = [
("Product", "Nagios", 0),
# other conditions ...
(None, True, 10) # queue 10% of what's left
]
Comment 18•17 years ago
|
||
s/Nagios/nagios/
Comment 19•17 years ago
|
||
Lars, is this a code change we can make in the default settings? If so it might be easier to deploy.
Comment 20•17 years ago
|
||
Morgamic: are you suggesting that I put it into the collectorconfig.py.dist file?
Comment 21•17 years ago
|
||
Eh, maybe not a good idea. I guess IT can figure out how to add the new rule. I was just remember we added the non-release version condition last week as well, but that's just another list member so it shouldn't be hard.
| Assignee | ||
Comment 22•17 years ago
|
||
Done, now have the test script submitting a crash report and nagios verifying that we get a uuid back.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Comment 23•17 years ago
|
||
Sweet! Thanks Aravind -- have a good weekend.
Updated•11 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•