Hi

I have a monitor that monitors certain ports on an Ubuntu Server.

When the monitor fires an action - how do I define an action to perform an action on the ubuntu host? Say i wan't to monitor TCP port 25 for my mail-server and when that fails, then I would like to restart my SMTP Server on that host.

manually - i would log in using ssh, and run the "sudo service postfix restart" command - but how to do that in the form of an action

Br Poul

asked 17 Sep '14, 06:55

plc's gravatar image

plc
133
accept rate: 0%


It sounds like you are running on a older version, try upgrading to the latest version.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 23 Sep '14, 09:12

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Hi

That looks great, but I only have VBScript, JavaScript and PowerShell options, where do I find the SSH Script option?

link

answered 22 Sep '14, 18:06

plc's gravatar image

plc
133
accept rate: 0%

Hi Poul,

Thanks for the question! We do have an Execute Script Action that you can use to run SSH commands. Click on this link to view the SSH variables.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 22 Sep '14, 10:38

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×4

Asked: 17 Sep '14, 06:55

Seen: 7,238 times

Last updated: 23 Sep '14, 09:12