|
|
| Author |
Message |
chewy009
Joined: 15 Jun 2005 Posts: 37 Location: Washington State, USA
|
Posted: Tue Oct 11, 2005 12:12 pm Post subject: |
|
|
I am trying to get this to work on a W2k/SQL2k box but am getting the following error when I run the script from the CMD line:
Check the computer and class name.
No information was found on the specified class!
The cacti log says this:
10/11/2005 10:09:56 AM - CACTID: Poller[0] Host[59] DS[554] SCRIPT: perl D:\Apache2\htdocs\cacti/scripts/w32_sql_query_connections.pl SQLServer get UserConnections,LoginsPersec,LogoutsPersec, output: U
10/11/2005 10:09:56 AM - CACTID: Poller[0] Host[59] DS[554] WARNING: Result from SCRIPT not valid. Partial Result: ...
I ran winmgmt /resyncperf from the cmd line as well with no luck.
Any help would be appreciated. |
|
| Back to top |
|
 |
chewy009
Joined: 15 Jun 2005 Posts: 37 Location: Washington State, USA
|
Posted: Tue Oct 25, 2005 1:02 pm Post subject: |
|
|
Anyone have any ideas on my previous post? Still being dogged by the boss on this.
Thanks in advance for any help!!!
Posted: Tue Oct 11, 2005 12:12 pm Post subject:
--------------------------------------------------------------------------------
I am trying to get this to work on a W2k/SQL2k box but am getting the following error when I run the script from the CMD line:
Check the computer and class name.
No information was found on the specified class!
The cacti log says this:
10/11/2005 10:09:56 AM - CACTID: Poller[0] Host[59] DS[554] SCRIPT: perl D:\Apache2\htdocs\cacti/scripts/w32_sql_query_connections.pl SQLServer get UserConnections,LoginsPersec,LogoutsPersec, output: U
10/11/2005 10:09:56 AM - CACTID: Poller[0] Host[59] DS[554] WARNING: Result from SCRIPT not valid. Partial Result: ...
I ran winmgmt /resyncperf from the cmd line as well with no luck.
Any help would be appreciated. |
|
| Back to top |
|
 |
DevilSun Cacti User
Joined: 16 Jul 2004 Posts: 166 Location: Oregon
|
Posted: Thu Oct 27, 2005 5:25 pm Post subject: |
|
|
Turn output on to "DEBUG" for once cycle, and post what the actual response is.
"Partial Response:..." doesn't help much...
Or, even better, run the query from the command line |
|
| Back to top |
|
 |
quastr
Joined: 07 Dec 2004 Posts: 1
|
Posted: Tue Nov 08, 2005 5:54 pm Post subject: |
|
|
He did say he was running it from command line
| Quote: | but am getting the following error when I run the script from the CMD line:
Check the computer and class name.
No information was found on the specified class!
|
I am also getting this error. Does anything else need to be installed on the mssql box? |
|
| Back to top |
|
 |
DevilSun Cacti User
Joined: 16 Jul 2004 Posts: 166 Location: Oregon
|
Posted: Tue Nov 08, 2005 6:23 pm Post subject: |
|
|
| Well, if you're sure WMI is up and running and it's not firewall or permissions related, I'd suggest using Microsoft's WMI Tools (Link) to browse to the computer and browse through the classes to see if it's there on your box. Also, don't forget about "wmiadap /f" to force WMI to update itself. |
|
| Back to top |
|
 |
chewy009
Joined: 15 Jun 2005 Posts: 37 Location: Washington State, USA
|
Posted: Wed Nov 09, 2005 1:48 pm Post subject: |
|
|
| I've downloaded the WMI Tool but can't seem to find what I am looking for. Does anyone know what the instance is and where to find it. I am new to WMI. Thanks. |
|
| Back to top |
|
 |
DevilSun Cacti User
Joined: 16 Jul 2004 Posts: 166 Location: Oregon
|
Posted: Wed Nov 09, 2005 4:17 pm Post subject: |
|
|
| Use the WMI Object Browser. When it opens and says "Connect to namespace:", click the Icon next to the drop down list to browse for a namespace. Change the machine name to the remote machine, and click Connect, open "root" and highlight "CIMV2" and press "OK". When you do that successfully, it'll connect to "\\<remotemachine>\root\CIMV2". Now click the binocular button to find a class -- you'll get a TON of classes returned -- you're looking for a class called "Win32_PerfFormattedData_MSSQLSERVER_SQLServerGeneralStatistics", the problem however is the box list isn't wide enough to see the full classes...but you should have quite a few that start with "Win32_PerfFormattedData_MSSQLSERVER...", if you have none, the SQL WMI classes didn't get registered or something, and you probably need to run "wmiadap /f" to fix it. |
|
| Back to top |
|
 |
chewy009
Joined: 15 Jun 2005 Posts: 37 Location: Washington State, USA
|
Posted: Wed Nov 09, 2005 6:50 pm Post subject: |
|
|
OK, so i got it working. I am assuming DevilSun ( ) that you are running SQL 2000 on Wk3 server. I am running SQL2000 on W2k server, which has a different class. Modified the class in the script to be "Win32_PerfRawData_MSSQLSERVER_SQLServerGeneralStatistics" and it started working right away.
Thanks again for your help!  |
|
| Back to top |
|
 |
cactus_jack
Joined: 11 Apr 2005 Posts: 29
|
Posted: Mon Nov 14, 2005 2:29 pm Post subject: |
|
|
Hello,
I am getting the following results from my install, I am using cacti on Redhat to monitor a windows server.
| Code: |
11/14/2005 01:25:21 PM - CMDPHP: Poller[0] Host[21] DS[920] CMD: perl /var/www/cacti/scripts/nt_perfmon.pl uhdadw09.uhd.campus "\\SQLServer:General Statistics\User Connections", output: U
11/14/2005 01:25:21 PM - CMDPHP: Poller[0] Host[21] DS[920] WARNING: Result from CMD not valid. Partial Result: |
If anyone could shed some light as to what i need to do that would be greatly appreciated.
Vince |
|
| Back to top |
|
 |
jengstro Cacti User
Joined: 15 Nov 2005 Posts: 156
|
Posted: Fri Dec 02, 2005 5:26 pm Post subject: |
|
|
| Any time I hit the binocular button the thing locks up... any ideas? |
|
| Back to top |
|
 |
jengstro Cacti User
Joined: 15 Nov 2005 Posts: 156
|
Posted: Fri Dec 02, 2005 5:34 pm Post subject: |
|
|
Ok... after a few trys... it came up and there are around 15 or so mssql items there. But when I run the script from a command line as the user used above, it cannot pull the information.
It complains that it cant talk to the WMI server.
I should also mention that I can pull processor data via WMI... |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Fri Dec 02, 2005 6:13 pm Post subject: |
|
|
| If your running the cacti scheduled task with the SYSTEM user account, this would be the cause of the problem. You need to use a real user account or specify a username/password in your WMI script(s). |
|
| Back to top |
|
 |
jengstro Cacti User
Joined: 15 Nov 2005 Posts: 156
|
Posted: Fri Dec 02, 2005 6:20 pm Post subject: |
|
|
| I am using a domain created account that has been added to the local adminisrators group on the server and client machines. |
|
| Back to top |
|
 |
jengstro Cacti User
Joined: 15 Nov 2005 Posts: 156
|
Posted: Mon Dec 12, 2005 11:04 am Post subject: |
|
|
| This user does not require any access to the SQL database itself I would assume? |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Mon Dec 12, 2005 5:41 pm Post subject: |
|
|
| I haven't looked at the script, but I doubt not since this is being done via WMI. |
|
| Back to top |
|
 |
|