Nagios Contact not triggering the custom script
Posted: Thu Nov 14, 2019 7:41 am
HI
My intention is to have a script triggered in case of any NOTIFICATION . For that :
1. I have created a CONTACT ( not the user ) , in nagios.
2. Created a custom script and added it under _commands
3. I mapped that script/command under CONTACT's "Manage Host and Service Notofocation Command"
4. Time period is 24x7
If I send cutom notifcation , my script gets executed and everything works fine . However for a normal failure it never gets executed . I do not see it under Notification dashboard as well .
If I create USER ( which internally creates CONTACT as well ) , then everything works fine even for normal failure .
However I do not want to create a USER , I only want to create CONTACT . Why is that behavior ??
My intention is to have a script triggered in case of any NOTIFICATION . For that :
1. I have created a CONTACT ( not the user ) , in nagios.
2. Created a custom script and added it under _commands
3. I mapped that script/command under CONTACT's "Manage Host and Service Notofocation Command"
4. Time period is 24x7
If I send cutom notifcation , my script gets executed and everything works fine . However for a normal failure it never gets executed . I do not see it under Notification dashboard as well .
If I create USER ( which internally creates CONTACT as well ) , then everything works fine even for normal failure .
However I do not want to create a USER , I only want to create CONTACT . Why is that behavior ??