Page 1 of 1
Trying to build a monitor for lower than usual web traffic
Posted: Tue Apr 05, 2016 10:31 am
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
Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 11:11 am
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.
Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 11:17 am
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
Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 11:29 am
by tmcdonald
Jeez
@eloyd, beating me to the punch like that :)
Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 11:32 am
by eloyd
Only 160 days left to get #3....

Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 12:30 pm
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
Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 12:39 pm
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.
Re: Trying to build a monitor for lower than usual web traff
Posted: Tue Apr 05, 2016 2:31 pm
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.