How to handle IP ban in Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chitrangada
Posts: 32
Joined: Sat Aug 10, 2013 8:20 am

How to handle IP ban in Nagios

Post by chitrangada »

Hi

My IP is getting banned from a website. I am using check_http plugin to monitor host and enabled verbose. E.g.
cmd: /usr/lib/nagios/plugins/check_http -H $HOSTNAME$ -p 80 -v
o/p: What happened?
The owner of this website (<host_name>) has banned your IP address ().

So could you please tell about handling IP ban in Nagios?

Thanks for hearing me.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to handle IP ban in Nagios

Post by tmcdonald »

It could be that you set your check interval low (1 minute) and that tripped their IP banning software. Or even if you left it at the default 5 minutes, they could have their software tuned to ban that as well. If it is your own website I would check with whoever manages it or the hosting company. If it is another website you can try talking to the owner and see if they will set up an exception for you.
Former Nagios employee
chitrangada
Posts: 32
Joined: Sat Aug 10, 2013 8:20 am

Re: How to handle IP ban in Nagios

Post by chitrangada »

Okay, Thanks for your reply.

I had set it to 1min now thinking to reset it to 5mins.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to handle IP ban in Nagios

Post by abrist »

Yeah, one minute may be too low, try 5 or 10 minutes.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to handle IP ban in Nagios

Post by tmcdonald »

I will leave this thread open until we hear back from you on the success/failure of this setting, otherwise in a few days I'll close this thread.
Former Nagios employee
chitrangada
Posts: 32
Joined: Sat Aug 10, 2013 8:20 am

Re: How to handle IP ban in Nagios

Post by chitrangada »

Thanks for hearing my word.

Btw, I tried with following values but still my IP is getting banned.
1. check_interval - 20mins
2. retry_interval - 4mins
3. max_check_attempts - 5
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to handle IP ban in Nagios

Post by tmcdonald »

In that case you might need to check with the webmaster, since you are probably still banned.
Former Nagios employee
Locked