I’m currently struggling getting the NagVis automap feature to work with the following setup:
First of, NagVis complained that the PHP $_SERVER variable did not have a key named “PATH” which I worked around by creating a fastcgi_param in my nginx config for that (all my GraphViz binaries where installed to /bin):
fastcgi_param PATH /bin;
Now I receive the message
The required graphviz binary “dot” could not be found in the paths: “/bin:/usr/local/bin/”.
SELinux is set to permissive and I can’t find any error messages in any log whatsoever.
The NagVis messages originates from /usr/local/nagvis/share/server/core/sources/automap_pos.php, line 27.
which dot and checks if the return code is zero.
When I execute that command manually in the context of my PHP user, everything is fine, the binary is found.
Can someone provide any hint?
These are the exact commands which are executed on my system:
which /usr/local/bin/dot 2>/dev/null
which dot 2>/dev/null
The first call uses the default value of automap graphvizpath, the second one searches in all of $PATH.
I have also tried symlinking /bin/dot to /usr/local/bin/dot but that didnt help either.