plugins google analytics

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: plugins google analytics

Post by rkennedy »

brandon wrote:I think that the topic is not moving forward, because I wrote it before:

Code: Select all

define service{
    use                             service
    host_name                       localhost
    service_description             google analitycs
    check_command                   ga_realtime!MY_ID!80!90!
check the CLI:

Code: Select all

./ga_realtime.py -D /etc/nagios3/google_auth_data -V  MY_ID -w 10 -c 15
Maybe someone knows how to change this plugin?
The thing is, this plugin will need to be modified to get the results that you'd like. I do see parts of it previously, but I don't see a post with the full input / output of this command.

We did not make this plugin, and I do not have an analytics account to test with. At this point you'll need to modify the python script to work to your needs, or the other alternative is writing a wrapper script to change the output of the original script. That's why I need the full information in order to help you.

When you run ./ga_realtime.py -D /etc/nagios3/google_auth_data -V MY_ID -w 10 -c 15 - what is the output you are seeing? Please run it with the correct ID (feel free to change it out before posting back here).
Former Nagios Employee
Locked