Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to create an alert if NiFi UI is down for some reasons

avatar
New Contributor

Hello,

 

Being as newbie to Nifi, Need help from the community.

 

Appreciate if someone helps me out in setting up some kind of script to raise an alert via email or service now if NiFi UI is down. I have two requirements - 

 

1. Identify programmatically how to check if NiFi UI is down

2. Create an automatic incident if it is down

 

If there is an easy way around to raise the alert, I would really appreciate the advise.

 

Thanks much!!

2 REPLIES 2

avatar
Super Guru

@romi ,

 

You can try to connect to some NiFi API endpoint. If it succeed, it's an indication that the service is up.

For example:

$ curl -k "https://mynifi:8443/nifi-api/access"
{"accessStatus":{"status":"UNKNOWN","message":"Access Unknown: Certificate and Token not found."}}

 

If the command above returned anything different, you could send an alert.

 

Cheers,

André

 

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
New Contributor

Thanks Andre. I will try and get back to you. Appreciate for the quick response.