Trying to build a monitor for lower than usual web traffic

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
gsl_ops_practice
Posts: 151
Joined: Thu Apr 09, 2015 9:14 pm

Trying to build a monitor for lower than usual web traffic

Post by gsl_ops_practice »

Hello,

Checking all the previous posts I wasn't able to get a clear answer - hoping this forum is the right place to ask.

I have access logs from multiple apache servers going into NagiosLog server. I need to create a check in NagiosXI that will throw an alarm if the number of web access requests is lower than a specific threshold. in my test NagiosXI check I tried setting a lower value in the critical value than warning, but that did not produce the desired result.

Your help in setting this up would be appreciated.

Thank you,
Alex
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Trying to build a monitor for lower than usual web traff

Post by eloyd »

NLS alerting uses standard Nagios thresholds. You can read about them at https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT I'm sure some combination will let you look for events and then alert if you have fewer than X per unit time.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Trying to build a monitor for lower than usual web traff

Post by eloyd »

More specifically, let's say you normally get 1000 events per hour. You want to be in a warning state if you get less than 500 and a critical state if you get less than 200.

Your NLS alert would then be as follows (note that the thresholds are 500: and 200:, including the colons):
screen.jpg
You do not have the required permissions to view the files attached to this post.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Trying to build a monitor for lower than usual web traff

Post by tmcdonald »

Jeez @eloyd, beating me to the punch like that :)
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Trying to build a monitor for lower than usual web traff

Post by eloyd »

Only 160 days left to get #3.... :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
gsl_ops_practice
Posts: 151
Joined: Thu Apr 09, 2015 9:14 pm

Re: Trying to build a monitor for lower than usual web traff

Post by gsl_ops_practice »

Folks, thanks for that, I can now set up an alarm in NagiosLog server.

I suppose I should then raise another thread in the NagiosXI forum on how to set up the same kind of alarm there? All of our application/infrastructure monitoring goes through NagiosXI, we have at last 20 queries being on from NagiosXI on NagiosLog and then parsing the results and generating corresponding events.

Thanks,
Alex
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Trying to build a monitor for lower than usual web traff

Post by eloyd »

Click on Alert, then select Nagios Servers (NRDP). Then use your NRDP token from your Nagios XI NRDP server (dig around in XI and you'll find it) and then NLS can send alerts through XI.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Trying to build a monitor for lower than usual web traff

Post by tmcdonald »

gsl_ops_practice wrote:I suppose I should then raise another thread in the NagiosXI forum on how to set up the same kind of alarm there?
That would be much appreciated :)

We generally like to keep posts for different products/issue separated.
Former Nagios employee
Locked