Hi, thanks for your help guys. Good now.
To fix the last thing that was wrong these yum modules needed to be installed (thx mweber!) and plugin versions updated.
# yum install -y perl-Mail-IMAPClient perl-Email-Simple perl-IO-Socket-SSL perl-Text-Template perl- Date-Manip
Plugin versions tested:
1. check_smtp_send = 0.7.2
2. check_imap_receive = 0.7.5
3. check_email_delivery = 0.7.1
# ./check_email_delivery --plugin "/usr/local/nagios/libexec/check_smtp_send -H smpthost --mailto [email protected] --mailfrom noreply-ngs.com --header 'Subject: Nagios Test %TOKEN12345%.'" --plugin "/usr/local/nagios/libexec/check_imap_receive -H imaphost -p 143 -U Ngs -P 'pmon' --nodelete -s SUBJECT -s 'Nagios Test %TOKEN12345%.'"
EMAIL DELIVERY OK - 6 seconds, 0 delay | delay=0s;95;300;0 elapsed=6s
check_email_delivery plugin issue probably syntax
Re: check_email_delivery plugin issue probably syntax
Hi, thanks for your help guys. Good now.
To fix the last thing that was wrong these yum modules needed to be installed (thx mweber!) and plugin versions updated.
# yum install -y perl-Mail-IMAPClient perl-Email-Simple perl-IO-Socket-SSL perl-Text-Template perl- Date-Manip
Plugin versions tested:
1. check_smtp_send = 0.7.2
2. check_imap_receive = 0.7.5
3. check_email_delivery = 0.7.1
# ./check_email_delivery --plugin "/usr/local/nagios/libexec/check_smtp_send -H smpthost --mailto [email protected] --mailfrom noreply-ngs.com --header 'Subject: Nagios Test %TOKEN12345%.'" --plugin "/usr/local/nagios/libexec/check_imap_receive -H imaphost -p 143 -U Ngs -P 'pmon' --nodelete -s SUBJECT -s 'Nagios Test %TOKEN12345%.'"
EMAIL DELIVERY OK - 6 seconds, 0 delay | delay=0s;95;300;0 elapsed=6s
To fix the last thing that was wrong these yum modules needed to be installed (thx mweber!) and plugin versions updated.
# yum install -y perl-Mail-IMAPClient perl-Email-Simple perl-IO-Socket-SSL perl-Text-Template perl- Date-Manip
Plugin versions tested:
1. check_smtp_send = 0.7.2
2. check_imap_receive = 0.7.5
3. check_email_delivery = 0.7.1
# ./check_email_delivery --plugin "/usr/local/nagios/libexec/check_smtp_send -H smpthost --mailto [email protected] --mailfrom noreply-ngs.com --header 'Subject: Nagios Test %TOKEN12345%.'" --plugin "/usr/local/nagios/libexec/check_imap_receive -H imaphost -p 143 -U Ngs -P 'pmon' --nodelete -s SUBJECT -s 'Nagios Test %TOKEN12345%.'"
EMAIL DELIVERY OK - 6 seconds, 0 delay | delay=0s;95;300;0 elapsed=6s