No output returned from plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

No output returned from plugin

Post by morabanc »

Hi guys,

We have a service that gives an unknown state with this message:

- No output returned from plugin

It's strange because when we execute a "Force an immediate check" goes to ok state, but many minutes ago turns to unknown state once again.

This is the command configured in service (when we execute in shell goes fine).

- php $USER1$/script_salva_config_sql.php $ARG1$ 2> /dev/null ( where ARG1 is: router_one)

I attach you the configuration of template attach in service.

We are in 5.4.12 version.


Thanks
You do not have the required permissions to view the files attached to this post.
kyang

Re: No output returned from plugin

Post by kyang »

I'm sure this is your custom plugin right? We will do our best to troubleshoot this issue, but we can only give limited information since we don't exactly know if your plugin is following our plugins-guidelines.
http://nagios-plugins.org/doc/guidelines.html

What template are you using for this service template?

Can you run your plugin from the command line and show us the output?
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: No output returned from plugin

Post by morabanc »

Hi kyang,

This is the output from command line:

bash-4.1# php script_salva_config_sql.php router1 2> /dev/null
OK: Fet la salva del host router1 amb data 2018-02-20 04:16:02. Caracters: 14335 | estat=1
bash-4.1#


Regards
kyang

Re: No output returned from plugin

Post by kyang »

Can you also provide the service check_command you are using for this?

And the command definition you have for using this php script?

All of this can be found in your Core Config Manager (CCM).
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: No output returned from plugin

Post by morabanc »

Hi kyang,

Here you are.


Thanks
You do not have the required permissions to view the files attached to this post.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: No output returned from plugin

Post by morabanc »

Also I attach you 2 pics, before do the force check and after do it
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No output returned from plugin

Post by scottwilkerson »

Are active checks enabled for this service? You can see on the Advanced tab

If so what frequency is the service being checked?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: No output returned from plugin

Post by lmiltchev »

I have seen similar issue in the past, when mod gearman is used. The plugin is present on the server, and the check runs fine, when executed locally. However the plugin is missing on the mod gearman worker machine, so when it's run by the worker, it fails. Are you using mod gearman by chance? If you do, make sure that you have the plugin on the worker, and that you actually CAN execute this particular plugin remotely.
Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: No output returned from plugin

Post by morabanc »

Hi guys,

Thank you very much for your comments.

@lmiltchev, we don't have mod_gearman.

@scottwilkerson, I attach some more config files.


Thanks
You do not have the required permissions to view the files attached to this post.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: No output returned from plugin

Post by morabanc »

And one more :)
You do not have the required permissions to view the files attached to this post.
Locked