Page 1 of 1

Domain expiration

Posted: Thu Dec 17, 2020 9:37 am
by kalyanpabolu
Hello Team,

We are monitoring Domain expiration in Nagios XI. For one of the domains that we are monitoring, we noticed that Nagios sent a wrong alert.
The domain will expire on 16th Jan 2022 but Nagios sent alert saying it will expire on 16 Jan 2021.

CRITICAL - Domain 'wojooh-beauty.com' will expire in 30 days (2021-01-16T07:54:16Z).

Could you please help us to understand this?

Re: Domain expiration

Posted: Fri Dec 18, 2020 11:00 am
by benjaminsmith
HI @kalyanpabolu,

Did you use the Configuration Wizard to set up this check? If so, that plugin does have the option to use another whois server besides the default, if you're getting inaccurate results. Do you get correct results when you run the following command?

Code: Select all

whois <websitedomain> | grep -i 'expir\|renew\|paid-till'
If not, I would suggest modifying the check command to use the whois server provided by your domain registration company.

Example:

Code: Select all

 ./check_domain.php -d <domai-name> -c 30 - s <whois server>
If the issue persists, please the issue, please post the full check command to the thread. Thanks, Benjamin

Reference
Nagios XI - How To Test Check Commands From The Command-line

Re: Domain expiration

Posted: Sun Dec 20, 2020 12:42 am
by kalyanpabolu
Hello Team,

Thanks for your help!!

Actually, in the next check, Nagios fetched correct information. And now its giving proper date. The domain was renewed before itself. I am unable to understand why Nagios took time to fetch the correct information.

Could you please help us to understand this?

Re: Domain expiration

Posted: Mon Dec 21, 2020 11:19 am
by benjaminsmith
HI @ kalyanpabolu,

When you make updates to the DNS records, it will take some time to propagate across the networks. I suspect that is what may have attributed to the delayed results. You could pull a state history report or search through the nagios.log for more details if you want to look into it further.

--Benjamin

Re: Domain expiration

Posted: Tue Dec 22, 2020 4:08 am
by kalyanpabolu
Thanks for your reply, we will check the same.

Re: Domain expiration

Posted: Tue Dec 22, 2020 1:39 pm
by benjaminsmith
HI,
Thanks for your reply, we will check the same.
Sounds good.

-Benjamin

Re: Domain expiration

Posted: Thu Dec 24, 2020 4:17 am
by kalyanpabolu
Thanks for your help!!

We are good to close this thread :)