Docker-Nagios
Docker-Nagios copied to clipboard
Issue with nagiosgraph - failed-compilation
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!
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 could you please?
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.
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.
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...