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.
Arsalan Ali
Posts: 5
Joined: Wed Jul 17, 2013 7:06 pm

Clariion Plugin executes after 2 Enter press

Post by Arsalan Ali »

Hey everyone,
i've tried check_emc_clariion.pl plugin and came across this strange behaviour, while testing this plugin on the command line in linux server i have to press Enter key TWICE after writing down the command then it gives me the output. If i press only one enter it does nothing, courser just shifts to the next line thats all. now due to this issue i'm only getting one output in nagios and it is not updating/refreshing it after the specifc interval..

any ideas why it is happening.?
waiting for your kind response.
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 »

How do you have the command and service defined in nagios configs?
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.
Arsalan Ali
Posts: 5
Joined: Wed Jul 17, 2013 7:06 pm

Re: Clariion Plugin executes after 2 Enter press

Post by Arsalan Ali »

Well i haven't define the command or service yet, i am testing the command while executing it on the command line to see what the output comes. But after typing the command i have to press 2 times to get the output.
Arsalan Ali
Posts: 5
Joined: Wed Jul 17, 2013 7:06 pm

Re: Clariion Plugin executes after 2 Enter press

Post by Arsalan Ali »

for example
./check_emc_clariion.pl -H X.X.X.X --secfilepath /usr/lib/nagios/clariionsec/dev120/ -t disk

then after pressing Enter key, courser just goes to next line and nothing happens, but if we press enter twice then command executes with the correct output.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Clariion Plugin executes after 2 Enter press

Post by tmcdonald »

What perl version are you running?

perl -V
Former Nagios employee
Arsalan Ali
Posts: 5
Joined: Wed Jul 17, 2013 7:06 pm

Re: Clariion Plugin executes after 2 Enter press

Post by Arsalan Ali »

perl5 (revision 5 version 8 subversion 8)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Clariion Plugin executes after 2 Enter press

Post by slansing »

Can you send a copy of the plugin you have on your nagios server via an attachment here?
v_sidana
Posts: 3
Joined: Thu Feb 06, 2014 11:12 am

Re: Clariion Plugin executes after 2 Enter press

Post by v_sidana »

Am facing the same issue...can someone kindly help urgently.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Clariion Plugin executes after 2 Enter press

Post by tmcdonald »

v_sidana wrote:Am facing the same issue...can someone kindly help urgently.
Sure. Can you answer the questions we had asked the previous poster?
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 »

This time with attachment
You do not have the required permissions to view the files attached to this post.
Locked