The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 895 errorHandler->error


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undefined value returned by plug-in
#1
Hello,
My plug-in modules doesn't work with a fresh install of pandorafms on debian 9, including buitin plugin..

I have this message in log:
2019-01-21 08:14:43 VPANDORA [V1] Pandora FMS Server 'VPANDORA' unhandled error.
2019-01-21 08:14:43 VPANDORA [V3] [ERROR] Undefined value returned by plug-in module 'ram_use' in agent whith name 'SRV-blabla' and alias 'SRV-blabla'. Is the server out of memory?
2019-01-21 08:19:49 VPANDORA [V1] [E] 'VPANDORA': JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at /usr/lib/perl5/PandoraFMS/PluginServer.pm line 182.

Same error with all plugins.


Wmi request works fine when execute manually


[email protected]:/var/log/pandora# free

              total        used        free      shared  buff/cache   available

Mem:        4041668      513184     1981256       32276     1547228     3231176
Swap:       4192252           0     4192252


php > $cmd = "cd /usr/share/pandora_server/util/plugin ;";
php > $cmd .= "/usr/bin/perl ./wmi_remoto_v1r1.pl -H 192.168.X.X -m memuse -U u[email protected] -P pass >> /var/log/pandora/test.log";
php > exec($cmd);
php > exit
[email protected]:/usr/share/pandora_server/util/plugin# cat /var/log/pandora/test.log
64.94[email protected]:/usr/share/pandora_server/util/plugin#

Any idea ?
 Reply
Messages In This Thread
Undefined value returned by plug-in - by Mystikal57 - 01-21-2019, 07:33 AM


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes