Closed sovaa closed 7 years ago
The jstat and jps commands may require root access; let check-java-permgen.rb use sudo if told to. Requires the following in /etc/sudoers:
/etc/sudoers
sensu ALL=(ALL) NOPASSWD: /path/to/java/jdk1.8.0_92/bin/jps sensu ALL=(ALL) NOPASSWD: /path/to/java/jdk1.8.0_92/bin/jstat
:+1: though it's best to put it into /etc/sudoers.d/sensu to keep things cleaner.
/etc/sudoers.d/sensu
The jstat and jps commands may require root access; let check-java-permgen.rb use sudo if told to. Requires the following in
/etc/sudoers
: