Docker-Nagios icon indicating copy to clipboard operation
Docker-Nagios copied to clipboard

Issue with nagiosgraph - failed-compilation

Open emitosolini opened this issue 6 years ago • 5 comments

Hi @JasonRivers, I'm having this problem with a clean run:

Can't locate ngshared.pm in @INC (you may need to install the ngshared module) (@INC contains: /opt/nagiosgraph/etc /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /opt/nagiosgraph/bin/insert.pl line 41. BEGIN failed--compilation aborted at /opt/nagiosgraph/bin/insert.pl line 41.

Can you give some clue on how to fix it? Thanks!

emitosolini avatar Oct 17 '19 22:10 emitosolini

I had to make some changes to the dockerfile and the start_nagios script, and then rebuild it in order to get this working correctly. I can provide the files if need.

viperk1 avatar Jan 03 '20 19:01 viperk1

@viperk1 could you please?

petrklus avatar Mar 03 '20 17:03 petrklus

It's been a while so I don't quite remember what I changed, but you can do a diff to find out. Remove the .txt extensions because github wouldn't let me upload otherwise.

Dockerfile.txt start_nagios.txt

viperk1 avatar Mar 03 '20 18:03 viperk1

I am trying to run this container on a new install of CentOS 8 x64 with Docker version 20.10.11. I am seeing this same issue. Has anyone worked around this issue besides using "viperk1's" solution.

Soundtech89 avatar Dec 25 '21 21:12 Soundtech89

I'm facing the same issue

Update: My solution was to remove the docker container ans start a new one. Maybe because it's running for a longer time...

wefixit-AT avatar Jan 14 '22 08:01 wefixit-AT