monit-general
[Top][All Lists]
Advanced

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

EXEC not working Help Help Help


From: rushi
Subject: EXEC not working Help Help Help
Date: Tue, 23 May 2006 09:25:32 +0530

the version is monit4.8.1 i have installed tar.gz with linux 7.2 after
excluding the dependencies


well the expected behaviour of the monit should be that it should atleast
execute the script test.sh


the script is like this   TEST.SH

/etc/rc.d/init.d/heartbeat stop


The MONITRC is

>> set daemon 5 # Poll at 5 seconds intervals
>> set logfile syslog facility log_daemon
>> set httpd port 2812 and use address 192.168.13.55
>>      allow 192.168.7.51
>>      allow 192.168.1.114 # Allow localhost to connect
>>      allow admin:monit # Allow Basic Auth
>> check process mysql with pidfile /var/lib/mysql/manage.pid
>>
>>    start program = "/etc/ha.d/resource.d/sqld start"
>>    stop program = "/etc/ha.d/resource.d/sqld stop"
>>         if changed pid
>>                 then EXEC "/etc/test.sh"
>>
>>    if failed host 127.0.0.1 port 3306 protocol mysql
>>                 then EXEC "/etc/test.sh"
>>


but it is not executing that exec part

even i tried with other options that has been given in the site
configuration examples with snmp pop3 sendmail etc but anywhere the EXEC
part is not working



may i know the reason



well help me its urgent.....


if i can have your chat id or something else it would help me a lot .... .




regards,
Rushiraj


----- Original Message -----
From: <
address@hidden>
To: <
address@hidden>
Sent: Monday, May 22, 2006 9:21 PM
Subject: monit-general Digest, Vol 40, Issue 13


> Send monit-general mailing list submissions to
>
address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
http://lists.nongnu.org/mailman/listinfo/monit-general
> or, via email, send a message with subject or body 'help' to
>
address@hidden
>
> You can reach the person managing the list at
>
address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of monit-general digest..."
>
>
> Today's Topics:
>
>   1. EXEC not working  Help Help Help ..... (rushi)
>   2. Re: EXEC not working  Help Help Help ..... (Martin Pala)
>   3. Re: Setting Mailserver with diferents time outs
>      (Jan-Henrik Haukeland)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 22 May 2006 17:39:13 +0530
> From: "rushi" <
address@hidden>
> Subject: EXEC not working  Help Help Help .....
> To: <
address@hidden>
> Message-ID: <
address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Skipped content of type multipart/related-------------- next
> part --------------
> ------------------------------------
> eLitecore Technologies Ltd
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 May 2006 15:16:25 +0200
> From: Martin Pala <
address@hidden>
> Subject: Re: EXEC not working  Help Help Help .....
> To: This is the general mailing list for monit
> <
address@hidden>
> Message-ID: <
address@hidden>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Hi,
>
> 1.) which monit version is it?
>
> 2.) what is expted behavior and what is wrong with exec?
>
> 3.) please run monit in verbose mode: "monit -vI", replicate the state
> where you expect EXEC to be performed and send use the output
>
> 4.) please attach the mentioned /etc/test.sh
>
> Thanks,
> Martin
>
>
> rushi wrote:
>> please help me out i am  working on monit since last three days and not
>> getting the EXEC work my configuration file is as below
>>
>>
>>
>> set daemon 5 # Poll at 5 seconds intervals
>> set logfile syslog facility log_daemon
>> set httpd port 2812 and use address 192.168.13.55
>>      allow 192.168.7.51
>>      allow 192.168.1.114 # Allow localhost to connect
>>      allow admin:monit # Allow Basic Auth
>> check process mysql with pidfile /var/lib/mysql/manage.pid
>>
>>    start program = "/etc/ha.d/resource.d/sqld start"
>>    stop program = "/etc/ha.d/resource.d/sqld stop"
>>         if changed pid
>>                 then EXEC "/etc/test.sh"
>>
>>    if failed host 127.0.0.1 port 3306 protocol mysql
>>                 then EXEC "/etc/test.sh"
>>
>>
>>
>> plese somebody help me out
>>
>>
>>
>>
>> waiting for the earliest reply...
>>
>>
>>
>> <
http://elitecore.com> Impossible itself Says I M Possible
>>
>>
>> *Rushiraj Rathod*
>> /Software Engineer/ *Elitecore Technologies*
>> 904,Silicon Towers,
>> Off. C.G.Road,
>> Ahmedabad 380006
>>
address@hidden <mailto:address@hidden>
>> tel:
>> fax:
>> mobile: +91 79 2640 5600 #270
>> +91 79 2640 7640
>> +91 98981 96971
>>
>>
>>
>> /Add me to your address book.../
>> <
https://www.plaxo.com/add_me?u=47245968310&v0=2634698&k0=1301551471&v1=2634699&k1=587599293>
>> /Want a signature like this?/ <
http://www.plaxo.com/signature>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ------------------------------------
>> eLitecore Technologies Ltd
>>
>>
>> ------------------------------------------------------------------------
>>
>> --
>> To unsubscribe:
>>
http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 22 May 2006 16:32:07 +0200
> From: Jan-Henrik Haukeland <
address@hidden>
> Subject: Re: Setting Mailserver with diferents time outs
> To: This is the general mailing list for monit
> <
address@hidden>
> Message-ID: <
address@hidden>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> On 19. mai. 2006, at 19.15, hans wrote:
>
>> I am using Monit 4.8.1 on RHEL ES release 4.
>> I have been reading the documentation and it didn't say it or meaby i
>> dont understand.. which its posible.... It isnt posible set up two or
>> more mailservers with a specific timeout?. i tried it, but it didnt
>> workout.
>
> That's right. The timeout is optionally added to the end of the mail
> server list and apply to all servers. This is what we try to say here
> in the manual;
>
>  SET MAILSERVER {host name [PORT port]|ip-address [PORT port]}+
>                 [with TIMEOUT X SECONDS]
>
> --
> Jan-Henrik Haukeland
> Mobil +47 97141255
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> monit-general mailing list
>
address@hidden
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> End of monit-general Digest, Vol 40, Issue 13
> *********************************************
>


--------------------------------------------------------------------------------


> ------------------------------------
> eLitecore Technologies Ltd

Impossible itself Says I M Possible
Rushiraj Rathod
Software Engineer
Elitecore Technologies
904,Silicon Towers,
Off. C.G.Road,
Ahmedabad 380006
address@hidden
tel:
fax:
mobile:
+91 79 2640 5600 #270
+91 79 2640 7640
+91 98981 96971
Add me to your address book... Want a signature like this?
------------------------------------
eLitecore Technologies Ltd

reply via email to

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