Jump to content

Recommended Posts

Posted

I have a Jenkins job that runs clamav on some windows machines that i have.  I would like to figure out a way that i can get notifications if a job doesnt run... is this something pulseway can do?

  • Administrators
Posted

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

-Paul

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...