Skip to content

Commit

Permalink
Merge pull request #120 from adrianlzt/bug/contact_macros_icinga
Browse files Browse the repository at this point in the history
Add contact data to macros
  • Loading branch information
sni committed Jul 10, 2017
2 parents 269e536 + b1579ad commit 2c13e7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neb_module/mod_gearman.c
Expand Up @@ -644,6 +644,9 @@ static int handle_notifications( int event_type, void *data ) {
if(svc != NULL)
grab_service_macros_r(&mac, svc);

/* get contact macros */
grab_contact_macros_r(&mac, ds->contact_ptr);

/* get the raw command line */
temp_command = find_command(ds->command_name);
get_raw_command_line_r(&mac, temp_command, ds->command_name, &raw_command, macro_options);
Expand Down Expand Up @@ -883,6 +886,7 @@ static int handle_notifications( int event_type, void *data ) {
#if defined(USENAGIOS3)
clear_summary_macros_r(&mac);
clear_argv_macros_r(&mac);
clear_contact_macros_r(&mac);
clear_host_macros_r(&mac);
clear_service_macros_r(&mac);
#endif
Expand Down

0 comments on commit 2c13e7d

Please sign in to comment.