(service|host)_notification_commands

Frank, Jason JasonFrank at srcp.com
Wed Jul 27 18:52:34 CEST 2005


Possibly not. Your command2 will only execute if command1 is successful
(returns 0.)  If you want for command2 to run regardless of the return
status of command1, use this:

command1; command2 


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andrew
Cruse
Sent: Wednesday, July 27, 2005 11:43 AM
To: 'Ken Dyke'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Re: (service|host)_notification_commands

nagios-users-admin at lists.sourceforge.net wrote:

> Dropping the above for now as I need a solution today.  When defining 
> a command, what is the syntax for executing two commands on the 
> "command_line"?

This is completely untried, but wouldn't:

"command1 && command2"

work?

Andrew



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list