-
Notifications
You must be signed in to change notification settings - Fork 74
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
Automap: The required graphviz binary "dot" could not be found #206
Comments
Hello, I have exactly the same issue. Did you solve it ? Regards. |
Unfortunately no. Still the same. Can't figure out where is the problem. |
|
Thanks for tip. But still nothing. Still same.
When upgraded NagVis - noticed that installer found all graphviz binaries. |
Agreed. On Fedora the same. In share/server/core/sources/automap_pos.php the function automap_check_graphviz($binary) can just bypass the !$bFound to return true and it will function as expected. I didn't debug the exec to see what was happening there for the return. |
Thanks for test and confirmation. There has to be some bug in automap_check_graphviz($binary) function. Function alone in separate new file is working with |
Hi, |
I've got the same issue here on CentOS 8 with nagvis in version 1.9.29 with |
After wrapping the
So it seems that user@home:~$ unset PATH
user@home:~ /usr/bin/which dot
/usr/bin/which: no dot in ((null)) By the way: It would be much cleaner to use My fix would be this for now: exec('PATH='.escapeshellarg($_SERVER['PATH']).' which '.escapeshellarg($path).' 2>&1', $arrReturn, $exitCode); |
I just installed the latest as of today (1.9.41) and unfortunately I am having the same issue. 'dot' was installed with the graphviz package on Rocky 9.4. I can log in to NagVis but cannot do anything within the application because of this error. Any resolution on the horizon apart from stuffing that variable? |
This fixes the message: The required graphviz binary "dot" could not be found This appears on Centos 7.x and higher systems with recent versions of Nagvis installed. Resolves NagVis#206 NagVis#206 Thank you @NiclasGoeddel for the fix!
Hi,
I installed latest stable version of NagVis on CentOS.
After fixing SELinux problem all is working well except automap function.
I have installed graphviz. All required binaries are in /usr/bin/ folder.
But I always get Error:
The required graphviz binary "dot" could not be found in the paths: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/bin/".
I tried specify graphvizpath variable in General/Automap Configuration to value "/usr/bin/".
I tried make symlink to /usr/local/bin/.
I found function "automap_check_graphviz" to check if binaries exists in file: share/server/core/sources/automap_pos.php.
I copy this function to new php file. I tried to search for binaries with this function and it is working. The function find all bineries with exitCode 0.
The SELinux is in permisive mode now.
I'm out of ideas where to look.
In apache/php log files is no error.
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: