[
https://issues.apache.org/jira/browse/AMBARI-5888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044158#comment-14044158
]
Jonathan Hurley commented on AMBARI-5888:
-----------------------------------------
On SLES, {{service nagios stop}} results in:
{noformat}
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid |
jobspec ... or kill -l [sigspec]
{noformat}
The PID is removed, the service is listed as being stopped, yet the process
persists since the kill command failed. Because of this, many nagios processes
can run in parallel and dump stale data to status.dat.
> Nagios Alerts On SLES Toggle In Maintenance Mode
> ------------------------------------------------
>
> Key: AMBARI-5888
> URL: https://issues.apache.org/jira/browse/AMBARI-5888
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 1.6.0
> Environment: sles11 Only issue
> Reporter: Michael Harp
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 1.6.1
>
>
> `service nagios start` creates /var/run/nagios/nagios.pid correctly but
> `service nagios stop` checks /var/run/nagios.pid for the process id and the
> kill command fails since /var/run/nagios.pid is an empty file.
> This error is caused by hardcoded pid location in /etc/init.d/nagios,
> "NagiosRunFile=/var/run/nagios.pid". Changing to
> "NagiosRunFile=/var/run/nagios/nagios.pid" is our current workaround.
--
This message was sent by Atlassian JIRA
(v6.2#6252)