+ Post New Thread
Results 1 to 2 of 2
Home Access Plus+ Thread, Uptime Tiles show server down in Projects:; I've been playing with the uptime tiles feature and following the instructions in the userguide have added one for our ...
  1. #1
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54

    Unhappy Uptime Tiles show server down

    I've been playing with the uptime tiles feature and following the instructions in the userguide have added one for our main server. It shows that the server is down but the server is definately working as the VM for HAP+ runs on this server. It even says the localhost server is down whether I use IP or netbios or FQDN.

    Any ideas how I get these working. HAP+ VM is running server 2008R2 and is a member server in the domain. All other features work fine just the live uptime tiles.

    Thanks

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,539
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    This is the code the uptime api uses:
    Code:
                TimeSpan t = new TimeSpan(0);
                hapConfig config = hapConfig.Current;
                User user = new User();
                user.Authenticate(config.AD.User, config.AD.Password);
                try
                {
                    user.ImpersonateContained();
                    PerformanceCounter pc = new PerformanceCounter("System", "System Up Time", "", server);
                    pc.NextValue();
                    t = TimeSpan.FromSeconds(pc.NextValue());
                }
                catch
                {
                }
                finally
                {
                    user.EndContainedImpersonate();
                }
                return t;
    So as you can see it uses the AD Admin account to get a performance counter on the remote PC. If the AD user that HAP uses doesn't have permission it will fail, or if performance counters are disabled on the remote pc

SHARE:
+ Post New Thread

Similar Threads

  1. [Fog] Server down
    By stevehp in forum O/S Deployment
    Replies: 2
    Last Post: 26th January 2011, 11:47 PM
  2. Server down notification
    By itgeek in forum Windows Server 2008 R2
    Replies: 24
    Last Post: 23rd January 2011, 09:49 PM
  3. SQL servers down
    By SimpleSi in forum CLEO
    Replies: 11
    Last Post: 12th January 2010, 09:17 AM
  4. Server down! 10.5.7 server update
    By HodgeHi in forum Mac
    Replies: 2
    Last Post: 1st June 2009, 12:54 PM
  5. FIXED: Server down temporarily
    By contink in forum EduGeek Joomla 1.0 Package
    Replies: 0
    Last Post: 9th March 2008, 04:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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