Page 1 of 2
nagiosxi apache response time configuration
Posted: Tue Jul 28, 2020 6:18 pm
by katieKatiePants
hi bandana drive residents!
i'm interested in capturing the apache response times for the nagiosxi server. a) is this a stat already being generated somewhere/is there an obvious solution that i'm oblivious to? b) if not, is this the sort of thing that can be done by tweaking the LogFormat configuration on le server?
thanks!!!
v/r,
katie
Re: nagiosxi apache response time configuration
Posted: Wed Jul 29, 2020 2:20 pm
by scottwilkerson
If you run the Website Monitoring Wizard, by default one of the metrics it will record is the response time for the page.
Re: nagiosxi apache response time configuration
Posted: Wed Jul 29, 2020 2:42 pm
by katieKatiePants
but not sure that would help me capture the nagiosxi server's response times???
Re: nagiosxi apache response time configuration
Posted: Wed Jul 29, 2020 2:48 pm
by scottwilkerson
If you run the Website Monitoring Wizard and use the nagiosxi servers address to monitor it would monitor the local server (nagios xi)
Re: nagiosxi apache response time configuration
Posted: Thu Jul 30, 2020 11:56 am
by katieKatiePants
@scottwilkerson ... i am so sorry for being super pedantic. i'm trying to use the apache response time as a proxy for the nagios application performance. my understanding is that the website monitoring wizard will go ask the website being monitored for a thing and then use that as the response time reported. what i'm wanting to capture is the response times that apache-as-a-part-of-the-application is producing as the application operates (mostly) happily 24x7x365 -- which seems like a different use case from "go poke apache and see how quickly it responds" (<- a totally awesome use case ... just different) ...
here's a haiku s.t. you don't feel pooped on by my confusion/needling:
oh nagios check
give me data always
spirographs are fun
Re: nagiosxi apache response time configuration
Posted: Thu Jul 30, 2020 4:36 pm
by scottwilkerson
I unfortunately do not know how to achieve the goal you are after. If you have a way you get this information sat from the command line you can always create a custom plugin for Nagios XI to use
Re: nagiosxi apache response time configuration
Posted: Thu Jul 30, 2020 6:02 pm
by katieKatiePants
so the thinking was to modify the apache log format to include the response time (by adding %D to the configuration a la
http://httpd.apache.org/docs/current/mo ... onfig.html) and then build a custom plugin to go read the log file entries and grab the response time reported in the log file.
so the question becomes, can i make changes to the apache log configuration w/o generally causing a rift in the space-nagios continuum or would this constitute breaking the application?
Re: nagiosxi apache response time configuration
Posted: Fri Jul 31, 2020 12:39 pm
by lmiltchev
Customizing the apache log format shouldn't affect Nagios XI's functionality. To be on a safe side though, make a note of what you changed, so that you could revert the change if needed.
It is a good idea to ALWAYS try your mods in a test environment, before applying them in production. This is why, we offer 3 IPs for each Nagios XI license.
https://support.nagios.com/kb/article/n ... s-145.html
Re: nagiosxi apache response time configuration
Posted: Fri Jul 31, 2020 2:38 pm
by katieKatiePants
so i'll go play with the configs on my dev env't ...

Re: nagiosxi apache response time configuration
Posted: Fri Jul 31, 2020 2:43 pm
by lmiltchev
Sure, let us know how it went.