When using check_smtp, I am getting this Message:
Return code of 127 is out of bounds - plugin may be missing
When I trigger the check from cli, I get this:
root@mail-2018:~# /usr/lib/nagios/plugins/check_smtp -H localhost --port 25
SMTP OK - 0,043 sec. response time|time=0,042863s;;;0,000000
So I think the Plugin is not missing.
What am I doing wrong?
Thanks,
Steffi
Code: Select all
[define service {
host_name localhost
service_description smtpd-25
check_period 24x7
check_command check_smtpd_25!localhost|25
contact_groups admins
notification_period 24x7
initial_state o
check_interval 5.000000
retry_interval 1.000000
max_check_attempts 4
is_volatile 0
parallelize_check 1
active_checks_enabled 1
passive_checks_enabled 1
obsess_over_service 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options o,w,u,c
freshness_threshold 0
check_freshness 0
notification_options u,w,c,r
notifications_enabled 1
notification_interval 0.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
failure_prediction_enabled 1
retain_status_information 1
retain_nonstatus_information 1
}/code]
[code]define command{
command_name check_smtpd_25
command_line $USER1$/check_smtp -H $ARG1$ --port $ARG2$
}