You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using sensu-puppet with client/server configuration. If the client is started from the command line, which should update 1 check, it is working correctly:
root@v0402:/opt/puppetlabs/bin# /opt/puppetlabs/bin/puppet agent --onetime --no-daemonize --verbose
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for v0402.zg-2.softxs.ch
Info: Applying configuration version '1513704250'
Notice: /Stage[main]/Main/Node[v0402.zg-2.softxs.ch]/Setup_sensu_check[http]/Setup_sensu_check::One_check[poyry.softxs.ch-umaoya]/Sensu::Check[http-poyry.softxs.ch-umaoya]/Sensu_check[http-poyry.softxs.ch-umaoya]/command: command changed '/opt/sensu/embedded/bin/check-http.rb -t 60 -u http://poyry.softxs.ch/umaoya/login?audit-log=false' to '/opt/sensu/embedded/bin/check-http.rb -t 60 -u http://poyry.softxs.ch/umaoya/login?audit-log=false&a=b'
Info: /Stage[main]/Main/Node[v0402.zg-2.softxs.ch]/Setup_sensu_check[http]/Setup_sensu_check::One_check[poyry.softxs.ch-umaoya]/Sensu::Check[http-poyry.softxs.ch-umaoya]/Sensu_check[http-poyry.softxs.ch-umaoya]: Scheduling refresh of Service[sensu-client]
Info: /Stage[main]/Main/Node[v0402.zg-2.softxs.ch]/Setup_sensu_check[http]/Setup_sensu_check::One_check[poyry.softxs.ch-umaoya]/Sensu::Check[http-poyry.softxs.ch-umaoya]/Sensu_check[http-poyry.softxs.ch-umaoya]: Scheduling refresh of Service[sensu-server]
Notice: /Stage[main]/Sensu::Client::Service/Service[sensu-client]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Sensu::Server::Service/Service[sensu-server]: Triggered 'refresh' from 1 events
Notice: Applied catalog in 7.99 seconds
However it the same operation is started from crontab, it doesn't work. There are a lot of messages like Dependency Package[sensu-plugin] has failures: true:
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for v0402.zg-2.softxs.ch
Info: Applying configuration version '1513704135'
Notice: /Stage[main]/Sensu::Rabbitmq::Config/File[/etc/sensu/ssl]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Rabbitmq::Config/File[/etc/sensu/ssl/cert.pem]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Rabbitmq::Config/File[/etc/sensu/ssl/key.pem]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Rabbitmq::Config/File[/etc/sensu/conf.d/rabbitmq.json]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Rabbitmq::Config/Sensu_rabbitmq_config[v0402.zg-2.softxs.ch]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Api::Config/File[/etc/sensu/conf.d/api.json]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Api::Config/Sensu_api_config[v0402.zg-2.softxs.ch]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Redis::Config/File[/etc/sensu/conf.d/redis.json]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Redis::Config/Sensu_redis_config[v0402.zg-2.softxs.ch]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Client::Config/File[/etc/sensu/conf.d/client.json]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Client::Config/Sensu_client_config[v0402.zg-2.softxs.ch]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Main/Node[v0402.zg-2.softxs.ch]/Setup_sensu_check[http]/Setup_sensu_check::One_check[poyry.softxs.ch-umaoya]/Sensu::Check[http-poyry.softxs.ch-umaoya]/Sensu_check[http-poyry.softxs.ch-umaoya]/command: command changed '/opt/sensu/embedded/bin/check-http.rb -t 60 -u http://poyry.softxs.ch/umaoya/login?audit-log=false&a=b' to '/opt/sensu/embedded/bin/check-http.rb -t 60 -u http://poyry.softxs.ch/umaoya/login?audit-log=false'
Info: /Stage[main]/Main/Node[v0402.zg-2.softxs.ch]/Setup_sensu_check[http]/Setup_sensu_check::One_check[poyry.softxs.ch-umaoya]/Sensu::Check[http-poyry.softxs.ch-umaoya]/Sensu_check[http-poyry.softxs.ch-umaoya]: Scheduling refresh of Service[sensu-client]
Info: /Stage[main]/Main/Node[v0402.zg-2.softxs.ch]/Setup_sensu_check[http]/Setup_sensu_check::One_check[poyry.softxs.ch-umaoya]/Sensu::Check[http-poyry.softxs.ch-umaoya]/Sensu_check[http-poyry.softxs.ch-umaoya]: Scheduling refresh of Service[sensu-server]
Notice: /Stage[main]/Sensu::Client::Service/Service[sensu-client]: Dependency Package[sensu-plugin] has failures: true
Info: /Stage[main]/Sensu::Client::Service/Service[sensu-client]: Unscheduling all events on Service[sensu-client]
Notice: /Stage[main]/Sensu::Api::Service/Service[sensu-api]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Server::Service/Service[sensu-server]: Dependency Package[sensu-plugin] has failures: true
Info: /Stage[main]/Sensu::Server::Service/Service[sensu-server]: Unscheduling all events on Service[sensu-server]
Notice: /Stage[main]/Sensu::Enterprise::Dashboard/Anchor[sensu::enterprise::dashboard::begin]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu::Enterprise::Dashboard/Anchor[sensu::enterprise::dashboard::end]: Dependency Package[sensu-plugin] has failures: true
Notice: /Stage[main]/Sensu/Anchor[sensu::end]: Dependency Package[sensu-plugin] has failures: true
Info: Stage[main]: Unscheduling all events on Stage[main]
I'm using sensu-puppet with client/server configuration. If the client is started from the command line, which should update 1 check, it is working correctly:
However it the same operation is started from crontab, it doesn't work. There are a lot of messages like
Dependency Package[sensu-plugin] has failures: true
:Platform and version information
The text was updated successfully, but these errors were encountered: