New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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


Monitoring DFS NameSpace

Votes:

0

Your Vote:

Up

Down

Hello,

We have a DFS Namespace deployed. We need to monitor its availability on several servers.

I've found something on DFS Replication but i need something on the DFS Namespace.

dfs namespace prtg

Created on Jul 8, 2014 3:53:47 PM by  Guillaume Vannier (10) 1



7 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

thank you very much for your KB-Post. I'm very much afraid we do not have native sensors for this in PRTG. Please consider writing a script for this, and then running it as a Custom Sensor.

best regards.

Created on Jul 11, 2014 8:12:01 AM by  Torsten Lindner [Paessler Support]



Votes:

1

Your Vote:

Up

Down

Hello,

Thanks for your reply.

I have created a PowerShell Script :

cls
$ErrorActionPreference = 'SilentlyContinue'
if (Test-Path -Path \\groupesifa.com\societe)
{
    $Count = (Get-ChildItem -Path \\groupesifa.com\societe -Force).Count
    if ($Count -gt 0)
    {
        $Result = [string]$Count+":OK"
         write-host $Result
         Exit 0
    }
    else
    {
        $Result = "0:Invalid"
         write-host $Result
         Exit 2

    }
}
else
{
    write-host "0:Invalid"
    Exit 2

}

This script show the number of folder in the DFS NameSpace
groupesifa.com\societe

When i test, i have the following result : 20:OK

But PRTG Custom Sensor show me execution time and the value is still 0

Any Help ?

Created on Jul 23, 2014 1:34:36 PM by  Guillaume Vannier (10) 1



Votes:

0

Your Vote:

Up

Down

It may help to run the PRTG Probe Service under your account then. Or try impersonating the script to have PRTG run it under your account. Maybe the "LOCAL SYSTEM"-Account (default setting for PRTG) does not see the counter, and thus results in 0.

Created on Jul 24, 2014 8:29:18 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello,

I've changed the service account on the test machine. But the value is still 0 I've tried to changed the setting to use the herited credentials in the sensor but no change.

Created on Jul 24, 2014 8:41:10 AM by  Guillaume Vannier (10) 1



Votes:

0

Your Vote:

Up

Down

Hello,

I'm still having the same probelm. Any help please ?

Created on Aug 27, 2014 12:39:30 PM by  Guillaume Vannier (10) 1



Votes:

0

Your Vote:

Up

Down

Can you please have the sensor write the result to disk and post that here?

Created on Aug 28, 2014 8:32:29 PM by  Greg Campion [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello,

On linux I have 3 parameter in write-host.

Like this: echo "0:1:SQL OK"

First is the return value :

  1. 0 -> OK
  2. 1 -> Warning
  3. 2 -> System Error (network/socket error)
  4. 3 -> Protocol Error (web server return a 404 error)
  5. 4 -> Content Error (web page does not contain a required word)

Second are the value want to see in graph. Third are the message.

Try with "0:20:OK"

Created on Feb 23, 2015 9:53:39 AM by  Stephane Gilliers (10)



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.