MSSQL Database size graph

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Brainli
Posts: 4
Joined: Tue Apr 18, 2006 2:46 am

MSSQL Database size graph

Post by Brainli »

How can i create a Graph about the Database size of a Microsoft SQL 2000 Database?

Thank you very much.

Greets from switzerland.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Is the data accssable via snmp? If not, then you'll probably have to write a WMI script. If it actually resides in one file, a small simple script which returns the filesize would work too.
Brainli
Posts: 4
Joined: Tue Apr 18, 2006 2:46 am

Post by Brainli »

Sorry but i don't know how to create a WMI Script. Do you have a little Manual for me?

btw:
The Cacti-Server is Linux and the Client (SQL-Server) is Windows.

Thank you very much. :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Well first you need to figure out what will report the mssql database size. Then once you know that, then you can write the appropriate script.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

I'm graphing MS SQL databases sizes; the results are fed into Cacti with NRPE. I'll post the script later today.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Brainli
Posts: 4
Joined: Tue Apr 18, 2006 2:46 am

Post by Brainli »

i have on a Windows-Server a ASP-Script with the Output:

Code: Select all

<html>
<body>
master 17344 KB<br>mastlog 2304 KB<br>
<br>
test_Data 1280 KB<br>test_Log 1024 KB<br>
<br>
MSDBData 13312 KB<br>MSDBLog 2304 KB<br>
</body>
</html>
Now i must this output to cacti script.. puhh..

Run this script from the Linux-Server on the Windows-Webserver and put the Output in a Graph..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright, then you should take a read on how to make your script work with cacti. Then I also suggest you read this guide to get a basic idea how to create the data & graph templates for the script.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest