Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

CCcam Munin plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skytec
    Experienced Board Member
    • Mar 2010
    • 1207

    CCcam Munin plugin

    CCcam Munin plugin

    cccam_cards:
    This gives a view of how many cards you get in different hops

    cccam_ecm:
    This gives a view of how many ECM goes trough your box, and how many your local card have handled. (Does not work correct if you have more than one local card!)

    cccam_server_clients:
    Lists number of connected server and clients. (it should count number instead of using the value form the server page, this also lists users that has gone offline)

    cccam_usercards:
    Shows how many cards you get from different users. You can add many users

    cccam_version_server:
    Lists how many servers you have of different version. You can easy see if some of your peers upgrade to new version
    Attached Files
    Is my post useful for you? Please press sigpic
  • foriyu
    Banned
    • Oct 2010
    • 2335

    #2
    Re: CCcam Munin plugin

    version v0.51 by g0llum

    How is it with a Script to catch CCcam.channelinfo unknown CAID:IDENT:SID's ?

    And maybe some script which monitors which 'provider' is used mostly...
    i mean where you configure something like array( "Sky Germany" "Kabel Deutschland" "HD+" "UnityMedia") and the Script checks how many Users watched it... or maybe CAID based
    Attached Files

    Comment

    • uttnls

      #3
      Re: CCcam Munin plugin

      for munin scripts you have to disable the password and user, so an advice is to block from WAN your telnet port access and never ever put your localserver in DMZ

      Comment

      • uttnls

        #4
        Re: CCcam Munin plugin

        If you wan't to be secure you can use this scripts that are capable to use pass and user via webinfo :

        Code:
        #!/bin/sh
        # cccam_cards_available
        
        user=""
        pass=""
        port=""
        server="localhost"
        
        ### Config End
        
        url="http://$user:$pass@$server:$port"
        
        case $1 in
        config)
        cat <<'EOM'
        graph_title CCcam available cards
        graph_vlabel cards
        graph_category CCcam
        hop1.label Cards in hop1
        hop2.label Cards in hop2
        hop3.label Cards in hop3
        hop4.label Cards in hop4
        hop5.label Cards in hop5
        
        EOM
        exit 0;;
        esac
        info=`wget -q -O - "$url/shares" | cut -d'|' -f7 | cut -c1-3`
        echo -n "hop1.value "
        echo "$info" | grep "1" | wc -l
        echo -n "hop2.value "
        echo "$info" | grep "2" | wc -l
        echo -n "hop3.value "
        echo "$info" | grep "3" | wc -l
        echo -n "hop4.value "
        echo "$info" | grep "4" | wc -l
        echo -n "hop5.value "
        echo "$info" | grep "5" | wc -l
        Code:
        #!/bin/sh
        # cccam_servers_clients
        
        user=""
        pass=""
        port=""
        server="localhost"
        
        ### Config End
        
        url="http://$user:$pass@$server:$port"
        
        
        case $1 in
        config)
        cat <<'EOM'
        graph_title CCcam Server and Clients
        graph_vlabel cards
        graph_category CCcam
        online.label Online CCcam Servers
        online.draw AREA
        clients.label Connected clients
        servers.label Configured Server connections
        aclient.label Active clients getting ECM
        EOM
        exit 0;;
        esac
        
        info1=`wget -q -O - "$url"`
        info2=`wget -q -O - "$url/servers"`
        echo -n "clients.value "
        echo "$info1" | grep Connected  | awk '{print $3}'
        echo -n "aclient.value "
        echo "$info1" | grep "Active clients" | awk '{print $3}'
        echo -n "servers.value "
        echo "$info2" | grep "Server connections" | awk '{print $NF}'
        echo -n "online.value "
        echo "$info2" | cut -d'|' -f3 | grep "[0-9]d" | wc -l
        Using a few scripting knolege you can make your own monitoring scripts

        Comment

        Working...