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

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.
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: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]#
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 »

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.
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 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.
You do not have the required permissions to view the files attached to this post.
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 »

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.
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: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
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 »

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.
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 ,
the problem seems to be solved. May I know what is epn and why turning it off could solve the issue?

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: epn error , plugin did not call exit

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: epn error , plugin did not call exit

Post by s.wiki »

Thank you very very much, you may close the case.
Locked