Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
(No output on stdout) stderr: Can't locate Switch.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 /usr/local/nagios/libexec/check_sfan.pl line 37.
Is there a reason it's working differently in nagios than out?
rhassing wrote:Did you try to run it as the user "nagios"?
Thanks for the reply. I think you hit it right on the head but can't really easily fix it. Switch.pm is depreciated and no longer installed so when you try to install it it only shows in a local library. I would have to install as the nagios user if it would work but figure it's better to redo the switch with an if/else routine.
JR
EDIT: Fixed it. Is it appropriate to put notes on the original poster's submission with what was changed (think it's abandoned) or create a per module referencing it's an update to the existing one with the following fixes?