Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member stugster's Avatar
    Join Date
    Apr 2002
    Location
    Edinburgh, UK
    Posts
    78
    cPanel/Enkompass Access Level

    Root Administrator

    Default using servup from another server

    In an attempt to provide users with detailed analysis of our server status, I am looking to be able to use the servup function remotely.

    Is it possible for me to have a page hosted on another server that can display to the visitor the status of each service?

  2. #2
    Registered User Born2Kill's Avatar
    Join Date
    Jan 2004
    Location
    localhost or dev/null
    Posts
    119

    Default

    <?php
    //<dv at josheli.com>
    //
    //Code for server status page outside of WHM.
    //Copy green-status.gif, yellow-status.gif and red-status.gif from WHM to this script's directory.
    //Change the user, pass and url. That's it.
    //


    $user = 'username';
    $pass = 'password';
    $url = 'www.mydomain.com';//do not include 'http://'

    $page = @file_get_contents("http://$user:$pass@$url:2086/scripts/servup",'r');

    $int = preg_match("/<table border=2>.*<\/table>/is",$page, $match);
    echo "<html><head></head><body><center>";
    if($int) {
    echo str_replace('src=/','src=',$match[0]);
    }
    else {
    echo 'Unable to access server status. Please try again later.';
    }
    echo "</center></body></html>";
    ?>


    use this

  3. #3
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Yikes. I think it would be better to use a third party script that does not require the root password.

  4. #4
    Member stugster's Avatar
    Join Date
    Apr 2002
    Location
    Edinburgh, UK
    Posts
    78
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    lol, yeah.

    Can servup be run by users without root access?

    Do you know of any software that would do this?

  5. #5
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    I would definitely suggest using a 3rd party script. Google for what you want.

    Stay away from using anything WHM/Cpanel related as ID & PW will be required -- a definite no-no.
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

Similar Threads & Tags
Similar threads

  1. CGI ServUP
    By brentp in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-29-2006, 03:27 PM
  2. Reg: scripts/servup
    By eh-jay in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-02-2005, 01:30 PM
  3. scripts/servup does not work
    By Izkabola in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-21-2005, 11:36 AM
  4. wwwact - servup - serverstats hang in WHM
    By antoniom in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-19-2005, 10:43 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube