Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Process dumps core, when started by SMF - fine when manually started

807559Sep 24 2009 — edited Mar 3 2010
Hi.
h2. Explanation
I compiled [Nagios 3.2.0|http://www.nagios.org/] manually, and created a SMF manifest and method file, based on the [OpenCSW supplied files for Nagios|http://www.opencsw.org/packages/nagios]. The method file is based on [what the Nagios guys supply|http://pastebin.ca/1577792] , but [changed a little|http://pastebin.ca/diff.php?id1=1577792&id2=1577793] .

When I enable the "application/nagios" service, it right away goes into maintenance state. In the /var/svc/log/application-nagios:default.log log file, there's consequently then this:
[...]
+ exit 0
[ Sep 24 13:17:10 Method "start" exited with status 0 ]
[ Sep 24 13:17:11 Stopping because process dumped core. ]
[ Sep 24 13:17:11 Executing stop method ("/opt/local/nagios-3.2.0/method/nagios stop") ]
 + test -r /lib/svc/share/smf_include.sh
[...]
It died, because of "*Stopping because process dumped core.*"

If you have a look at the method file, you'll find that I dump the environment with env to a file. When I login as root and set the environment variables to exactly those values and remove any other additional variables, I can run the method / init script just fine; the nagios process doesn't core dump.
h2. Question
Why does the process dump core, when it's run by SMF?
Additional questoin:Where's the core dump? I did a "find / -name core" and found nothing. I also changed coreadm:
--($ ~)-- LC_ALL=C coreadm
     global core file pattern: /var/core/core.%f.%p
After a reboot, there's nothing in /var/core (the directory exists).

I'm on Solaris 10 5/09 Sparc.
h2. Files
*[svccfg export nagios|http://pastebin.ca/1577787]*
*[Method file /opt/local/nagios-3.2.0/method/nagios|http://pastebin.ca/1577793]*


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2010
Added on Sep 24 2009
5 comments
2,079 views