Jump to content

How to monitor when a program doesn't run

Aaron Trujillo

Recommended Posts

  • Administrators

Hi Aaron,

Yes, you can generate a Pulseway notification with the help of the REST API:

curl https://api.pulseway.com/v2/notifications \
    -u username:apitoken \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"instance_id":"instanceId","title":"Jenkins Job Failed","message":"The jenkins job has failed to run with error code 0x0800123 on Server01 in group Servers.","priority":"critical"}'

Replace the instanceId with the system identifier of the agent installed on the jenkins machine, you can find it in the file: /var/pulseway/pulseway.id .

Documentation here: https://api.pulseway.com/?shell#notify


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
  • Create New...