Hello,
I have a check defined like below:
“linux-ntp-offsets”: {
“handle”: true,
“handler”: “flapjack”,
“standalone”: false,
“interval”: 60,
“refresh”: 3600,
“dependencies”: [
“keepalive”
],
“command”: “/etc/sensu/plugins/linux/check-ntp.rb -w 1000 -c 10000”,
“occurrences”: 2,
“subscribers”: [
“linuxvm”
],
“aggregate”: false
}
And on the uchiwa console it shows:
LINUX-NTP-OFFSETS
standalone true
history 0, 0, 0, 0, 0, 0, 0, 0, 0
last_execution 2016-02-17 19:01:20
outputCheck NTP OK
the log shows:
{“timestamp”:“2016-02-17T19:03:20.698782+0700”,“level”:“info”,“message”:“received check request”,“check”:{“name”:“linux-ntp-offsets”,“issued”:1455710600,“command”:"/etc/sensu/plugins/linux/check-ntp.rb -w 1000 -c 10000"}}
{“timestamp”:“2016-02-17T19:03:20.808477+0700”,“level”:“info”,“message”:“publishing check result”,“payload”:{“client”:“xxxx”,“check”:{“name”:“linux-ntp-offsets”,“issued”:1455710600,“command”:"/etc/sensu/plugins/linux/check-ntp.rb -w 1000 -c 10000",“executed”:1455710600,“duration”:0.109,“output”:“CheckNTP OK\n”,“status”:0}}}
Could be just a reporting bug.
Can you confirm that on the "xxxx" client there is *no* local copy of
the linux-ntp-offests" defined? (as local definitions of the check on
that client will override the requests from the server)
···
On Wed, Feb 17, 2016 at 4:05 AM, chris85lang via sensu-users <sensu-users@googlegroups.com> wrote:
Hello,
I have a check defined like below:
"linux-ntp-offsets": {
"handle": true,
"handler": "flapjack",
"standalone": false,
"interval": 60,
"refresh": 3600,
"dependencies": [
"keepalive"
],
"command": "/etc/sensu/plugins/linux/check-ntp.rb -w 1000 -c 10000",
"occurrences": 2,
"subscribers": [
"linuxvm"
],
"aggregate": false
}
And on the uchiwa console it shows:
LINUX-NTP-OFFSETS
standalone true
history 0, 0, 0, 0, 0, 0, 0, 0, 0
last_execution 2016-02-17 19:01:20
outputCheck NTP OK
the log shows:
{"timestamp":"2016-02-17T19:03:20.698782+0700","level":"info","message":"received
check
request","check":{"name":"linux-ntp-offsets","issued":1455710600,"command":"/etc/sensu/plugins/linux/check-ntp.rb
-w 1000 -c 10000"}}
{"timestamp":"2016-02-17T19:03:20.808477+0700","level":"info","message":"publishing
check
result","payload":{"client":"xxxx","check":{"name":"linux-ntp-offsets","issued":1455710600,"command":"/etc/sensu/plugins/linux/check-ntp.rb
-w 1000 -c 10000","executed":1455710600,"duration":0.109,"output":"CheckNTP
OK\n","status":0}}}