Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nagiosgraph not working v2 #125

Open
maverick85 opened this issue May 26, 2021 · 5 comments
Open

Nagiosgraph not working v2 #125

maverick85 opened this issue May 26, 2021 · 5 comments

Comments

@maverick85
Copy link

maverick85 commented May 26, 2021

Yeaa there is some issue with perl path like /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 ...etc.

The workaround is to reinstall NagiosGraph. Here is how you can do that:

Start your container with volumes
#Enter your container
docker exec -it nagios4 /bin/bash

#Clean /opt/nagiosgraph folder --- you will receive ...etc and ... var are busy dont worry.
rm -rf /opt/nagiosgraph

#Build your NagiosGraph --- you dont need to download it its already there just reinstall it.
cd /tmp/nagiosgraph &&
./install.pl --install
--prefix /opt/nagiosgraph
--nagios-user ${NAGIOS_USER}
--www-user ${NAGIOS_USER}
--nagios-perfdata-file ${NAGIOS_HOME}/var/perfdata.log
--nagios-cgi-url /cgi-bin
&&
cp share/nagiosgraph.ssi ${NAGIOS_HOME}/share/ssi/common-header.ssi

No errors anymore.

Originally posted by @vhristev in #67 (comment)

Hi there, this doesn't work for me using the latest image available at this date:

# podman exec -it nagios4 /bin/bash
root@783c79af9929:/# rm -fr /opt/nagiosgraph 
rm: cannot remove '/opt/nagiosgraph/etc': Device or resource busy
rm: cannot remove '/opt/nagiosgraph/var': Device or resource busy
root@783c79af9929:/# cd /tmp/nagiosgraph
bash: cd: /tmp/nagiosgraph: No such file or directory

Suggestions? thanks

@maverick85 maverick85 changed the title Yeaa there is some issue with perl path like /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 ...etc. Nagiosgraph not working v2 May 26, 2021
@maverick85
Copy link
Author

I ran the container without the volume binds and copied the contents to nagiosgraph, then stopped that container and started again with all the options, and its fixed.

@duckmysick01
Copy link

So you did some docker cp ... then docker stop 'name' and then docker run 'with all options' ?

@maverick85
Copy link
Author

Hi @duckmysick01 that was over an year ago I don't remember at all, I'm sorry.

@duckmysick01
Copy link

I made it work, no problem.

@DarkDeddok
Copy link

I made it work, no problem.

How to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants