Hi,
I’m new in sensu and using a check like below in sensu server
{
“checks”: {
“java_metrics”: {
“type”: “metric”,
“command”: “java-heap.sh -n Bootstrap”,
“subscribers”: [
“production”
],
“interval”: 20
}
}
}
whenever sense server running this checks it gives an error like “jps: command not found” “jstat: command not found”
I’m using the plugin java-heap-pcnt.sh from sensu-community https://github.com/sensu/sensu-community-plugins/tree/master/plugins/java
The same is working fine from my sensu-client m/c. I have given sensu user root privilege in case of any sudo issues.
Please help on the same as I’m stuck with this checks execution.
Thanks,
Subhadip
Perhaps jps
and jstat
are not in PATH for the Sensu client. You can adjust PATH globally or in /etc/default/sensu, the Sensu client will need a restart.
Sean.
···
On Wed, Jan 29, 2014 at 8:26 AM, Subhadip Bagui i.bagui@gmail.com wrote:
Hi,
I’m new in sensu and using a check like below in sensu server
{
“checks”: {
"java_metrics": {
"type": "metric",
"command": "java-heap.sh -n Bootstrap",
"subscribers": [
"production"
],
"interval": 20
}
}
}
whenever sense server running this checks it gives an error like “jps: command not found” “jstat: command not found”
I’m using the plugin java-heap-pcnt.sh from sensu-community https://github.com/sensu/sensu-community-plugins/tree/master/plugins/java
The same is working fine from my sensu-client m/c. I have given sensu user root privilege in case of any sudo issues.
Please help on the same as I’m stuck with this checks execution.
Thanks,
Subhadip