RE: More on my No Notifications problem...
Darren Gamble <[email protected]>
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <078EC26E265CD411BD9100508BDFFC861BCBB493@shawmail02> |
Good day, > To test this theory, I su'ed to nagios and tried to execute > /bin/mail and > got an error writing a file to /tmp. I chmod'ed /tmp to o+w and then > tried again and it worked and notifications started going out. > > I'd rather not have /tmp world writable and I don't believe > this is the > default setup Having a world-writable /tmp is the default setup for most (all?) *NIX machines (with the "sticky bit" set for some measure of security). > so my questions are: is there a way to redirect > where nagios > writes its temp files when sending mail No, Nagios is not writing to this directory. It is "mail". "mail" appears to be hardcoded to use /tmp according to the man page, so you may not be able to easily change this. > and, if not, how do > other people > have this set up? My /tmp is mode 1777. You'll probably run into other problems with other applications if this is not the case in your setup. You should consult the documentation for your particular O/S to determine what the proper permissions should be for that directory. ============================ Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31