* sshd PID changed
@ 2015-03-10 11:12 Kizito Porta Balanyà
2015-03-11 12:40 ` Kizito Porta Balanyà
0 siblings, 1 reply; 5+ messages in thread
From: Kizito Porta Balanyà @ 2015-03-10 11:12 UTC (permalink / raw)
To: cygwin
Hello,
I'm receiving some rare monit messages related to the sshd service.
The service "cygrunsrv sshd" is not restarted (eventviewer is OK), but
sometimes (not always) I get the following alerts:
Alert 1:
PID changed Service checkMatching_sshd
Date: Mon, 09 Mar 2015 16:14:26
Description: process PID changed from 1968 to 1744
PPID changed Service checkMatching_sshd
Date: Mon, 09 Mar 2015 16:14:26
Description: process PPID changed from 5344 to 2860
Alert 2:
PID changed Service checkMatching_sshd
Date: Mon, 09 Mar 2015 16:14:42
Description: process PID changed from 1744 to 2464
PPID changed Service checkMatching_sshd
Date: Mon, 09 Mar 2015 16:14:42
Description: process PPID changed from 2860 to 5344
Does the ssh service changes its own pid?
Thanks a lot for your time.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sshd PID changed
2015-03-10 11:12 sshd PID changed Kizito Porta Balanyà
@ 2015-03-11 12:40 ` Kizito Porta Balanyà
2015-03-11 19:57 ` Mark Geisert
0 siblings, 1 reply; 5+ messages in thread
From: Kizito Porta Balanyà @ 2015-03-11 12:40 UTC (permalink / raw)
To: cygwin
Hello,
No one is interested in this commented behaviour ?
Or it is expected as designed ?
Thanks a lot for your time.
2015-03-10 10:16 GMT+01:00 Kizito Porta Balanyà <kfeina@gmail.com>:
> Hello,
>
> I'm receiving some rare monit messages related to the sshd service.
>
> The service "cygrunsrv sshd" is not restarted (eventviewer is OK), but
> sometimes (not always) I get the following alerts:
>
>
> Alert 1:
> PID changed Service checkMatching_sshd
> Date: Mon, 09 Mar 2015 16:14:26
> Description: process PID changed from 1968 to 1744
>
> PPID changed Service checkMatching_sshd
> Date: Mon, 09 Mar 2015 16:14:26
> Description: process PPID changed from 5344 to 2860
>
>
> Alert 2:
> PID changed Service checkMatching_sshd
> Date: Mon, 09 Mar 2015 16:14:42
> Description: process PID changed from 1744 to 2464
>
> PPID changed Service checkMatching_sshd
> Date: Mon, 09 Mar 2015 16:14:42
> Description: process PPID changed from 2860 to 5344
>
>
> Does the ssh service changes its own pid?
>
> Thanks a lot for your time.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sshd PID changed
2015-03-11 12:40 ` Kizito Porta Balanyà
@ 2015-03-11 19:57 ` Mark Geisert
2015-04-10 8:13 ` BGINFO4X
0 siblings, 1 reply; 5+ messages in thread
From: Mark Geisert @ 2015-03-11 19:57 UTC (permalink / raw)
To: cygwin
Kizito Porta Balanyà writes:
> No one is interested in this commented behaviour ?
> Or it is expected as designed ?
>
> Thanks a lot for your time.
>
> 2015-03-10 10:16 GMT+01:00 Kizito Porta Balanyà:
> > I'm receiving some rare monit messages related to the sshd service.
> >
> > The service "cygrunsrv sshd" is not restarted (eventviewer is OK), but
> > sometimes (not always) I get the following alerts:
> >
> >
> > Alert 1:
> > PID changed Service checkMatching_sshd
> > Date: Mon, 09 Mar 2015 16:14:26
> > Description: process PID changed from 1968 to 1744
> >
> > PPID changed Service checkMatching_sshd
> > Date: Mon, 09 Mar 2015 16:14:26
> > Description: process PPID changed from 5344 to 2860
Are those Windows pids or Cygwin pids? Was monit built under Cygwin?
Windows processes don't (and can't) change their own pid. Cygwin processes
don't have a need to do it and I don't know if it's even possible (by
mucking around in the shared data segment). I feel unclean even suggesting
it might be possible.
What's likely happening is monit is reporting two separate sshd processes as
if it's talking about the same process. When you login via sshd, another
sshd process is created for your session.
Or perhaps monit is malfunctionally not checking the process startup times
in addition to the process pids to distinguish between them.
HTH,
..mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sshd PID changed
2015-03-11 19:57 ` Mark Geisert
@ 2015-04-10 8:13 ` BGINFO4X
2015-04-10 8:23 ` Fwd: " Kizito Porta Balanyà
0 siblings, 1 reply; 5+ messages in thread
From: BGINFO4X @ 2015-04-10 8:13 UTC (permalink / raw)
To: cygwin
2015-03-11 20:52 GMT+01:00 Mark Geisert <mark@maxrnd.com>:
> Kizito Porta Balanyà writes:
>> No one is interested in this commented behaviour ?
>> Or it is expected as designed ?
>>
>> Thanks a lot for your time.
>>
>> 2015-03-10 10:16 GMT+01:00 Kizito Porta Balanyà:
>> > I'm receiving some rare monit messages related to the sshd service.
>> >
>> > The service "cygrunsrv sshd" is not restarted (eventviewer is OK), but
>> > sometimes (not always) I get the following alerts:
>> >
>> >
>> > Alert 1:
>> > PID changed Service checkMatching_sshd
>> > Date: Mon, 09 Mar 2015 16:14:26
>> > Description: process PID changed from 1968 to 1744
>> >
>> > PPID changed Service checkMatching_sshd
>> > Date: Mon, 09 Mar 2015 16:14:26
>> > Description: process PPID changed from 5344 to 2860
>
> Are those Windows pids or Cygwin pids? Was monit built under Cygwin?
>
Sorry, I missed your answer.
They are cygwin pids and monit was built under cygwin.
> Windows processes don't (and can't) change their own pid. Cygwin processes
> don't have a need to do it and I don't know if it's even possible (by
> mucking around in the shared data segment). I feel unclean even suggesting
> it might be possible.
>
> What's likely happening is monit is reporting two separate sshd processes as
> if it's talking about the same process. When you login via sshd, another
> sshd process is created for your session.
Yes you are right.
Procmatch matches 3 sshd process. I should use PIDFILE instead.
Thanks a lot.
> Or perhaps monit is malfunctionally not checking the process startup times
> in addition to the process pids to distinguish between them.
> HTH,
>
> ..mark
>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fwd: sshd PID changed
2015-04-10 8:13 ` BGINFO4X
@ 2015-04-10 8:23 ` Kizito Porta Balanyà
0 siblings, 0 replies; 5+ messages in thread
From: Kizito Porta Balanyà @ 2015-04-10 8:23 UTC (permalink / raw)
To: cygwin
2015-03-11 20:52 GMT+01:00 Mark Geisert <mark@maxrnd.com>:
> Kizito Porta Balanyà writes:
>> No one is interested in this commented behaviour ?
>> Or it is expected as designed ?
>>
>> Thanks a lot for your time.
>>
>> 2015-03-10 10:16 GMT+01:00 Kizito Porta Balanyà:
>> > I'm receiving some rare monit messages related to the sshd service.
>> >
>> > The service "cygrunsrv sshd" is not restarted (eventviewer is OK), but
>> > sometimes (not always) I get the following alerts:
>> >
>> >
>> > Alert 1:
>> > PID changed Service checkMatching_sshd
>> > Date: Mon, 09 Mar 2015 16:14:26
>> > Description: process PID changed from 1968 to 1744
>> >
>> > PPID changed Service checkMatching_sshd
>> > Date: Mon, 09 Mar 2015 16:14:26
>> > Description: process PPID changed from 5344 to 2860
>
> Are those Windows pids or Cygwin pids? Was monit built under Cygwin?
>
Sorry, I missed your answer.
They are cygwin pids and monit was built under cygwin.
> Windows processes don't (and can't) change their own pid. Cygwin processes
> don't have a need to do it and I don't know if it's even possible (by
> mucking around in the shared data segment). I feel unclean even suggesting
> it might be possible.
>
> What's likely happening is monit is reporting two separate sshd processes as
> if it's talking about the same process. When you login via sshd, another
> sshd process is created for your session.
Yes you are right.
Procmatch matches 3 sshd process. I should use PIDFILE instead.
Thanks a lot.
> Or perhaps monit is malfunctionally not checking the process startup times
> in addition to the process pids to distinguish between them.
> HTH,
>
> ..mark
>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-10 8:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10 11:12 sshd PID changed Kizito Porta Balanyà
2015-03-11 12:40 ` Kizito Porta Balanyà
2015-03-11 19:57 ` Mark Geisert
2015-04-10 8:13 ` BGINFO4X
2015-04-10 8:23 ` Fwd: " Kizito Porta Balanyà
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).