Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > System > Monitoring

    pony_monitor 0.1

    Download button

    No screenshots available
    Downloads: 177  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Javi Santana | More programs
    Other/Proprietary Li... / FREE
    December 29th, 2010, 17:46 GMT
    ROOT / System / Monitoring

     Read user reviews (0)  Refer to a friend  Subscribe

    pony_monitor description

    Monitor a URL for a response code

    pony-monitor is a Python tool to monitor a HTTP server. It fetches the specified urls, checks that a valid code is returned and warns to specified email when it fails.
    Quick start

    installing:

    Download code:

    python setup.py install

    You have to install importlib:

     sudo pip install importlib

    Configuration:

    pony-monitor uses the same configuration philosophy as django, it uses a settings.py file, so you have to create a settings.py file on a folder:

    #settings.py

    URLS_TO_CHECK = (
     #(URL, expected_code),
     ('http://localhost:8000/', 200),
     ('http://localhost:8000/path', 404),
    )


    # timeout in sec
    TIMEOUT = 20

    # secs
    CHECK_INTERVAL = 20

    # backend.console.ConsoleAlert is alse available
    # you can create you own backends, look inside pony_monitor.backend package
    ALERT_BACKENDS = ('backend.mail.MailAlert',)


    # email backend conf
    EMAIL_HOST = 'smtp.gmail.com'
    EMAIL_PORT = 587
    EMAIL_HOST_USER = 'YOURBOTMAIL@wtelecom.es'
    DEFAULT_FROM_EMAIL=EMAIL_HOST_USER
    EMAIL_HOST_PASSWORD = 'pass'
    EMAIL_USE_TLS = True

    # emails to be warned
    RECIPIENTS = ['YOU@mail.com', 'johnrambot@mail.com']


    Usage:

     vim settings.py
     ponymonitor.py


    Production usage:

    In production environment a tool like supervisord is recommended although you can use nohup:

     nohup ponymonitor.py &


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    HTTP server | server monitoring | URL monitor | HTTP | server | monitoring

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM