Clariion Plugin executes after 2 Enter press

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Clariion Plugin executes after 2 Enter press

Post by tmcdonald »

And the other questions?
sreinhardt wrote:How do you have the command and service defined in nagios configs?
tmcdonald wrote:What perl version are you running?

perl -V
Former Nagios employee
v_sidana
Posts: 3
Joined: Thu Feb 06, 2014 11:12 am

Re: Clariion Plugin executes after 2 Enter press

Post by v_sidana »

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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Clariion Plugin executes after 2 Enter press

Post by sreinhardt »

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.
Locked