Hello,
            
    Here is a section of the current mon.cf that I use, in the mail.alert script, the "Secs until next alert:" doesn't display anything, I haven't made any changes to the default scripts included in mon, and the field where in the the Secs until next alert: should display the time, just displays a blank field.
   
 watch mcr1_229_block
    service fping
        interval 1h
        monitor fping.monitor
        description IP status for mcr1 block 229
        period wd {Mon-Sun}
            alertevery 1h
            alert mail.alert [EMAIL PROTECTED], [EMAIL PROTECTED]
            alert file.alert /var/lib/mon/log.d/mcr1logs
 
Here is a section of the default mail.alert script
 
print MAIL wrap ("", "", "IP Status        : $summary"), "\n";
 
print MAIL <<EOF;
 
Group                 : $opt_g
Service               : $opt_s
Time noticed          : $t
Secs until next alert : $opt_l
 
EOF
 
It seems that the $opt_l variable doesn't contain anything, since no txt is displayed in the email sent by the mail.alert after the Secs until next alert line. Are there any changes that need to be made in the mon.cf that I use or in the default mail.alert script?
 
 
Thanks
 
 
 
 
 
   

Reply via email to