performance.navigation API and Nagios (real world stats)?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

performance.navigation API and Nagios (real world stats)?

Post by disrael »

Has anyone used this API to track real user load time of a website? Also has anyone integrated this with Nagios. If so is there a tool out there or was everything coded in house?

Kind Regards,

Doron
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: performance.navigation API and Nagios (real world stats)

Post by sreinhardt »

I do not see any integration out there at the moment, doesn't mean I didn't miss it in my searches. Just to clarify, you are looking to use a javascript api to check the current load speed of a page?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: performance.navigation API and Nagios (real world stats)

Post by abrist »

I presume load as in cpu usage, not page load time?
The real problem with monitoring a web users load is that it may not be easy to track for most web applications. Many times httpd will just fork or agnostically serve up the pages. As most everything is run as the apache user serverside, you would have to come up with a clever solution, or implement unix system users for each of your web ui users, and then subsequently change the web code to use each user's system credentials fro operations. This could be viewed as insecure to do so. You may be able to track pids, but it will still only be part of the picture.

Maybe someone out there has a suggestion more elegant or novel.

EDIT: There are some available libraries for apache, like apache::session (cpan), but would require a rewrite of the XI code to implement. . .
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.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: performance.navigation API and Nagios (real world stats)

Post by disrael »

I was referring the time it takes to load a page for a user: http://www.html5rocks.com/en/tutorials/ ... ce/basics/
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: performance.navigation API and Nagios (real world stats)

Post by sreinhardt »

If I am not mistaken, wouldn't you need an external system doing the requests to your server, then somehow forwarding on the results to your nagios server? After reading the article, it seems that it modifies dom objects local to the end-user, but doesn't really send them back. I suppose it would be possible to use JS to push this data back to the server and have nagios somehow collect it. Instead were you thinking of running this on the nagios server via lynx or something to collect the page and then evaluate the dom objects?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: performance.navigation API and Nagios (real world stats)

Post by disrael »

What I was thinking of doing is using it similar to how Google Analitics uses it. The app owners puts a bit of javascript in the header, which runs a remote javascript on the nagios box. The Nagios system then collects the data: url, file, timeladed, ip, and etc. then sends it to a file or DB for nagios to access. We use something similar right now that requires javascript put into the header and footer for every application, though this seems like an easier way of doing it.

-Doron
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: performance.navigation API and Nagios (real world stats)

Post by scottwilkerson »

Doron,

I haven't heard of anyone using it. It would be a little tricky, but you could write some javascript that sends the results back to Nagios XI via JSONP to the NRDP API.

The down side of this would be that you NRDP API key would be exposed if you aren't careful, so you may need to add a backend layer for security.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked