Forums  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Member List  Search  FAQ  Ticket List  Log Out

 

Custom Memory Check Failing

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Networking & Security] >> GFI Network Server Monitor >> Custom Memory Check Failing Page: [1]
Login
Message << Older Topic   Newer Topic >>
Custom Memory Check Failing - 25.Aug.2008 1:20:49 PM   
Rajamataz

 

Posts: 45
Joined: 16.Dec.2004
From: Canada
Status: offline
I have a check that I run in GFI ver 20070803 that is failing on some servers.  I believe I originally got the script, for the check, from these forums a few years back.  The servers being monitored are W2K3 R2 SP2 Enterprise edition.  There are other W2K3 R2 SP2 Enterprise edition in the environment that are running fine.  I have tried to restart the WMI service on the failing servers but no luck.  I also run a Custom Multiple CPU check that is also failing on these servers but fine on others.  Are there any other things, on the failing servers, I could check to see what may be happening?
 
When I do a Monitor Now, I get the following results from the check:
 

Processing Error: Function Check_Available_Physical_Memory: Microsoft VBScript runtime error: Line 11 Char 0 - The remote server machine does not exist or is unavailable: 'GetObject'

NOTE: This is a dry run test to help set up the proper parameters for the monitoring check. No email/sms/network notifications are sent out when the "Monitor Now..." option is used.

When this monitoring check will fail the following groups will be notified:

Email Notifications

Rajeev Saini

SMS Notifications

<No groups/users configured to be notified>

Network Notifications

<No groups/users configured to be notified>

I can ping the failing servers and all the checks for services, hard disks, and other items work fine.  The RAM script itself is below:

'option explicit
'dim EXPLANATION
'msgbox Check_Available_Physical_Memory("mail01",256)
'msgbox EXPLANATION
function Check_Available_Physical_Memory(strComputer,strThresholdMB)
dim wbemServices,wbemObjectSet,wbemObject,AvailableVMB,strStatus
Check_Available_Physical_Memory=false
EXPLANATION = "Failed, error getting values."
Set wbemServices = GetObject ("winmgmts:\\" & strComputer)
Set wbemObjectSet = wbemServices.InstancesOf("CIM_OperatingSystem")
For Each wbemObject In wbemObjectSet
AvailableVMB=int(wbemObject.FreePhysicalMemory/1024)
strStatus="Available Physical Memory=" & AvailableVMB & "mb, Threshold=" & strThresholdMB & "mb"
 if AvailableVMB > eval(strThresholdMB) then
  Check_Available_Physical_Memory=true
  EXPLANATION = "Success, " & strStatus
 else
  Check_Available_Physical_Memory=false
  EXPLANATION = "Failure, " & strStatus
 end if
Next
end function

Any help is appreciated...
Post #: 1
RE: Custom Memory Check Failing - 26.Aug.2008 5:34:09 PM   
DrewE

 

Posts: 1058
Joined: 28.Apr.2008
From: Cary, NC
Status: offline
quote:

GetObject ("winmgmts:\\" & strComputer)


Have you tried adding the computer to the check both by servername, fully qualified domain name, and ip address?

_____________________________

Drew Easley - Technical Support Representative
GFI Software - www.gfi.com

(in reply to Rajamataz)
Post #: 2
RE: Custom Memory Check Failing - 29.Aug.2008 7:36:58 PM   
Rajamataz

 

Posts: 45
Joined: 16.Dec.2004
From: Canada
Status: offline
Same result regardless of netbios name, FQDN, or IP address.

(in reply to DrewE)
Post #: 3
RE: Custom Memory Check Failing - 3.Sep.2008 9:15:52 AM   
DrewE

 

Posts: 1058
Joined: 28.Apr.2008
From: Cary, NC
Status: offline
quote:

The remote server machine does not exist or is unavailable: 'GetObject'


I've found a bit more information from Microsoft's website:



The remote computer is not online. Sometimes the simplest explanation is the best: if a computer is offline you won’t be able to connect to it using WMI (or using much of anything, for that matter). If you are getting a “Remote server machine does not exist or is unavailable” error the first thing you should do is verify that the computer is actually online; you can do this by trying to ping the remote machine, or by trying to connect to it using a command-line or GUI tool. Difficulties with the network tend to be more common than difficulties with the WMI service; because of that, you should investigate problems with the network before investigating problems with WMI.

More information can be found here: http://www.microsoft.com/technet/scriptcenter/topics/help/wmi.mspx

_____________________________

Drew Easley - Technical Support Representative
GFI Software - www.gfi.com

(in reply to Rajamataz)
Post #: 4
RE: Custom Memory Check Failing - 2.Dec.2008 6:35:53 PM   
Rajamataz

 

Posts: 45
Joined: 16.Dec.2004
From: Canada
Status: offline
The server is up and running...

(in reply to DrewE)
Post #: 5
Page:   [1]
All Forums >> [Networking & Security] >> GFI Network Server Monitor >> Custom Memory Check Failing Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts