Does PRTG can support Database backup jobs monitoring?

Votes:

0

Your Vote:

Up

Down

Hi,

I successfully setup basic SQL performance using the SQL server sensors available in PRTG. But I have problem in setting up special DB monitors below? Please advise if PRTG can support this?

Databases - Days Since Last Backup
Databases - Unavailable
Databases - Jobs Failed
SQL - Long Running SQL
Clusters - Node Unavailable
Network - SQL Server Packets Error Rate
Monitored Server - Connection Failure

Thanks!

backups database monitoring

Created on May 6, 2011 12:36:14 AM by  TrendGISS (0) 1

Last change on May 6, 2011 12:59:35 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

For the number of days since the last backup of a single database:

Step 1

Create a new stored procedure using the following code

CREATE PROCEDURE [dbo].[spLastBackup]
	@DatabaseName	nvarchar(50)
AS
BEGIN
    SELECT DATEDIFF(d, MAX(b.backup_finish_date), getdate())
    FROM sys.sysdatabases s 
    LEFT OUTER JOIN msdb.dbo.backupset b
        ON b.database_name = s.name
    WHERE s.Name = @DatabaseName
END

Step 2

Add a new MSQL sensor

On your PRTG server, add a new MSQL sensor. Fill in the required fields and in the "SQL Expression" field enter

exec dbo.spLastBackup YOUR_DATABASE_NAME

In the channels tab select the value channel and enter Day as unit.

For the number of days since the last backup of all your databases:

Step 1

Create a new stored procedure using the following code

CREATE PROCEDURE [dbo].[spLastBackups]
AS
BEGIN
    SELECT  
        s.name AS Channel
	,DATEDIFF(d, MAX(b.backup_finish_date), getdate()) as Value
	,1 as IsInt
	,'Days' as Unit
    FROM sys.sysdatabases s 
    LEFT OUTER JOIN msdb.dbo.backupset b
        ON b.database_name = s.name
    GROUP BT s.name
END

Step 2

Add a new Custom XML sensor

On your PRTG server, add the Custom XML sensor SQLspXML to be downloaded from the Google Code Project

Fill in the required parameters in the parameter section of the sensor. This sensor will produce multiple channels, one for every database on your server

Created on May 7, 2011 2:51:21 PM by  Gerard Feijth (4,203) 3 2

Last change on May 9, 2011 2:37:20 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



2 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

I'm afraid we don't have specific sensors for those. You could only try using the "normal SQL"-sensors, if you can check these items with SQL Queries.

best regards.

Created on May 6, 2011 12:59:20 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



Accepted Answer

Votes:

0

Your Vote:

Up

Down

For the number of days since the last backup of a single database:

Step 1

Create a new stored procedure using the following code

CREATE PROCEDURE [dbo].[spLastBackup]
	@DatabaseName	nvarchar(50)
AS
BEGIN
    SELECT DATEDIFF(d, MAX(b.backup_finish_date), getdate())
    FROM sys.sysdatabases s 
    LEFT OUTER JOIN msdb.dbo.backupset b
        ON b.database_name = s.name
    WHERE s.Name = @DatabaseName
END

Step 2

Add a new MSQL sensor

On your PRTG server, add a new MSQL sensor. Fill in the required fields and in the "SQL Expression" field enter

exec dbo.spLastBackup YOUR_DATABASE_NAME

In the channels tab select the value channel and enter Day as unit.

For the number of days since the last backup of all your databases:

Step 1

Create a new stored procedure using the following code

CREATE PROCEDURE [dbo].[spLastBackups]
AS
BEGIN
    SELECT  
        s.name AS Channel
	,DATEDIFF(d, MAX(b.backup_finish_date), getdate()) as Value
	,1 as IsInt
	,'Days' as Unit
    FROM sys.sysdatabases s 
    LEFT OUTER JOIN msdb.dbo.backupset b
        ON b.database_name = s.name
    GROUP BT s.name
END

Step 2

Add a new Custom XML sensor

On your PRTG server, add the Custom XML sensor SQLspXML to be downloaded from the Google Code Project

Fill in the required parameters in the parameter section of the sensor. This sensor will produce multiple channels, one for every database on your server

Created on May 7, 2011 2:51:21 PM by  Gerard Feijth (4,203) 3 2

Last change on May 9, 2011 2:37:20 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.

PRTG
Network Monitor
Intuitive to Use.
Easy to manage.

150.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Visit
www.paessler.com

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

Top Tags


View all Tags