Extend the check_ncpa.py beyond 60 seconds on a single check
Posted: Tue Mar 31, 2020 10:36 am
Hello all,
I'm trying to run a check via check_ncpa.py, but the check is timing out after 60 seconds, which I understand is the default. Via command line, I've tried adding -T 120 to the check, but after 60 seconds, the check just stops, with no response. Is there a ways to extend a timeout on a single check, beyond the standard that is set in the configs?
Here is what I am trying to run:
./check_ncpa.py -HOSTNAME -t "TOKEN" -P 5693 -M "plugins/check_email_delivery" -a "--mailto EMAILADDRESS --mailfrom EMAILADDRESS --body 'BODY' --smtp-server SMTPSERVER --smtp-username 'SMTPUSERNAME' --smtp-password 'PASSWORD' --imap-server IMAPSERVER --username 'EMAILADDRESS' --password 'PASSWORD' --wait 60 --smtptls --imapssl"
I know that you can run check_email_delivery from the server itself, but there are SSL errors on OEL 7, so I'm using an older server as a temporary workaround while we look into alternative ways to check email delivery.
Thanks in advance.
I'm trying to run a check via check_ncpa.py, but the check is timing out after 60 seconds, which I understand is the default. Via command line, I've tried adding -T 120 to the check, but after 60 seconds, the check just stops, with no response. Is there a ways to extend a timeout on a single check, beyond the standard that is set in the configs?
Here is what I am trying to run:
./check_ncpa.py -HOSTNAME -t "TOKEN" -P 5693 -M "plugins/check_email_delivery" -a "--mailto EMAILADDRESS --mailfrom EMAILADDRESS --body 'BODY' --smtp-server SMTPSERVER --smtp-username 'SMTPUSERNAME' --smtp-password 'PASSWORD' --imap-server IMAPSERVER --username 'EMAILADDRESS' --password 'PASSWORD' --wait 60 --smtptls --imapssl"
I know that you can run check_email_delivery from the server itself, but there are SSL errors on OEL 7, so I'm using an older server as a temporary workaround while we look into alternative ways to check email delivery.
Thanks in advance.