Page 1 of 3

epn error , plugin did not call exit

Posted: Tue Jul 25, 2017 5:50 am
by s.wiki
Hi, I am getting this error
**ePN /usr/local/nagios/libexec/check_nwc_health: plugin did not call exit()
**ePN /usr/local/nagios/libexec/check_nwc_health: "Use of uninitialized value $opt in string eq at /usr/share/perl5/Getopt/Long.pm line 487,".
what i did was update check_nwc_health on my nagios and worker server.

nagios running on rhel6
and worker running on rhel7
it was working until i update the plugin.


on master :
[root@master~]# find / -iname long.pm
/usr/share/perl5/Getopt/Long.pm

on worker
[root@worker~]# find / -iname long.pm
/usr/share/perl5/vendor_perl/Getopt/Long.pm

Kindly assist. thanks

Re: epn error , plugin did not call exit

Posted: Tue Jul 25, 2017 9:54 am
by lmiltchev
"check_nwc_health" is not one of our official nagios plugins. It's a 3rd party plugin. We will try to help but it may take some time as we are not familiar with the plugin.

Can you provide us with a download link to "check_nwc_health"? What is the version that you upgraded from/to? We will try to recreate the issue in house.

BTW, have you tried contacting the owner of the plugin? Thank you!

Re: epn error , plugin did not call exit

Posted: Tue Jul 25, 2017 10:23 pm
by s.wiki
hi,
i upgrade from check_nwc_health-4.6.1 to check_nwc_health-6.3.0.6.
Kindly let me know if you need more information.
I have just contacted the owner and waiting his reply.

Thank you

Re: epn error , plugin did not call exit

Posted: Wed Jul 26, 2017 1:38 am
by s.wiki
Hi ,
update:
I have move all the network checks into localhostgroup at mod_gearman, and now all the checks are back to normal.
So most probably when the checks pass to the worker they cant check it.However if i run the command manually on the worker, they are able to check.

Thanks,

Re: epn error , plugin did not call exit

Posted: Wed Jul 26, 2017 10:17 am
by tgriep
Thanks for reporting back your findings.
If you want to run that plugin on the remote host using the gearman worker, you would have to install all of the requirements for that plugin on that server.

Re: epn error , plugin did not call exit

Posted: Wed Jul 26, 2017 10:47 pm
by s.wiki
The same plugin is installed on the worker, and able to check and get result if I manually type command in the terminal


Thanks

Re: epn error , plugin did not call exit

Posted: Thu Jul 27, 2017 11:00 am
by lmiltchev
Can you run the following command on both boxes - the server and worker(s), and show the output?

Code: Select all

grep use_embedded_perl_implicitly /etc/mod_gearman2/worker.conf

Re: epn error , plugin did not call exit

Posted: Fri Jul 28, 2017 3:35 am
by s.wiki
lmiltchev wrote:Can you run the following command on both boxes - the server and worker(s), and show the output?

Code: Select all

grep use_embedded_perl_implicitly /etc/mod_gearman2/worker.conf
Hi, Thanks for your reply.

Kindly refer to the information
server
grep use_embedded_perl_implicitly /etc/mod_gearman2/worker.conf
use_embedded_perl_implicitly=off
worker
grep use_embedded_perl_implicitly /etc/mod_gearman2/worker.conf
use_embedded_perl_implicitly=off
Thanks

Re: epn error , plugin did not call exit

Posted: Fri Jul 28, 2017 9:46 am
by tgriep
Can you login to your remote Gearman worker and run the plugin as the nagios user and post the output by running the following commands?

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_nwc_health -V
grep epn /usr/local/nagios/libexec/check_nwc_health
Can you post the worker.conf file from the remote gearman server?
If you run the check from the Nagios server using Mod Gearman, what error are you getting?

Re: epn error , plugin did not call exit

Posted: Mon Jul 31, 2017 10:47 pm
by s.wiki
tgriep wrote:Can you login to your remote Gearman worker and run the plugin as the nagios user and post the output by running the following commands?

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_nwc_health -V
grep epn /usr/local/nagios/libexec/check_nwc_health
Can you post the worker.conf file from the remote gearman server?
If you run the check from the Nagios server using Mod Gearman, what error are you getting?
Hi ,
Thanks for your reply. sorry for the delay, kindly refer below:
nagios
[root@nagios~]# su - nagios
[nagios@nagios ~]$ /usr/local/nagios/libexec/check_nwc_health -V
check_nwc_health $Revision: 6.3.0.6 $ [http://labs.consol.de/nagios/check_nwc_health]
[nagios@imsvm ~]$ grep epn /usr/local/nagios/libexec/check_nwc_health
# nagios: +epn
[nagios@nagios ~]$
worker
[root@worker~]# su - nagios
Last login: Fri Jul 21 17:26:12 MYT 2017 on pts/2
[nagios@worker~]$ /usr/local/nagios/libexec/check_nwc_health -V
check_nwc_health $Revision: 6.3.0.6 $ [http://labs.consol.de/nagios/check_nwc_health]
[nagios@dccvmims02 ~]$ grep epn /usr/local/nagios/libexec/check_nwc_health
# nagios: +epn
may i know how to run checks using mod_gearman manually?