I am trying to get munin to notify me via email. I have configured munin and it reports critical and warning values but no alerts are being sent neither is any script being called.
Can you please help me out with this?
I have included part of the munin.conf below
# Drop
[email protected] and
[email protected] an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification"
[email protected]\
contact.prashanth.command echo "Munin notification" | sendmail -t
[email protected]
contact.prashanth.always_send warning critical
contact.root.command echo "Munin notification" | sendmail -t
[email protected]
contact.root.always_send warning critical
contact.pipevia.command | /home/prashanth/script.sh /home/prashanth/script.sh
None of this works. What am i missing here and why are emails not being sent?
Thanks
in advance.
here is the munin-limits.log
2011/09/26 14:58:12 Opened log file
2011/09/26 14:58:12 [INFO] Starting munin-limits, getting
lock /var/run/munin/munin-limits.
lock
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 722.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 725.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 740.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 754.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 759.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $text
in length at /usr/share/perl5/Munin/Master/LimitsOld.pm line 774.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $res[3]
in join or string at /usr/share/perl5/Munin/Master/LimitsOld.pm line 777.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 722.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 725.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 740.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 754.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 759.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $text
in length at /usr/share/perl5/Munin/Master/LimitsOld.pm line 774.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $res[15]
in join or string at /usr/share/perl5/Munin/Master/LimitsOld.pm line 777.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 722.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 725.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 740.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 754.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 759.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $text
in length at /usr/share/perl5/Munin/Master/LimitsOld.pm line 774.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $res[1]
in join or string at /usr/share/perl5/Munin/Master/LimitsOld.pm line 777.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 722.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 725.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 740.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 754.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $a[0]
in pattern match (m//) at /usr/share/perl5/Munin/Master/LimitsOld.pm line 759.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $text
in length at /usr/share/perl5/Munin/Master/LimitsOld.pm line 774.
2011/09/26 14:58:12 [PERL WARNING] Use of uninitialized value $res[1]
in join or string at /usr/share/perl5/Munin/Master/LimitsOld.pm line 777.
2011/09/26 14:58:12 Baz?
2011/09/26 14:58:12 [INFO] munin-limits finished (0.02 sec)
2011/09/26 14:58:12 Command "prashanth" stderr: Munin notification - this is a test mail from the user prashanth | sendmail -t
[email protected]