Re: plugins google analytics
Posted: Fri Feb 26, 2016 11:40 am
Have you looked into using the negate plugin that nozlaf mentioned earlier? https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
define command {
command_name negate_check
command_line $USER1$/negate $USER1$/ga_realtime.py -D /etc/nagios3/google_auth_data -V $ARG1$ -w $ARG2$ -c $ARG3$
}
Code: Select all
define service{
use service
host_name localhost
service_description google analitycs
check_command negate_check!MY_ID!80!90!Code: Select all
[b][null)[/b]Code: Select all
ls -l ga_realtime.py
I was under the impression that's what you were seeing. Please run ls -l ga_realtime.py and post the result.brandon wrote: and I getCode: Select all
[b][null)[/b]
Code: Select all
-rwxr-xr-x 1 root root 2419 02-23 08:58 ga_realtime.pyCode: Select all
-rwxrwxrwx 1 nagios nagios 2419 02-23 08:58 ga_realtime.py
-rwxrwxrwx 1 nagios nagios 38152 2012-01-17 negate
Code: Select all
(null)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
./ga_realtime.py -D /etc/nagios3/google_auth_data -V MY_ID -w 10 -c 15