Closed Bug 629694 Opened 14 years ago Closed 14 years ago

modify runslave.py to call back to nagios

Categories

(Release Engineering :: General, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

References

Details

(Whiteboard: [automation][nagios])

Attachments

(1 file, 1 obsolete file)

Per bug 627126, runslave.py is the single common point for all (desktop) slaves, and we want it to report its status to nagios, as a passive check. This should go into runslave.py *before* the rollout to the various win* systems, since that's a manual process.
Depends on: 629698
Blocks: 629701
Priority: -- → P4
Whiteboard: [automation][nagios]
I'm putting this in staging now. Let's see if it hangs any of the slaves' startup - it shouldn't! I considered complicating this so that it times out the connect, read, and write operations -- but that's hard to do portably on Windows. If nagios is *down*, this will fail silently and move on. If nagios is hanging, this will hang, too - but then we've got bigger problems.
Assignee: nobody → dustin
Attachment #529218 - Flags: review?(bear)
Attachment #529218 - Flags: feedback?(arich)
linux-ix-slave05 has rebooted a bunch of times with this patch applied, with no ill effects. I'll leave it in staging over the weekend, but this looks promising, so plz 2 review.
Comment on attachment 529218 [details] [diff] [review] m629694-puppet-manifests-r1.patch One thing that I am wondering is the buf+= sk.recv() loop in do_send_notice() routine is how you would prevent an endless loop if the remote end of the socket is closed but your local socket remains open. You would receive 0 bytes until something else happened. Other than that (and given how much of a low-level single-purpose tool) r+
updated version on bear's advice. Checked in and will be deployed shortly along with the patch for bug 648665.
Attachment #529218 - Attachment is obsolete: true
Attachment #529500 - Flags: checked-in+
Attachment #529218 - Flags: review?(bear)
Attachment #529218 - Flags: feedback?(arich)
deployed.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: