Greetings all,
How can I get monit to not spawn another instance of the start program
if there is already one running?
The reason I ask is that sometimes it can take a couple of seconds to a
minute to connect my pppd device.
<config>
1 check process pppd with pidfile /var/run/ppp0.pid
2 group ppp
3 start program = "/usr/bin/pon dsl-provider"
4 stop program = "/usr/bin/killall -9 pppd"
</config>
<logfile>
Apr 19 08:42:47 firewall monit[7936]: 'pppd' process is not running
Apr 19 08:42:47 firewall monit[7936]: 'pppd' trying to restart
Apr 19 08:42:47 firewall monit[7936]: 'pppd' start:
/usr/bin/pon <--- 1
Apr 19 08:42:47 firewall pppd[23954]: Plugin rp-pppoe.so loaded.
Apr 19 08:42:47 firewall pppd[23957]: pppd 2.4.4b1 started by root, uid 0
Apr 19 08:43:33 firewall monit[7936]: 'pppd' process is not running
Apr 19 08:43:33 firewall monit[7936]: 'pppd' trying to restart
Apr 19 08:43:33 firewall monit[7936]: 'pppd' start:
/usr/bin/pon <--- 2
Apr 19 08:43:33 firewall pppd[23984]: Plugin rp-pppoe.so loaded.
Apr 19 08:43:33 firewall pppd[23987]: pppd 2.4.4b1 started by root, uid 0
Apr 19 08:43:33 firewall pppd[23987]: PPP session is 231
Apr 19 08:43:33 firewall pppd[23987]: Using interface ppp0
Apr 19 08:43:33 firewall pppd[23987]: Connect: ppp0 <--> eth0
Apr 19 08:43:50 firewall monit[7936]: 'pppd' process is running with pid
23987
Apr 19 08:43:53 firewall pppd[23957]: Timeout waiting for PADS packets
Apr 19 08:43:53 firewall pppd[23957]: Unable to complete PPPoE Discovery
Apr 19 08:44:03 firewall pppd[23987]: No response to PAP
authenticate-requests
Apr 19 08:44:03 firewall pppd[23987]: Connection terminated.
Apr 19 08:44:23 firewall pppd[23957]: PPP session is 232
Apr 19 08:44:23 firewall pppd[23957]: Using interface ppp0
Apr 19 08:44:23 firewall pppd[23957]: Connect: ppp0 <-->
eth0 <-- 1 begin connect
Apr 19 08:44:45 firewall pppd[23957]: PAP authentication succeeded
Apr 19 08:44:45 firewall pppd[23957]: peer from calling number
xx:xx:xx:xx:xx:xx authorized
Apr 19 08:44:45 firewall pppd[23957]: Cannot determine ethernet address
for proxy ARP
Apr 19 08:44:45 firewall pppd[23957]: local IP address xxx.xxx.xxx.xxx
Apr 19 08:44:45 firewall pppd[23957]: remote IP address
xxx.xxx.xxx.xxx <-- 1 connected
Apr 19 08:45:08 firewall pppd[23987]: Timeout waiting for PADS
packets <-- 2 starts timeing out
Apr 19 08:45:08 firewall pppd[23987]: Unable to complete PPPoE Discovery
Apr 19 08:45:59 firewall monit[7936]: 'pppd' process PID changed to 23957
Apr 19 08:46:13 firewall pppd[23987]: Timeout waiting for PADS packets
Apr 19 08:46:13 firewall pppd[23987]: Unable to complete PPPoE Discovery
Apr 19 08:47:18 firewall pppd[23987]: Timeout waiting for PADS packets
Apr 19 08:47:18 firewall pppd[23987]: Unable to complete PPPoE Discovery
Apr 19 08:47:33 firewall monit[7936]: 'pppd' PID has not changed
Apr 19 08:48:23 firewall pppd[23987]: Timeout waiting for PADS packets
Apr 19 08:48:23 firewall pppd[23987]: Unable to complete PPPoE Discovery
Apr 19 08:48:38 firewall pppd[23987]: Terminating on signal 15
Apr 19 08:48:38 firewall pppd[23987]:
Exit. <-- 2 killed by me but it will
eventially timeout completly and quit
</logfile>
Hope this is enough information...
IF there is nothing I can do then so be it, but it would be nice to know...
Thank you,
Clifford.
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general