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.
Extend the check_ncpa.py beyond 60 seconds on a single check
Re: Extend the check_ncpa.py beyond 60 seconds on a single c
Sorry, the command I posted didn't include the timeout. Command should have read:
./check_ncpa.py -HOSTNAME -t "TOKEN" -P 5693 -T 120 -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"
./check_ncpa.py -HOSTNAME -t "TOKEN" -P 5693 -T 120 -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"
Re: Extend the check_ncpa.py beyond 60 seconds on a single c
The Service Check Timeout value set in Nagios core will act as a maximum, and override the argument passed through the script. However, you may not want to change that value, as it will alter it globally for your entire Nagios instance.
See the following link for more documentation on setting options in Nagios core.
https://assets.nagios.com/downloads/nag ... gmain.html
It is a little odd that you aren't getting any output from that command. You may want to try running a simpler check command from that host locally, just to make sure that something else isn't awry.
See the following link for more documentation on setting options in Nagios core.
https://assets.nagios.com/downloads/nag ... gmain.html
It is a little odd that you aren't getting any output from that command. You may want to try running a simpler check command from that host locally, just to make sure that something else isn't awry.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!