W32 IIS W3SVC Perl Script via WMI
Moderators: Developers, Moderators
FYI: On my Win2000 servers with IIS installed, the WMI class is Win32_PerfRawData_W3SVC_WebService instead of the one SunDevil is using, which I assume is the class used by Win2k3. It's frusturating that the same application on different platforms uses different locations to provide the same data.
I've also started converting the perl scripts to VBS using cscript, because on my Win2k3 server that is running Cacti they are much faster.
JDooley
I've also started converting the perl scripts to VBS using cscript, because on my Win2k3 server that is running Cacti they are much faster.
JDooley
Now both of those are very interesting. At least the class is easy to change, and I have most of these scripts originally in .vbs form from when I ran MRTG. I'll have to try that, thanks for the performance tip...I'll see if it does the same on my end.jdooley wrote:FYI: On my Win2000 servers with IIS installed, the WMI class is Win32_PerfRawData_W3SVC_WebService instead of the one SunDevil is using, which I assume is the class used by Win2k3. It's frusturating that the same application on different platforms uses different locations to provide the same data.
I've also started converting the perl scripts to VBS using cscript, because on my Win2k3 server that is running Cacti they are much faster.
JDooley
hi devilsun,
thanks for giving us cool script
I think I am slowly getting use to cacti,
after long 7 days gap I am back to cacti stuff and luckly found jtb's post and likt to http://forums.cacti.net/viewtopic.php?p=16705 which solved my problem
thanks to you both
its time now to seriously look into cacti source
thanks for giving us cool script
I think I am slowly getting use to cacti,
after long 7 days gap I am back to cacti stuff and luckly found jtb's post and likt to http://forums.cacti.net/viewtopic.php?p=16705 which solved my problem
thanks to you both
its time now to seriously look into cacti source
Why me lord?
-
- Posts: 23
- Joined: Wed Apr 13, 2005 4:20 pm
W32 IIS W3SVC Perl Script via WMI
hello
Do you scrip work with windows Nt and 2003?
Do you scrip work with windows Nt and 2003?
I know this thread is a bit old but this was driving me nuts and I just found a solution.
I was trying to monitor IIS' Default Web Site and even though the script worked, my graphs were not appearing.
In order for the script to work, the IIS Instance Name cannot have any spaces in it. If you're trying to monitor IIS' "Default Web Site", change its instance name to "DefaultWebSite" and the script will work.
Great script DevilSun!
- b
EDIT: Or you can use single quotes (ex. 'Default Web Site')...
I was trying to monitor IIS' Default Web Site and even though the script worked, my graphs were not appearing.
In order for the script to work, the IIS Instance Name cannot have any spaces in it. If you're trying to monitor IIS' "Default Web Site", change its instance name to "DefaultWebSite" and the script will work.
Great script DevilSun!
- b
EDIT: Or you can use single quotes (ex. 'Default Web Site')...
- ichoudhury
- Posts: 46
- Joined: Tue May 31, 2005 8:18 am
Perhaps this
http://emea.windowsitpro.com/WindowsScr ... 20138.html will show you how to determine the OS type and determine which class to use. Right now I am so lazy that I created two script instead
if somebody work on it great, otherwise I will try to do it sometime.
http://emea.windowsitpro.com/WindowsScr ... 20138.html will show you how to determine the OS type and determine which class to use. Right now I am so lazy that I created two script instead
if somebody work on it great, otherwise I will try to do it sometime.
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
-
- Posts: 2
- Joined: Thu Jul 28, 2005 12:16 pm
-
- Posts: 2
- Joined: Thu Jul 28, 2005 12:16 pm
Sounds like you need to open up the correct ports for DCOM.Alives wrote:I am trying to monitor a host outside of my network with WMI. I have opened port 161 UDB and port 445 TCP which i found on google. I still cannot access this hosts WMI.
Any ideas?
Thanks
See:
http://www.fair-computer.de/download/pd ... ooting.pdf
http://msdn.microsoft.com/library/defau ... rewall.asp
and
http://support.microsoft.com/default.as ... -us;154596
In a nutshell
The firewall between your server and the Internet should be configured as follows:
Deny all incoming traffic from the Internet to your server.
Permit incoming traffic from all clients to TCP port 135 (and UDP port 135, if necessary) on your server.
Permit incoming traffic from all clients to the TCP ports (and UDP ports, if necessary) on your server in the Ports range(s) specified above.
If you are using callbacks, permit incoming traffic on all ports where the TCP connection was initiated by your server.
Hey DevilSun, great script. I have one question for you, I have hundreds of sites on each web server, is it possable to monitor all of the connections, and not just one instance?
Thanks Snoop
Thanks Snoop
Last edited by snoop on Fri Sep 02, 2005 6:32 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 0 guests