Hello all! I am happy to be here! I am used to an old antiquated version of Sensu and I am moving to Sensu Go.
Previously, my Sensu Agents would pull down .json files which I would use to monitor a service endpoint. For example:
{
"checks":{
"system-service":{
"interval":60,
"occurrences":3,
"occurrences_watermark":3,
"timeout":300,
"ttl":360,
"refresh":600,
"retry_occurrences":3,
"standalone":true,
"command":"/etc/sensu/plugins/service_check.sh -H hostname -p 1144 -s service",
"subscribers":[
"X"
],
"stdin":true,
"handlers":[
"service-hostname"
]
}
}
}
Looking over the new sensu go docker container, it is setup like the following:
docker run -v /var/lib/sensu:/var/lib/sensu -d --hostname hostname --name sensu-agent sensu/sensu:latest sensu-agent start --backend-url ws://hostname:8081 --log-level debug --subscriptions linux --api-host 0.0.0.0 --cache-dir /var/lib/sensu
Can the old monitors be integrated with Sensu Go or do I need to use the API system instead now? I am a bit lost at the moment.
Thank you!