What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Schedule for limits

Votes:

0

Goodmorning,

I've got an SNMP sensor that monitor the bandwidth of a line and I set a limit (in the channel) to show the warning and error status (my line is a 8Mb so if the bandwidth is >= 6.5Mb is warning, >= 7.5Mb is error). The sensor works well but I've got a problem: during the night I send a DR on a remote site so the bandwidth is full (8Mb) for some ours: can I schedule the time when the LIMITS of a sensor are up?

I can't pause the sensor cause it tells me even if the line is working.

I know that I can create two sensor: one for the bandwidth and one for the status up/down of the line, but I'm curious to know if there's another way to achieve this.

limits prtg schedule sensor

Created on Feb 29, 2016 3:59:59 PM



10 Replies

Votes:

0

You could create a seperate notification that runs using a schedule; this way you won't be alerted at night. Would this be an option for you? You'll have to remove the limits and work with threshold triggers though...

Created on Mar 1, 2016 12:38:53 PM by  Stephan Linke [Paessler Support]



Votes:

0

Thanks for the reply, could you give me a tutorial about this? I'm not sure to understand what to do!

Created on Mar 1, 2016 1:07:01 PM



Votes:

0

There you go: click!

Skip step 4 entirely and replace the state trigger in step 5 with a threshold trigger (and set the values accordingly). Remember to add a schedule to the notification as well so it only alerts during the day for the normal values :)

Add another notification the same way with higher threshold values that only alerts during the night (in case it escalates).

See also the Paessler website: How to set up notifications via the PRTG web interface.

Created on Mar 1, 2016 1:53:07 PM by  Stephan Linke [Paessler Support]

Last change on Jul 26, 2021 11:23:25 AM by  Maike Guba [Paessler Support] (2,404) 2 1



Votes:

0

This might be WAY too hard for you to setup, but I have plans to setup this up in the next few months.

In the comments section of the sensor, add a comment that details the schedule and thresholds, eg:

<AdvancedSchedule>
Channel,Start,Stop,UpperWarn,UpperError,LowerWarn,LowerError
1,07:00,19:00,6.5,7.5,,  #Business hours, warn at 6.5 and error at 7.5
1,19:01,6:59,,,,  #no warnings or errors
</AdvancedSchedule>

Now comes the fun part, have a scheduled task that enumerates through all the sensors, looking for ones with comments that contain <AdvancedSchedule> (You can also add a tag to the sensor and filter by it).

When you find an advanced schedule, you use more API calls to change the thresholds for the channel.

PRTG pseudo code for the scheduled task

import-module PRTGAdminModule.psm1
$sensors = get-PRTGsensors -filter AdvancedSchedule
  foreach ($sensor in $sensors){
    $aas = Get-PRTGActiveAdvancedSchedule -FromComments $sensor.comments
    Set-PRTGChannelSettings -Channel $aas.channel -UpperWarning $aas.upperwarn -UpperError $aas.uppererror
  }

Get-PRTGActiveAdvancedSchedule would return only the "active" row based on the current time.

Of course it would need to be a little more details that this (say to handle multiple channels), it would be a good days work.

Created on Mar 6, 2016 11:22:07 PM



Votes:

0

Ambitious project, could turn out pretty interesting! Looking forward to it :)

Created on Mar 7, 2016 9:34:15 AM by  Stephan Linke [Paessler Support]



Votes:

0

Stephan, I think your comment above "Ambitious project" was relating to my post, but my port never got posted.

Created on Mar 7, 2016 10:17:05 PM



Votes:

0

Woops, now it is :D

Created on Mar 8, 2016 6:55:32 AM by  Stephan Linke [Paessler Support]



Votes:

8

I have put something together that may help certain people: https://thedomainiown.wordpress.com/prtg-related/advanced-scheduling/

In short does what my post above state: It lets you have different thresholds at different times of the day.

Created on Mar 9, 2016 5:36:57 AM



Votes:

0

Hi Andrew,

That's nifty! :) If you like, you can create a KB article from it (it will probably get lost within this thread). Days of week would be rather easy to implement. Simply add another column WeekDays and check if the current weekday is present before executing the API call :)

Greetings,
Stephan

Created on Mar 9, 2016 8:17:56 AM by  Stephan Linke [Paessler Support]

Last change on Mar 9, 2016 8:19:57 AM by  Stephan Linke [Paessler Support]



Votes:

0

Stephen, Let me make those changes (I have been very busy with the Powershell module today). Once I post the update (and maybe others have confirmed its useful) Then you can put up a KB article.

Created on Mar 9, 2016 10:34:07 AM




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.