plugins google analytics
plugins google analytics
I have a question about the plugins : Google Analytics Realtime
Where I have Install the required python modules on developer machine? Can help me?
I used this tutorial:
https://github.com/pfy/ga_realtime_nagios
What that's pip?
someone install this plugin?
Where I have Install the required python modules on developer machine? Can help me?
I used this tutorial:
https://github.com/pfy/ga_realtime_nagios
What that's pip?
someone install this plugin?
Re: plugins google analytics
PIP is similar to YUM for python.
To install it, you'll need to run yum install python-pip -y
Once that's done, you should be able to follow the instructions.
To install it, you'll need to run yum install python-pip -y
Once that's done, you should be able to follow the instructions.
Former Nagios Employee
Re: plugins google analytics
OK, but where can I find python auth.py ?
This should generate a file called: analytics.dat
but I can not find anywhere analitycs.dat
someone install this plugin?
This should generate a file called: analytics.dat
but I can not find anywhere analitycs.dat
someone install this plugin?
Re: plugins google analytics
The auth.py file is right on the GitHub page you linked - https://github.com/pfy/ga_realtime_nagi ... er/auth.py
Former Nagios Employee
Re: plugins google analytics
how to convert a plugin that alerts warning and criticals showed under the limit?
If I set -w 10 -c 5 to send alerts
If I set -w 10 -c 5 to send alerts
Re: plugins google analytics
not exactly sure what you are trying to achieve perhaps give a little more detail is the check resulting in say 7 but you want that to show warning when its reporting critical because 7 is above the critical threshold which you set? if so perhaps the negate plugin will achieve what you want https://assets.nagios.com/downloads/nag ... Plugin.pdfbrandon wrote:how to convert a plugin that alerts warning and criticals showed under the limit?
If I set -w 10 -c 5 to send alerts
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
Re: plugins google analytics
Can you please show us an example?brandon wrote:how to convert a plugin that alerts warning and criticals showed under the limit?
If I set -w 10 -c 5 to send alerts
Former Nagios Employee
Re: plugins google analytics
OK
Now plugin displays an alert if too many people online, example:
and display:
and I want the opposite, so warning if less than 80 people online
if more than 80 people online, then the alert is OK
Now plugin displays an alert if too many people online, example:
Code: Select all
define service{
use service
host_name localhost
service_description google analitycs
check_command ga_realtime!MY_ID!80!90!
Code: Select all
REALTIMEVISITORS WARNING - activeVisitors is 85 (outside range 0:80) if more than 80 people online, then the alert is OK
Re: plugins google analytics
Could you please show us the command definition for ga_realtime? If you show us that file it will help us continue the troubleshooting process. I believe that the resolution will be changing some arguments around - this is a great reference guide for warning/critical syntax: https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Re: plugins google analytics
The command definition for ga_realtime:
I want alerts as for check_disk or as space is limited, so warning if less than 80 people online
Code: Select all
define command{
command_name ga_realtime
command_line $USER1$/ga_realtime.py -D /etc/nagios3/google_auth_data -V $ARG1$ -w $ARG2$ -c $ARG3$
}