I got to the root cause of issue but still not fix.
Issue is happening because of certificate warning when naviseccli is run :
Unable to validate the identity of the server. There are issues with the certificate presented.
Only import this certificate if you have reason to believe it was sent by a trusted source.
Certificate details:
Subject: OU=CLARiiON,O=EMC Corporation,L=Southboro,ST=Massachusetts,C=US,CN=SP1B,CN=172.230.20.11
Issuer: OU=CLARiiON,O=EMC Corporation,L=Southboro,ST=Massachusetts,C=US,CN=SP1B,CN=172.230.20.11
Serial#: 00
Valid From: 20111201183831Z
Valid To: 20261127183831Z
Would you like to [1]Accept the certificate for this session, [3] Reject the certificate?
Please input your selection(The default selection is [1]):
This is due to NAT'ing setup done for this device. Does anyone knows a way of getting naviseccli to silently ignore this warning. I tried passing echo 1 via pipe. It works well in cmd line but not working properly when put in services/command description via nagios
This is not due to a nat issue, but due to a self assigned certificate on this device. If you created the certificate, I would suggest just importing it permanately. The echoing likely is not working as nagios does not really use a true tty like echo would expect.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.