Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9

Thread: CCam monitoring script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Standard RSP member
    Join Date
    13 Feb 2007
    Location
    Earth
    Posts
    1,977
    Mentioned
    0 Post(s)
    Rep Power
    84

    Post CCam monitoring script

    CCam monitoring script


    '' .....
    a monitoring script for cccam 2.1.1.
    dreambox 800
    usr/script, put it there chmod 755
    then go to services/daemons CRON set it to every minute, redirect to ccheck.sh

    thats it

    you can test while switching to common interface, after a minute ccam restarts on its own



    PS

    i cant upload here so here is the config you have to make for linux based systems


    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam >/dev/null
    then
    echo "cccam... ok"
    else
    echo "cccam... restarting"
    /var/bin/CCcam_2.1.1 &
    fi

    name this file:

    ccheck.sh



    for 2.0.11

    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam >/dev/null
    then
    echo "cccam... ok"
    else
    echo "cccam... restarting"
    /usr/bin/CCcam_2.0.11 &
    fi

    filename : ccheck.sh

    Im using latest gemini 4.3
    Services/Daemons you will find in the Mainscreen of the Blue Panel

    and this works perfect, tested it now for 2 hours, and i cant stop the cccam from running

    if you use an E1 box, you will have to make the file into var/script ''
    Don't dream your life - live your DREAMbox ! DON'T FORGET TO SAY '' THANKS '' Note: Viewing Pay TV without a valid subscription is illegal All the files available here are kept for experimental and educational purpose only!

  2. #2
    Banned
    Join Date
    12 Aug 2008
    Location
    In fata calculatorului
    Posts
    250
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default dar pentru dream 500S am imagine nemesis 4.4 si cccam 2.2.1

    Default unde pun scriptul si daca e bine facut?
    #!/bin/bash
    CCCAM_CONFIG_FILE_PATH="/etc"
    CCCAM_EXECUTABLE_PATH="/bin"
    NAME_OFF_CCCAM_EXECUTABLE="CCcam_2.2.1"
    #
    function Check_CCcam {
    ps -eo comm,pid,etime > tmpcat
    PID=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $2}')
    TIME=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $3}')
    }
    #
    Check_CCcam
    if [ "$PID" = "" ]; then
    cd $CCCAM_EXECUTABLE_PATH
    ./$NAME_OFF_CCCAM_EXECUTABLE -C $CCCAM_CONFIG_FILE_PATH/CCcam.cfg
    fi
    exit 0



    am pus scriptul asta
    am imagine nemesis 4.4 si cccam 2.2.1
    am facut fisirul numit
    checkcccam.sh

    si i-am dat atrinut 755
    insa
    nu stiu exact unde sa o pun pentru ca punand-o in var/bin nu merge desi am pornit cron

    Poate detaliati un pic e neplacut sa vin acasa de la serviciu si uenori dreamboxul sa nu mearga, unii au acest script si le reporneste cccamul

    MULTUMESC si scuze daca s-a mai discutat, sunt sigur ca multi sunte interesati

  3. #3
    dMd
    Guest

    Default

    Code:
    1. Buton Albastru (telecomanda) ---> Tasta 3 (sau Start-Stop programs) ---> se bifeaza Enable Crond.
    
     2. Se deschide un editor de text, scrii urmatorul script:
    #!/bin/sh
    
    (ps -ef | grep CCcam | grep -v grep) && touch /tmp/OK || (/var/bin/CCcam && date >> /tmp/Restart_cam)
    
    exit0
    
    sau
    
    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam >/dev/null
    then
    echo "CCcam... ok"
    else
    echo "cccam... restarting"
    /var/bin/CCcam &
    fi
    
    Salvezi scriptul cu denumirea EmuVer.sh
    Acest script il pui in var/script cu atribut 755
    
    3. Deschizi iar editorul text si scrii :
    
    * * * * * /var/script/EmuVer.sh start /dev/null
    
    salvezi cu denumirea  root
    Acest fisier il transferi in var/spool/cron/crontabs __ si ii setezi atribut 443
    (daca in var nu ai folderul spool, il creezi) 
    
    Sau transferi fisierele din arhiva de mai jos, ai si imaginile aferente pt ghidare.
    http://www.sharefile.org/showfile-4441/n_44.zip

  4. #4
    Banned
    Join Date
    12 Aug 2008
    Location
    In fata calculatorului
    Posts
    250
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default

    am facut asa cum ai spus, foarte bine prezentat, si documentat, mura in gura
    acuma cum imi dau seama ca functioneaza?
    Stiu ca te agasez dar no, asta no reuseam asta cu cron!

    MULTUMIRI MII!

  5. #5
    dMd
    Guest

    Default

    Simplu comuti din BP pe common interface, in max. 1 min trebuie sa porneasca (acum depinde si de numarul liniilor)


    P.S. sau din telent ----- killall CCcam urmat de enter
    Last edited by dMd; 27-06-11 at 22:15. Reason: completare

  6. #6
    Banned
    Join Date
    12 Aug 2008
    Location
    In fata calculatorului
    Posts
    250
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default

    no process kiled

    oare ce ni fac bin

    p.s. nu am comom interface, am cccam 2.2.1 si scam 3,47

  7. #7
    Banned
    Join Date
    11 Jun 2011
    Posts
    24
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default telnet

    pui scripul si sa il bagi in crond cred ca merge si cu crontab -e

  8. #8
    dMd
    Guest

    Default

    Atentie la denumirea CCcam din var/bin. Daca acolo ai CCcam2.13 asa pui si in scriptul ce verifica starea EMU.

  9. #9
    Banned
    Join Date
    12 Aug 2008
    Location
    In fata calculatorului
    Posts
    250
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default

    #!/bin/sh

    (ps -ef | grep CCcam | grep -v grep) && touch /tmp/OK || (/var/bin/CCcam_2.2.1 >> /tmp/Restart_cam)

    exit0


    asa?????????????????



    CCcam_2.2.1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •