Jump to content
Martin Stevnhoved

More that one notification per plugin?

Recommended Posts

Hi MMSOFT.

Is it somehow possible to generate more individual notifications from the same plugin, without using allowMultipleNotifications.

It is not hard to imagine that a plugin would have to monitor two or more individual values.

If it is not possible, consider this a feature request :-)

Best Regards,
Martin.

Share this post


Link to post
Share on other sites

Hi,

perhaps you should introduce something like a "Notification ID" to detect wether the notification has been shown before or not.

Dilbert

Share this post


Link to post
Share on other sites

Hi Martin,

We will be adding an optional string argument which allows you to specify a unique ID to the notification.

-Paul

Share this post


Link to post
Share on other sites

Hi Martin,

This got released in yesterday's Windows Agent 5.3 release. Documentation is yet to be updated but you should find a new overload for the SendNotificationToAllDevices method with the new PCMonitorClient.dll.

-Paul

Share this post


Link to post
Share on other sites

Hi Paul.

Can you help me to find the documentation for different notifications?

Quote

https://www.pulseway.com/en/api/clientnet?tutorialSubItem=interface
void SendNotificationToAllDevices(string message, NotificationPriority priority, bool allowMultipleNotifications = false)
"After one notification is sent you can send another one only after the first one is deleted using a client application, unless allowMultipleNotifications is true."

I need the default option (without allowMultipleNotifications) to work with different notifications.

I guess it should be possible to add som kind of notification_id.

Edited by Martin Stevnhoved

Share this post


Link to post
Share on other sites

Hi Paul.

I found it myself:

void SendNotificationToAllDevices(string message, NotificationPriority priority, bool allowMultipleNotifications, string notificationIdentifier)

Are there any more hidden gems, not mentioned in the docs?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Finzsoft
      I am trying to upgrade some software using PowerShell and I am not sure if my parameters are correctly formatted .  See highlighted text
       
      # Silent Install Secure Secure Authentication
      # http://repository.eset.com/v1/com/eset/apps/business/esa/windows/v2/2.7.32.0/esa_nt64_enu.msi
      # Path for the workdir
      $workdir = "c:\scripts\"
      # Check if work directory exists if not create it
      If (Test-Path -Path $workdir -PathType Container)
      { Write-Host "$workdir already exists" -ForegroundColor Red}
      ELSE
      { New-Item -Path $workdir  -ItemType directory }
      # Download the installer
      $source = "http://repository.eset.com/v1/com/eset/apps/business/esa/windows/v2/2.7.32.0/esa_nt64_enu.msi"
      $destination = "$workdir\esa_nt64_enu_v2.msi"
      # Check if Invoke-Webrequest exists otherwise execute WebClient
      if (Get-Command 'Invoke-Webrequest')
      {
           Invoke-WebRequest $source -OutFile $destination
      }
      else
      {
          $WebClient = New-Object System.Net.WebClient
          $webclient.DownloadFile($source, $destination)
      }
      Invoke-WebRequest $source -OutFile $destination
      # Start the installation
      msiexec.exe /i "$workdir\esa_nt64_enu_v2.msi" ADDLOCAL="Credential_Provider" /qb /L*v "c:\esa_install_log.txt"
      # Wait XX Seconds for the installation to finish
      Start-Sleep -s 35
      # Remove the installer
      rm -Force $workdir\esa_nt64*
    • By Basil62
      Hello and good day. Is there any way for Pulseway to notify me when the monitored system reaches a specific % threshold of RAM or CPU usage?
    • By dpbklyn
      Is there a way to kick off an automated task based on a notification or alert.  For Example, if we get a notification of a disk getting full, I would want the automation to run: 
      <Open a ticket>--> <add predetermined note>--> <add 15 minutes>--><run task to clean drive>--><send notification that task has completed>--><close ticket>
      Is this possible now, or should this be a feature request?
      Thank you,
      dp
    • By Basil62
      I want a program to always run on my computer. Is there a script that forces a program to restart after its process has been stopped?
      Thanks in advance
    • By dpbklyn
      Is there a way to exclude a particular disk (e:\) from the storage notifications?
×