|Subject:||Re: monit file for sendmail|
|Date:||Mon, 13 Jun 2016 09:09:05 +0200|
Why ntp problem is mixed with sendmail log and configuration ?
Did you mixed 2 issues ?
I seem to be unable to correctly monitor the NTP service on RedHat 7x , (system)
My file is currently
check process sendmail with pidfile /var/run/sendmail.pid
start program = "/usr/bin/systemctl start sendmail.service"
stop program = "/usr/bin/systemctl stop sendmail.service"
I get the following error in the /var/log/monit.log
[BST Jun 9 11:52:30] error : 'ntpd' process is not running
[BST Jun 9 11:52:30] info : 'ntpd' trying to restart
[BST Jun 9 11:52:30] info : 'ntpd' start: /usr/bin/systemctl
[BST Jun 9 11:53:00] error : 'ntpd' failed to start (exit status 0) -- no output
What am I missing? the stop and start commands run from the cli
Redirecting to /bin/systemctl status sendmail.service
● sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-06-10 14:31:10 BST; 12s ago
Process: 21293 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
Process: 21287 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
Process: 21286 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
Main PID: 21296 (sendmail)
└─21296 sendmail: accepting connections
Jun 10 14:31:10 monit01.hsa.co.uk sendmail: starting daemon (8.14.7): address@hidden:00:00
The content of this email is private. If you think you may have received it by mistake, please notify Simplyhealth immediately by telephoning us on 0300 100 1030, or emailing address@hidden then destroy the original email without using, copying or distributing it.
The content is non binding and is subject to contract unless specifically stated otherwise. Any views expressed are not necessarily those of Simplyhealth.
Simplyhealth is a trading name of Simplyhealth Access and Totally Active Limited, both are subsidiaries of Simplyhealth Group Limited, registered in England and Wales No. 5445654. The registered office for all Simplyhealth companies is Hambleden House, Waterloo Court, Andover, Hampshire SP10 1LQ.
Simplyhealth Access is registered in England and Wales, No.183035 and is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority.
AXA PPP Administration Services Limited is registered in England and Wales, No. 5961472 and is an appointed representative of Simplyhealth Access.
Totally Active Limited is registered in England and Wales, No. 4932453 and is authorised and regulated by the Financial Conduct Authority for consumer credit activities. Totally Active Limited is an Appointed Representative of Fish Administration Limited, who are authorised and regulated by the Financial Conduct Authority, for insurance mediation activities.
Calls may be recorded and monitored for training and quality assurance purposes.
|[Prev in Thread]||Current Thread||[Next in Thread]|