This message was deleted.
# harvester
a
This message was deleted.
e
Hello All, please let me know if we have any details for my queries.
We tested many logging servers like graylog, elasticsearch, splunk, simply http server.
For
ServiceNow
, I did not test them before. What's your current configuration of
clusterflow/clusteroutput
?
e
@ancient-pizza-13099 Thank you so much for sharing the details. We have installed the 3 node Harvester clusters and configured the Alert manager. We also enabled the Webhook alert Manager.
I will follow the article shared. We will keep you updated
we tested some alertmanager
e
Yes, I followed the same article for alert manager. We triggered the host down alert, but did not get any alerts in Webhook or ServiceNow Midserver. We do not know the process to check, whether the alerts is sent from the Harvester alert manager to ServiceNow Webhook link.
a
Copy code
```
alert-webhookserver.py 
import web
import json
from datetime import datetime

urls = ('/.*', 'hooks')

app = web.application(urls, globals())

def printAlert(jo):
	for x in jo["alerts"]:
		print(x)
		print()

class hooks:
    def POST(self):
        data = web.data().decode("utf-8")
        jo = json.loads(data)
        print('DATA RECEIVED: len:'+str(len(data)) +" :contains:"+str(len(jo["alerts"])) +" alerts: " +str(datetime.now()))
        printAlert(jo)
        print(jo)
        print()
        return 'OK'

if __name__ == '__main__':
    # usage
    # export PORT=8090  or any, default is 8080
    print("start a simple webhook server to receive alert " + str(datetime.now()))
    app.run()


$ python3 alert-webhookserver.py 
start a simple webhook server to receive alert 2022-08-29 19:39:25.847186
<http://0.0.0.0:8090/>

```
follow above example to setup a python based simple server, which just prints the alert.
to simply, let the server to be close your cluster, make sure you can
ping
your simple server's IP
e
@ancient-pizza-13099 Thanks for sharing the details. I will work with my colleague and share you the update.