This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail -fn0 /opt/omero/server/OMERO.server/var/log/PixelData-0.log | \ | |
| while read line ; do | |
| echo "$line" | grep "ome.conditions.InternalException: Wrapped Exception: (java.lang.OutOfMemoryError)" | |
| if [ $? = 0 ] | |
| then | |
| sudo -u omero-server /opt/omero/server/OMERO.server/bin/omero admin ice "server stop PixelData-0" && echo $(date) restarted PixelData process | tee ~/command_log.txt | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| from commands import getstatusoutput | |
| import datetime | |
| import socket | |
| # [email protected] | |
| # This code is a Check_MK local check, designed to query an OMERO server via `omero sessions who` | |
| # and return the number of logged in OMERO users to Check_MK. | |
| # Check_MK reference: https://mathias-kettner.de/checkmk_localchecks.html | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # A simple shim using WRK to make fast Trello searching work from the CLI. | |
| import subprocess | |
| import sys | |
| import re | |
| import argparse | |
| debug= False |
OlderNewer