monit-general
[Top][All Lists]
Advanced

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

Re: Radiusd UDP check not working


From: Martin Pala
Subject: Re: Radiusd UDP check not working
Date: Wed, 7 Dec 2011 10:21:25 +0100


On Nov 30, 2011, at 8:33 PM, Johnny Costello wrote:

 
I am trying to configure my radiusd check based on the examples. Monit recognizes if radius is down but I cannot get the UDP check to work.
I set my radius UDP check like the example
 
if failed host 192.168.1.1 port 1812 type udp protocol radius secret testing123 then alert
 
Looking at my logs I see this.
'radiusd' failed protocol test [RADIUS] at INET[192.168.1.1:1812testing123] via UDP


Please can you send the network capture so we can see the communication between monit and radius server?



One other question, How do I use exec with monit to execute multiple commands.
It would only execute the first command in my string and never the second command I want to execute afterwards.

The exec action executes the command directly - it doesn't support shell-like commands. You can wrap the executed commands like this:

if failed … then exec "/bin/bash -c '/my/command1; /my/command2;'"


Regards,
Martin

reply via email to

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