glensc / nagios-plugin-check_raid

Nagios/Icinga/Sensu plugin to check current server's RAID status ⛺
144 stars 84 forks source link

Couldn't instantiate App::Monitoring::Plugin::CheckRaid::Plugins::aaccli: untie attempted while 1 inner references still exist at /usr/share/perl/5.24/IPC/Open3.pm line 138 #179

Closed kolomparrudi closed 6 years ago

kolomparrudi commented 6 years ago

Hi,

I'm trying to use check_raid in debian stretch with nagios 3.5.1. When I run the script from shell with nagios user it works fine, but when nagios runs it I got this error:

**ePN /usr/lib/nagios/plugins/check_raid: "Couldn't instantiate App::Monitoring::Plugin::CheckRaid::Plugins::aaccli: untie attempted while 1 inner references still exist at /usr/share/perl/5.24/IPC/Open3.pm line 138

Tried with the latest released verison and with latest dev version too. Any idea what is the problem?

Thanks, kolomparrudi

glensc commented 6 years ago

the plugin was designed to take commands from stdin, perhaps it can now be invoked via commandline?

does this work, and can you provide full output:

# aaccli container list /full
kolomparrudi commented 6 years ago

I have ony arcconf and it works fine.

When I run check_raid from shell it works, the problem only seen if nagios run it: root@tomline:~# su nagios -s /bin/bash nagios@tomline:/root$ /usr/lib/nagios/plugins/check_raid CRITICAL: arcconf:[Controller:Optimal, Degraded drives:1, Logical Device 1(uj):Degraded, Drives: WD-WMC130D3WUHZ=Online]

glensc commented 6 years ago

i do not understand what are you reporting here. what should be fixed in your opinion?

kolomparrudi commented 6 years ago

The plugin is not working from nagios, I got this error:

Couldn't instantiate App::Monitoring::Plugin::CheckRaid::Plugins::aaccli: untie attempted while 1 inner references still exist at /usr/share/perl/5.24/IPC/Open3.pm line 138

This is why I opened the ticket.

kolomparrudi commented 6 years ago

Hi,

Found the solution/workaround: I had to disable nagios embedded perl interpreter in nagios.cfg: enable_embedded_perl=0

glensc commented 6 years ago

but then you write in second comment that it runs under nagios user. meh?