Join Today























Results 1 to 6 of 6

Thread: Oscam Status Check Script

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

  1. #1
    cstalking's Avatar
    Join Date
    Mar 2013
    Posts
    181

    Oscam Status Check Script


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

    I highlighted lines that are important and need to be customized.


    Code:
    #!/bin/sh
    #
    FOO=”/tmp/_tmp”
    LOGIN=”root”
    PW=”xx”
    IP=”192.168.1.xx”
    PORT=”16002″
    STR=”TITLE>”
    #
    curl -s –digest -o – -u $LOGIN:$PW “http://$IP:$PORT/status.html?hideidle=0″ | grep “$STR” > $FOO
    printf “Checking for ERRORS …\n”;
    if [ -s $FOO ]; then
    printf “\033[37;32mOscam working OK\033[37;40m\n”;
    else
    printf “\033[37;31mOscam ERROR!\033[37;40m\n”;
        /usr/local/bin/oscam -b > /dev/null
    fi
    rm -f $FOO
    exit 0

  2. #2
    skywalker89's Avatar
    Join Date
    Dec 2015
    Posts
    175
    thank you very much

  3. #3
    flatdish2's Avatar
    Join Date
    Jan 2016
    Posts
    14
    Thanks bro

  4. #4
    anonimus87's Avatar
    Join Date
    Mar 2017
    Posts
    1
    Hi guys, tell me please, I'm new to this business, where do I need to register this script in the emulator or do I need to install Linux? Thank you in advance!

  5. #5
    Waits's Avatar
    Join Date
    Apr 2017
    Location
    Discworld
    Posts
    308
    thanks for the Info
    if (ahnung == 0) {read FAQ; use SEARCH; use GOOGLE; } else { use brain; make post; } If I had a brain, I would be dangerous! :evil:
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    1. DM 7020HDs 2. DM 920UHDs 3. Pingulux Plus Neutrino

  6. #6
    ddinc's Avatar
    Join Date
    Nov 2018
    Posts
    1

    what shold we write into : STR=”TITLE>”



    Quote Originally Posted by cstalking View Post
    This check script detects when oscam web-interface is not responding anymore and when its not, oscam is started again.

    I highlighted lines that are important and need to be customized.


    Code:
    #!/bin/sh
    #
    FOO=”/tmp/_tmp”
    LOGIN=”root”
    PW=”xx”
    IP=”192.168.1.xx”
    PORT=”16002″
    STR=”TITLE>”
    #
    curl -s –digest -o – -u $LOGIN:$PW “http://$IP:$PORT/status.html?hideidle=0″ | grep “$STR” > $FOO
    printf “Checking for ERRORS …\n”;
    if [ -s $FOO ]; then
    printf “\033[37;32mOscam working OK\033[37;40m\n”;
    else
    printf “\033[37;31mOscam ERROR!\033[37;40m\n”;
        /usr/local/bin/oscam -b > /dev/null
    fi
    rm -f $FOO
    exit 0


 

Similar Threads

  1. Script to check multics cpu usage
    By cstalking in forum Multics
    Replies: 1
    Last Post: 01-04-2017, 06:49 PM
  2. Oscam script for several oscams
    By cstalking in forum CardSharing Scripts & Tools
    Replies: 3
    Last Post: 01-12-2016, 01:02 PM
  3. Oscam Script ( Start - Stop - Restart )
    By cstalking in forum CardSharing Scripts & Tools
    Replies: 3
    Last Post: 01-04-2016, 11:50 AM
  4. Oscam Scripts To Check Client Timeout & Auto Restart
    By cstalking in forum CardSharing Scripts & Tools
    Replies: 1
    Last Post: 01-04-2016, 11:49 AM
  5. cccam check script if it stop responding
    By martin0506 in forum CardSharing Scripts & Tools
    Replies: 2
    Last Post: 01-04-2016, 11:48 AM

Visitors found this page by searching for:

oscam check script

oscam status check script

check oscamoscam script check printf 033[37;32mOscam working OK033[37;40mn;oscam scriptsoscam response timeoscamstatusoscam how to log scripts checkoscam check script web interfacen printf “033[37;32moscamoscam webinterface scriptcheck oscam workingoscam script check timeoutstart oscam web interfaceoscam web checkscript check oscam timeoutfoo=”tmp_tmp”oscam web ui not respondingscript detects when oscam web-interface is not respondingoscam chechow to oscam check scriptoscam statusoscam web interface portoscam check

Tags for this Thread