epn error , plugin did not call exit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

epn error , plugin did not call exit

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: epn error , plugin did not call exit

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: epn error , plugin did not call exit

Post 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
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: epn error , plugin did not call exit

Post 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,
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: epn error , plugin did not call exit

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: epn error , plugin did not call exit

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: epn error , plugin did not call exit

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: epn error , plugin did not call exit

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: epn error , plugin did not call exit

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: epn error , plugin did not call exit

Post 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?
Locked