Build precise queries to find exactly what you need
Press ESC to close
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!
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!