If ipsec isn’t in sensu’s PATH you can do something like “PATH=$PATH:/dir/with/ipsec check-strongswan.rb …” in your check definition. You could also add a symlink to it in one of the directories that is in the PATH.
On Thu, Feb 16, 2017 at 12:44 PM, Ramsumanth Ramsetti email@example.com wrote:
Yes, i am running the check as a root. also, can you please give me an example adding the ipsec command in the $PATH ?
when echo path i get the following
On Thu, Feb 16, 2017 at 2:25 PM, Eric Heydrick firstname.lastname@example.org wrote:
Check that the
ipseccommand is in the $PATH of the sensu user. Also, are you running the check as root using sudo? It needs to execute as root.
On Thu, Feb 16, 2017 at 9:36 AM, Ramsumanth Ramsetti email@example.com wrote:
Hi, I am trying to leverage the following check and when i run the check i get "
CheckStrongswan UNKNOWN: Unable to check Strongswan status"
I assume it is not finding ipsec status and i can see tunnel up with strongswan status.
Will you please advice how can i modify the script or any thing i am missing ?