Jump to content

Publish system


mitch
 Share

Recommended Posts

Hello,

It is maybe a silly question but I can't figure it out.
I want to publish an online webconsole in my dashboard.

But I don't know how to publish a system. where do i put the code? pulseway manager? pulseway webapp? I have no idea..

could somebody tell me how this works this is the code:

curl https://my.pulseway.com/api/v2/notifications \

    -u username:password \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"instance_id":"my_cloud_agent","title":"Runtime error","message":"Cannot connect to the database.","priority":"critical"}'
Link to comment
Share on other sites

  • Administrators

Hey Mitch,

Curl is an application that can make HTTP requests. You can download it from here: https://curl.haxx.se/windows. The Publish method of the REST API allows you to register applications as Pulseway instances based on the JSON content you're sending. So if you'd like your web console statistics and status information to be pushed to Pulseway then you'd have to talk to the developers of that application and ask them to make these requests every now and then adding in the required information.

For instance you could write a script that runs backup jobs every day and you can use this API to let Pulseway know what's the status of the backup job and send notifications when the backup fails.

-Paul

Link to comment
Share on other sites

Hi Paul,

I already used CURL to get the information I needed out of the webconsole. that worked but if I want to push the information into Pulseway I need to publish a Pulseway instance.
One of your colleagues told me to do this with the curl code in the first post. Thats where I'm confused right now.

But if I want to publish something where do I have to put the code. in the curl application from https://www.curl.haxx.se/windows ?

-Mitch

Edited by mitch
i have it running now, but if i want to use my credentials it gives the output that my username and/or password is wrong but these are the good ones...
Link to comment
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
 Share

×
×
  • Create New...