Build precise queries to find exactly what you need
Press ESC to close
@nihvel
Favorites0
Views
Projects0
I only wanted to give to the standard Nagios email template, the Bold and Italic formatting. Then I saw this. Less than 2 minutes to setup everything and worked at first try! Great job ;) Only things I want to note: 1. I use Nagios to read the log of lots of scripts of mine, I use performance data here because I can have more details BUT for these group of services I do not process them (process_perfdata 0). I find it useful to have them in the email, so I added: "$SERVICEPERFDATA$" at the end of notify-service-by-email. Modified the php: $extra_info= array_shift($argv); /*19*/ and added this row just below "Additional info": $body .= "Extra Info:$extra_inforn"; 2. I changed shebang to #!/usr/bin/env php not really a reason here, if not that I do not have /etc/php.ini but /etc/php5/apache2/php.ini /etc/php5/cli/php.ini What's important is that it works very very well!
Reviewed 9 years ago