Posted April 9, 20196 yr 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"}'
April 9, 20196 yr 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
April 9, 20196 yr Author 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 April 29, 20195 yr 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...
Create an account or sign in to comment