epn error , plugin did not call exit
Re: epn error , plugin did not call exit
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.
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!
Re: epn error , plugin did not call exit
Hi,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.
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
Try and install the perl module again and see if that fixes the issue. Run the following as root.
Let us know if this works for you.
Code: Select all
cpan -i Nagios::PluginBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: epn error , plugin did not call exit
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 .
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
kindly refer to the attachment, nagiosxi capture the passive check i send from worker.[root@worker ]# send_gearman2 --server=nagios--encryption=yes key=1234567890 --host="test-A-02-1-SW2" --service="CPU Usage" --message=message
[root@worker ]#
You do not have the required permissions to view the files attached to this post.
Re: epn error , plugin did not call exit
Edit that plugin on the remote server and change the following line from
to
Save the plugin and that will stop the plugin from using embedded perl and the plugin should work for you.
Code: Select all
# nagios: +epnCode: Select all
# nagios: -epnBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: epn error , plugin did not call exit
Hi , remote worker means the nagios server or the worker?tgriep wrote:Edit that plugin on the remote server and change the following line fromtoCode: Select all
# nagios: +epnSave the plugin and that will stop the plugin from using embedded perl and the plugin should work for you.Code: Select all
# nagios: -epn
and edit that plugin means i edit check_nwc_health?
Thanks
Re: epn error , plugin did not call exit
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.
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!
Re: epn error , plugin did not call exit
Hi ,
the problem seems to be solved. May I know what is epn and why turning it off could solve the issue?
Thanks
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
epn is embedded perl and it can cause issues with certain modules not being loaded. Buy disabling it load at runtimes.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
Re: epn error , plugin did not call exit
Thank you very very much, you may close the case.