Quantcast
Channel: Sensu Community - Latest posts
Viewing all articles
Browse latest Browse all 160

How to configure the email alert (SMTP config) while exit 2 code (error occured) for service check

$
0
0

Hey @sensu-tester,

I’m glad to hear things are working. :+1: For your next question, adding custom scripts to each agent would be a good task for a configuration management tool. One of the significant benefits of using Sensu Assets is with one command, the binary will be installed on the agent right when it’s needed. So, one option is to use Sensu Assets where you can rather than custom scripts.

Your CPU check script can be accomplished similarly with an asset available on Bonsai.

If you’d like a more comprehensive, cross-platform performance check, consider using the Sensu System Check. This combines several checks into one, with which you can alert as you see fit: CPU, Memory, Swap, Disk, System Load, Host uptime, and Host processes. You can use all or just a few in one check, and that asset will show up on any agent with the check and subscription.

I’d recommend looking at Bonsai for more plugins that may be helpful for your needs.

Let me know if that is helpful! :grin:


Viewing all articles
Browse latest Browse all 160

Trending Articles