Page 2 of 3

Re: epn error , plugin did not call exit

Posted: Tue Aug 01, 2017 8:41 am
by tgriep
It looks like the plugin works on the remote server so that is good.

I found this link that has an example of how to submit a check to the Job server from the command line.
https://labs.consol.de/nagios/mod-gearm ... ive_checks
It looks like you still need to have the Host and Service setup in Nagios.
Another way to do this is to setup a duplicate service and configure that one to use gearman.
Then you can test with that one while the main one continues to work.

Re: epn error , plugin did not call exit

Posted: Fri Aug 04, 2017 3:24 am
by s.wiki
tgriep wrote:It looks like the plugin works on the remote server so that is good.

I found this link that has an example of how to submit a check to the Job server from the command line.
https://labs.consol.de/nagios/mod-gearm ... ive_checks
It looks like you still need to have the Host and Service setup in Nagios.
Another way to do this is to setup a duplicate service and configure that one to use gearman.
Then you can test with that one while the main one continues to work.
Hi,
I have setup the same host and services, but in different hostgroup. And able to reproduce the error.

Now I am trying to install send_gearman and check_gearman because they are not installed in my server.
I installed check_gearman from https://exchange.nagios.org/directory/P ... an/details
however i am getting error when trying to execute it. Kindly assist
[root@libexec]# perl check_gearman
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at check_gearman line 15.
BEGIN failed--compilation aborted at check_gearman line 15.


[root@libexec]# find / -name Plugin.pm
/usr/local/share/perl5/Nagios/Monitoring/Plugin.pm
/root/nagios-2017/Plugin/vmware_and_dependencies/dependencies_monitoring_plugin/Monitoring-Plugin-0.39/lib/Monitoring/Plugin.pm
/root/nagios-2017/Plugin/vmware_and_dependencies/dependencies_monitoring_plugin/Nagios-Monitoring-Plugin-0.51/lib/Nagios/Monitoring/Plugin.pm
/root/nagios-2017/Plugin/vmware_and_dependencies/dependencies_monitoring_plugin/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin.pm
[root@libexec]#

Re: epn error , plugin did not call exit

Posted: Fri Aug 04, 2017 11:08 am
by tgriep
Try and install the perl module again and see if that fixes the issue. Run the following as root.

Code: Select all

cpan -i Nagios::Plugin
Let us know if this works for you.

Re: epn error , plugin did not call exit

Posted: Thu Aug 10, 2017 2:20 am
by s.wiki
Hi I have installed the plugin succesfully, however that's a different plugin.
The real plugin I needed is actually installed but located at /usr/bin

anyway i have run the passive check .
For nagios server.
[root@nagios~]# check_gearman2 -H localhost -q worker_worker-s check
check_gearman OK - dccvmims02 has 5 worker and is working on 0 jobs. Version: 2.1.1|worker=5;;;5;50 jobs=87086c
[root@worker ]# send_gearman2 --server=nagios--encryption=yes key=1234567890 --host="test-A-02-1-SW2" --service="CPU Usage" --message=message
[root@worker ]#
kindly refer to the attachment, nagiosxi capture the passive check i send from worker.

Re: epn error , plugin did not call exit

Posted: Thu Aug 10, 2017 9:26 am
by tgriep
Edit that plugin on the remote server and change the following line from

Code: Select all

# nagios: +epn
to

Code: Select all

# nagios: -epn
Save the plugin and that will stop the plugin from using embedded perl and the plugin should work for you.

Re: epn error , plugin did not call exit

Posted: Fri Aug 11, 2017 1:58 am
by s.wiki
tgriep wrote:Edit that plugin on the remote server and change the following line from

Code: Select all

# nagios: +epn
to

Code: Select all

# nagios: -epn
Save the plugin and that will stop the plugin from using embedded perl and the plugin should work for you.
Hi , remote worker means the nagios server or the worker?
and edit that plugin means i edit check_nwc_health?

Thanks

Re: epn error , plugin did not call exit

Posted: Fri Aug 11, 2017 12:23 pm
by tgriep
What ever server you have installed the check_nwc_health plugin on, (Remote Gearman Worker or the Nagios server) you would do the changes.
It would be best to have them all the same to rule out which server the plugin is running on.

Re: epn error , plugin did not call exit

Posted: Tue Aug 15, 2017 1:34 am
by s.wiki
Hi ,
the problem seems to be solved. May I know what is epn and why turning it off could solve the issue?

Thanks

Re: epn error , plugin did not call exit

Posted: Tue Aug 15, 2017 11:14 am
by scottwilkerson
s.wiki wrote:Hi ,
the problem seems to be solved. May I know what is epn and why turning it off could solve the issue?

Thanks
epn is embedded perl and it can cause issues with certain modules not being loaded. Buy disabling it load at runtime

Re: epn error , plugin did not call exit

Posted: Thu Aug 24, 2017 4:53 am
by s.wiki
Thank you very very much, you may close the case.