Configure nagios alerts for SMS and mail differently

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nileshb
Posts: 1
Joined: Mon Oct 15, 2012 6:24 am

Configure nagios alerts for SMS and mail differently

Post by nileshb »

Hi,
I have nagios configured for giving alerts. Currently all specified alerts trigger SMS + Mails.
I wanted to configure my alerts differentially e.g. some checks should give only email alerts in case of WARNING and when it becomes CRITICAL it should send it by SMS (had integration with SMS service).
Can anybody point me to solution, any help in this regard is appreciated.

regards
nilesh
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Configure nagios alerts for SMS and mail differently

Post by jsmurphy »

This is a really common question but unfortunately there is no built in way to email if warning and SMS if critical. If you really need to do this, you could write a wrapper script that nagios executes which will make that decision.
Locked