<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv5047875672"><div id="yui_3_16_0_1_1458090590913_2604"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_1_1458090590913_2603"><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">I'm still working on setting up Xymon (from the terabithia RPMs) and my manager tells me today that there's an error message when trying to run reports, like the availability report, snapshot report, etc.</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">I'm getting an error message: Cannot create output directory
</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">When examining the logs for more details I don't get a whole lot to go on.  I checked with both httpd and xymon logs and I didn't see anything relevant to this problem.<br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">I'm really trying to help myself and not make my problems everyone else's problems, and I'd really like to contribute to the community in some way, so here's what I've done so far to try to fix it:</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">1. going to the /var/cache/xymon/ directory and creating a rep directory</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">2. giving rwxrwxrwx permissions to that directory</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">I then managed to download the srpms from terabithia, find the offending file and examine the source to see what happens.</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">The XYMONREPDIR environment variable is used in creating the directory where the report will go, but I don't know:</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">1. How to check which process is running the file that's encountering the problem (httpd or some xymon process)</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">2. How to check for the presence or value of this variable in the environment that process is using</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br>So I decided to see if I could modify the source and make xymon give me a little more information.  The resultant patch file is attached, though be forewarned, my C experience is limited to a primer class I took as a freshman in highschool and on top of not having that much knowledge in the first place, I'm very rusty.<br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">From what I understand in the source there's not much error checking or information provided if it fails.  I do see:</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">envcheck(reqenv);</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">But this by itself doesn't prevent continued execution if say my $XYMONREPDIR is not found.</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">Well, I added a line to report which directory xymon is attempting to create, and another which should report the error message if the attempt was unsuccessful.  I did manage to create the attached patch file, but I was unable to recompile using the srpm *sniffle* <-- I'm crying from frustration at this point</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">So, I downloaded the source from sourceforge, replaced the report.c file with the one I made, compiled using that, copied the report.sh file to a working xymon server to try to test it... and I get internal server error :(</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">I then went back to test it on xymon compiled from sourceforge source, and I get an error that I don't have permission to access that directory. *rips hair out*</div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr"><br></div><div id="yiv5047875672yui_3_16_0_1_1457928370336_41112" dir="ltr">Thus, it would seem that I am unable to reproduce the problem with "stock" xymon, and I'm apparently not bright enough to fix it with terabithia srpms either.  At this point, I feel like I've put in enough effort to warrant asking for help.  Anyone, please help?</div></div></div></div></div></body></html>