monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] SSHD pid and parent pid is -1


From: SULLIVAN, Ben
Subject: [monit] SSHD pid and parent pid is -1
Date: Tue, 17 Mar 2009 16:13:20 +1000

Hi

I have installed monit on our Solaris server and used the sshd config example 
from docs in the distributable to perform a shakedown test.  I am seeing -1 for 
sshd pid and parent pid.  This also happens for the kms application I am hoping 
to monitor once shakedown is complete.  Details below.

Other than a pid file, what are the prerequisites for monit to manage a Solaris 
process?  Are there naming conventions that need to be adhered to for 
process/service names for monit to functiona correctly?  Does monit need to run 
as root?  I have installed it as a non-root user under the home directory using 
the --prefix option with the configure script.

Please advise....

Cheers

Ben



Platform:

SunOS 5.10 Generic_137111-08 sun4u sparc SUNW,SPARC-Enterprise (64 bit)

monitrc:

set daemon 1
set logfile /data/home/kplus4/monit.log
#set mailserver mail.foo.bar            # Default smtp server is localhost
#set alert address@hidden               # Alert system admin on any event
set httpd port 2812
allow localhost
allow 10.40.74.7
allow tsrdev:********
check process sshd with pidfile /var/run/sshd.pid
check process kms with pidfile /tmp/kplus-pid/kms.pid

verbose monit.log:

[ Mar 17 16:00:09] debug    : monit: pidfile '/data/home/kplus4/.monit.pid' 
does not exist
[ Mar 17 16:00:09] info     : Starting monit daemon with http interface at 
[*:2812]
[ Mar 17 16:00:09] info     : Starting monit HTTP server at [*:2812]
[ Mar 17 16:00:09] info     : monit HTTP server started
[ Mar 17 16:00:09] info     : 'konst1' Monit started
[ Mar 17 16:00:10] info     : 'konst1' Monit has not changed


screenshots of web client (see attached)





This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its 
related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 
55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author and does 
not necessarily reflect the view of Suncorp. The content, including 
attachments, is a confidential communication between Suncorp and the intended 
recipient. If you are not the intended recipient, any use, interference with, 
disclosure or copying of this e-mail, including attachments, is unauthorised 
and expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and delete the e-mail and any attachments from 
your system.
If this e-mail constitutes a commercial message of a type that you no longer 
wish to receive please reply to this e-mail by typing Unsubscribe in the 
subject line.

Attachment: monit-home.png
Description: monit-home.png

Attachment: monit-sshd.png
Description: monit-sshd.png


reply via email to

[Prev in Thread] Current Thread [Next in Thread]