Oscam Status Check Script

There are 12 replies in this Thread which was already clicked 12,410 times. The last Post () by Mersad_Maral.

    • Official Post

    This check script detects when oscam web-interface is not responding anymore and when its not, oscam is started again.


    Guide how to implement this is in post #4



  • As of ubuntu 10.04 don't use the name oscam in the script or the logfile.
    Name it ServerOK.sh or Ubuntu will always find an instance of "oscam"!

    • Official Post

    Any chance you can post an idiots guide to implementing this please?


    Open oscam.conf and locate your webif details, below is an example of the login details;


    Code
    [webif]
    httpport = 8888
    httpuser = admin
    httppwd = admin


    Download the oscam check script that is attached in post #1, extract with winrar then open the Oscam_Status_Check_Script with notepad++..


    Add your webif login and port details, ip address and the location of the oscam binary on the server/receiver



    Save the script then FTP to /usr/script/, change permissions/attributes to 755..


    Then in telnet use this command to start the script;


    Code
    /usr/script/Oscam_Status_Check_Script.sh
  • Hi Master G,
    Just tried this and I have no /usr/script folder? did a full search and dont have it on my server? Running ubuntu 12.04.2 LTS server tried to creat it did that OK chmod 755 and put checkserverok.sh (renamed Oscam_Status_Check_Script.sh) in there chmod 755 and run /usr/script/checkserverok.sh and got this message... No such file or folder??


    Oh I did reboot server as well


    Any ideas?


  • Hi LFC tried and this is what I get...
    Last login: Fri Mar 15 11:47:12 2013 from 192.168.0.21
    root@ubuntu:~# cd ..
    root@ubuntu:/# cd usr
    root@ubuntu:/usr# cd script
    root@ubuntu:/usr/script# ./checkserverok.sh
    -bash: ./checkserverok.sh: No such file or directory
    root@ubuntu:/usr/script#

  • for vu+duo BH img 2.1.4 work this script
    #!/bin/sh


    if ps x |grep -v grep |grep -c oscam >/dev/null
    then
    echo "Error found, restart...";
    echo `date "+%d/%m/%y %R Oscam still Ok 2"` >> /var/log/oscam.check
    /usr/bin/killall -9 oscam
    /usr/bin/oscam &


    fi

  • ./Oscam_Status_Check_Script.sh: 10: ./Oscam_Status_Check_Script.sh: curl: not found

    ./Oscam_Status_Check_Script.sh: 10: ./Oscam_Status_Check_Script.sh: cannot create ”/tmp/_tmp”: Directory nonexistent

    “Checking“033[37./Oscam_Status_Check_Script.sh: 15: ./Oscam_Status_Check_Script.sh: 31mOscam: not found

    ./Oscam_Status_Check_Script.sh: 15: ./Oscam_Status_Check_Script.sh: 40mn”: not found

    ./Oscam_Status_Check_Script.sh: 16: ./Oscam_Status_Check_Script.sh: /usr/bin/oscam: not found

    /usr/bin/oscam >/usr/local/bin/oscam

  • Hi Sir...


    Below is my oscam.conf file....


    [global]

    logfile = /tmp/oscam.log

    #logfile = stdout

    nice = -1

    preferlocalcards = 1

    block_same_ip = 0

    block_same_name = 0


    [cache]


    [streamrelay]

    stream_relay_enabled = 0


    [dvbapi]

    enabled = 1

    au = 1

    pmt_mode = 0

    delayer = 60

    ecminfo_type = 1

    user = vuplus-team.com

    read_sdt = 1

    write_sdt_prov = 1

    extended_cw_api = 1

    boxtype = vuplus


    [webif]

    httpport = 8888

    httptpl = /etc/tuxbox/config/tpl/

    httprefresh = 30

    httpshowmeminfo = 1

    httpshowuserinfo = 1

    httpshowcacheexinfo = 1

    httpshowecminfo = 1

    httpshowloadinfo = 1

    httpallowed = 192.168.0.0-255.255.255.255,127.0.0.1

    http_status_log = 1



    Now. what I have to enter in required item in Oscam_Status_Check_Script????

    LOGIN=””

    PW=””

    IP=””

    PORT=”8888”

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!