Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
First off, thanks to Sidewinder...this is my first time working with Perl and Cacti, so his scripts got me off to a great start. I have lots more coming, so stay tuned! (Exchange, etc).
perl <path_cacti>/scripts/w32_iis_query_w3svc.pl <hostname> get CurrentConnections,CurrentAnonymousUsers,CurrentNonAnonymousUsers <instance>
<instance> is the name of the website instance shown in the IIS Manager, however "_Total" is a great one to use if you don't want to break up graphs for different sites.
Don't ask me how and where Microsoft comes up with these numbers...
All of my perl scripts were written and tested on Win2003 Server boxes, and I'm not sure if they're compatible as far as class names with Win2000 server boxes or not; they should be.
Ghandi, try running the Perl script manually and seeing what you get back. This is how I test the scripts...open command prompt on windows box with perl installed, go to the cacti scripts directory, then run
perl w32_iis_query_w3svc.pl webserver browse
- or -
perl w32_iis_query_w3svc.pl webserver index
- or -
perl w32_iis_query_w3svc.pl webserver get CurrentConnections _Total
That should return you the full set of items for the class the script uses, which is "Win32_PerfFormattedData_W3SVC_WebService". That'll also tell you the instance names and all that, otherwise it should error out. If it says something about can't find server or class name, make sure you have access to view WMI data (by querying "Win32_Processor" class -- make copy of this script, open it, change class to Win32_Processor and run index on it). If WMI works but you still get class errors, there is a chance the class I'm referencing is a Win2003 / IIS6 only performance class.
I haven't had anyone say anything, and it looks like Ghandi got it installed so I don't think there is anything wrong with it. The scripts/templates were all done from 0.8.5a...not sure what's wrong for ya.
i think your'e right, i can access the wmi, on the index command, i get the Processor Information back, is there a chance to find out, which class i must use for win2000 server?
Yeah sorry I did some searching and there is no WMI information for anything before IIS 5.1. I believe 5.1 is XP, so XP and higher should work...but 2003 for sure.
You can get this information via SNMP I believe. Have you tried that? I have the Win2003 MIBs, but not the 2000 ones.
Can someone provide a simple explanation on how to go about installing this stuff
I imported the graph data and data xml's and i added the .pl scripts to the cacti/scripts folder, and it doesn't graph anything for me. I get a graph but no data ever appears. I'm very new to cacti so I'm not exactly sure I'm adding the new template correctly.
Can someone give some quick instructions so i can assure I'm doing that part right?
Can someone provide a simple explanation on how to go about installing this stuff
I imported the graph data and data xml's and i added the .pl scripts to the cacti/scripts folder, and it doesn't graph anything for me. I get a graph but no data ever appears. I'm very new to cacti so I'm not exactly sure I'm adding the new template correctly.
Can someone give some quick instructions so i can assure I'm doing that part right?
have you tried to just execute the perl-file? -> First check that the script works correctly