[Newbie] need help on /usr/bin/env: ruby : Permission denied (check)


#1

Dear folks,

I got these error on following these guide:http://joemiller.me/2012/01/19/getting-started-with-the-sensu-monitoring-framework/

FYI: I’m running sensu sensu-0.10.2-1.x86_64 on RHEL5.7.

I’ve followed exactly from that guide. and all have been passed. and I get error on add a check section. really need some guide here, since I’m very new to ruby.

Rgds,

Feriyanto

Here is the error that I get from log:

{“timestamp”:“2013-09-25T16:00:56.223384+0700”,“level”:“error”,“message”:“handler error”,“event”:{“client”:{“name”:“sensu-server.dom.tld”,“address”:“172.16.21.116”,“subscriptions”:[“test”,“webservers”],“timestamp”:1380099652},“check”:{“handler”:“default”,“command”:"/etc/sensu/plugins/check-procs.rb -p crond -C 1 “,“interval”:60,“subscribers”:[“webservers”],“name”:“cron_check”,“issued”:1380099656,“executed”:1380099656,“output”:”/usr/bin/env: ruby\r: Permission denied\n",“status”:126,“duration”:0.004,“history”:[“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“127”,“126”,“126”,“126”]},“occurrences”:3,“action”:“create”},“handler”:{“type”:“pipe”,“command”:“true”,“name”:“default”},“error”:“Broken pipe”}

and from dashboard:

cron_check

event data

output /usr/bin/env: ruby : Permission denied
status 126
issued 1380099836
handlers default
occurrences 6
client sensu-server.dom.tld
check cron_check
id sensu-server.dom.tld/cron_check
status_name unknown
url /events/sensu-server.dom.tld/cron_check
client_silence_path silence/sensu-server.dom.tld
silence_path silence/sensu-server.dom.tld/cron_check

client data

name sensu-server.dom.tld
address 172.16.21.116
subscriptions test,webservers
timestamp 1380099852
silence_path silence/sensu-server.dom.tld


#2