You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Norman Maurer (JIRA)" <ji...@apache.org> on 2008/05/07 08:53:55 UTC

[jira] Created: (INFRA-1603) Check if svn servers are in sync

Check if svn servers are in sync
--------------------------------

                 Key: INFRA-1603
                 URL: https://issues.apache.org/jira/browse/INFRA-1603
             Project: Infrastructure
          Issue Type: Wish
      Security Level: public (Regular issues)
          Components: Nagios
            Reporter: Norman Maurer
            Priority: Minor


It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (INFRA-1603) Check if svn servers are in sync

Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer updated INFRA-1603:
---------------------------------

    Attachment: check_svn_replication.sh

This is a little shell script I wrote to check the status of svn sync. 

Usage:
./check_svn_replication.sh http://svn.apache.org/repos/asf http://svn.eu.apache.org/repos/asf

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Priority: Minor
>         Attachments: check_svn_replication.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (INFRA-1603) Check if svn servers are in sync

Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer updated INFRA-1603:
---------------------------------

    Attachment: check_svn_replication_v2.sh

Good point... Here we go...

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh, check_svn_replication_v2.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (INFRA-1603) Check if svn servers are in sync

Posted by "Tony Stevenson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Stevenson reassigned INFRA-1603:
-------------------------------------

    Assignee: Tony Stevenson

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Assignee: Tony Stevenson
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh, check_svn_replication_v2.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (INFRA-1603) Check if svn servers are in sync

Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer updated INFRA-1603:
---------------------------------

    Attachment: check_svn_replication.sh

Ups attached the wrong one without "OK", "CRITICAL" in the echo line.... Please use this one.

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (INFRA-1603) Check if svn servers are in sync

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594851#action_12594851 ] 

Sebb commented on INFRA-1603:
-----------------------------

It looks as if the script terminates on the first mismatch.
If there are several slaves, it might be useful to know for each one if it is out of date.

Also perhaps add the revision numbers to the echo lines?
Might be useful to know how many revisions are missing.



> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (INFRA-1603) Check if svn servers are in sync

Posted by "Tony Stevenson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Stevenson closed INFRA-1603.
---------------------------------


> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Assignee: Tony Stevenson
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh, check_svn_replication_v2.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (INFRA-1603) Check if svn servers are in sync

Posted by "Tony Stevenson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Stevenson resolved INFRA-1603.
-----------------------------------

    Resolution: Fixed

Script added and now running.  Looks good Norman.

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Assignee: Tony Stevenson
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh, check_svn_replication_v2.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (INFRA-1603) Check if svn servers are in sync

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595070#action_12595070 ] 

Sebb commented on INFRA-1603:
-----------------------------

It looks like the SVN servers are likely to be out of synch more often than they are in synch.

Unless there is a quiet period with few updates, surely the slave servers are bound to trail behind the main server?

Would it perhaps be worth checking the difference in revisions, and grading the severity of the warning accordingly?

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Assignee: Tony Stevenson
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh, check_svn_replication_v2.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (INFRA-1603) Check if svn servers are in sync

Posted by "Tony Stevenson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595045#action_12595045 ] 

Tony Stevenson commented on INFRA-1603:
---------------------------------------

Added v2 of the script here to SVN, with amendments for the nagios server.

https://svn.apache.org/repos/asf/infrastructure/trunk/nagios/scripts/check_svn_replication.sh

> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Assignee: Tony Stevenson
>            Priority: Minor
>         Attachments: check_svn_replication.sh, check_svn_replication.sh, check_svn_replication_v2.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (INFRA-1603) Check if svn servers are in sync

Posted by "Tony Stevenson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594798#action_12594798 ] 

Tony Stevenson commented on INFRA-1603:
---------------------------------------

Norman,

I'll try to get around to adding this for you tonight.


Tony


> Check if svn servers are in sync
> --------------------------------
>
>                 Key: INFRA-1603
>                 URL: https://issues.apache.org/jira/browse/INFRA-1603
>             Project: Infrastructure
>          Issue Type: Wish
>      Security Level: public(Regular issues) 
>          Components: Nagios
>            Reporter: Norman Maurer
>            Priority: Minor
>         Attachments: check_svn_replication.sh
>
>
> It would be cool to notify via nagios if the svn mirror is not in sync

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.