Jump to content
mitch

After run only new notifications

Recommended Posts

I have used the rest api Publish and Notify to make a system in Pulseway.
When I run the api the system will be updated and there will be notifications of the devices I monitor. (if their are up or down)

But if I run the script I get alle the notifications that I don't want because the state isn't change of the devices.
Is there a php script that makes the Pulseway Notifiy api remember the state of the last send notification so there will only be send a notification if the state is change since the last send notification?

Kind regards,

Mitch

 

Share this post


Link to post
Share on other sites

Hi @mitch,

Thank you for contacting us. Unfortunately you will need to implement this logic in your php script. The rest API is not designed for tasks like this. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By Andy Raybould
      Hi
      Could someone assist in helping me to set up an alert when a network connection is dropped.
      This is happening at one of my client sites after changing to a new ISP. The ISP says the router/switch is fine but connections are dropping.
      I would like to be able to log when a connection drops (ideally knowing if the internet connection has dropped or just the internal network connection)
      I'm not sure a simple ping notification is good enouh in Pulseway to do this as I need to know if the connection has dropped for a few mseconds as well as larger outages.
      I guess the Event Viewer holds the answers but would appreciate it if anyone has done this before if they could share their thoughts.
      Thank you, Andy
    • By XxLilBoPeepsxX
      I am attempting to install pulseway on my raspberry pi 3b+, and have downloaded and installed the correct file from the pulseway website, and made sure that my openssl libraries are up to date and correctly setup. I followed through with the given installation instructions and repeatedly the pulseway service is unable to be started. When executing the command sudo systemctl start pulseway, the command works and presents no errors. Upon checking the app or the list of all services, however, pulseway is not shown as a service and there is no devices connected to the app. See the attached images for the output of sudo systemctl status pulseway


    • By ARoode
      Does anyone have an update script for making and removing snapshots in VMware?
      I would like to use it together with Windows update scripts to search and install updates.
    • By knis
      I installed Pulseway on Ubuntu 16.10   64 bit.   It was success.
      I want only monitor HDD and CPU usage and Power off computer.
      I want disable other features in config.xml.
      How can I disable (I see mobile app) Users, Terminal, Scripts, Enter Maintenance Mode?
      Thanks!
    • By Xander C
      So just set up the network with all the computers added, But I keep getting this notification.
      "There was an error retrieving the notification."
      From an "Unknown System"
      anyone know what could be the cause?


      Thanks,
       
×
×
  • Create New...