You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@issues.apache.org on 2010/11/06 20:54:30 UTC

[Bug 6512] New: nagios monitoring of sa-update mirrors

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6512

           Summary: nagios monitoring of sa-update mirrors
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: sa-update
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: spamassassin@dostech.ca


We should have monitoring of the mirrors in place to at a minimum alert us to
out of sync issues.  Bonus points for automatically screwing with the
MIRRORED.BY file to drop stale mirrors.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6512] nagios monitoring of sa-update mirrors

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6512

Kevin A. McGrail <km...@pccc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Kevin A. McGrail <km...@pccc.com> 2011-07-13 00:47:26 UTC ---
Script is in place on sa-update.pccc.com server monitoring and reporting
hourly.  May need to tweak envelope information to get correct delivery to the
private mailing list but otherwise, it appears good!  Closing as resolved.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6512] nagios monitoring of sa-update mirrors

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6512

--- Comment #2 from Kevin A. McGrail <km...@pccc.com> 2011-07-11 20:01:34 UTC ---
Created attachment 4932
  --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=4932
Script to Check SA Update mirrors.

Pingdom only will monitor one machine and Sidney Markowitz wrote a simple but
usable script for monitoring.

Currently running on the sa-update.pccc.com server to check all the mirrors
hourly.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6512] nagios monitoring of sa-update mirrors

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6512

--- Comment #3 from Sidney Markowitz <si...@sidney.com> 2011-07-12 00:55:20 UTC ---
Created attachment 4933
  --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=4933
Suggested alternative for the final loop

Here is an improvement for the final loop that sanitizes the input from the
MIRRORED.BY file to prevent bash script injection, drops the extra stuff after
the URL, skips comment lines, and is insensitive to leading whitespace, all
with fewer lines of code by adding a single sed filter.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6512] nagios monitoring of sa-update mirrors

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6512

Kevin A. McGrail <km...@pccc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #4932|0                           |1
        is obsolete|                            |
   Attachment #4933|0                           |1
        is obsolete|                            |

--- Comment #4 from Kevin A. McGrail <km...@pccc.com> 2011-07-13 00:46:24 UTC ---
Created attachment 4934
  --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=4934
Tweaked Script to Check SA Update mirrors

Alternative loop looks fine.  Thanks for writing this.  I've got it running
hourly now and delivering statuses to private.  Should have test messages any
minute.

One note is that $HOME in cron doesn't appear populated on my system.  I also
hard coded all of the binaries and used mutt to send emails rather than relay
on cron output which due to the subject isn't much of a call to action.

Tweaked version attached for posterity and I'll be closing this ticket
resolved!

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6512] nagios monitoring of sa-update mirrors

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6512

Kevin A. McGrail <km...@pccc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kmcgrail@pccc.com

--- Comment #1 from Kevin A. McGrail <km...@pccc.com> 2011-07-06 21:34:26 UTC ---
I opened a ticket for this purpose
https://issues.apache.org/jira/browse/INFRA-3751

They do not monitor external sites but they basically said it was cool to use
pingdom so I plan to sign up for a free account and see how that goes.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.