Ad Widget

Collapse

Action Operation is defined to Send Email - nothing is sent upon Action run

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • J_Adatasol
    Member
    • Dec 2018
    • 74

    #1

    Action Operation is defined to Send Email - nothing is sent upon Action run

    I have an Action defined that has 2 Operation steps: one to send an email, the 2nd to activate a custom UserParameter on the Agent's Host. The remote script call does appear to work (albeit the script isn't working right... but that is in my other thread), but the email step doesn't work at all. There's no error message about it - it just doesn't get run. It's as if the Action utterly ignores that Step.

    I have set up the Media correctly; when I run the test from there (very handy Test button - I wish it was used more widely) I do get an email.

    The Problem is fired, and entries under the 'Action' column do show up in the entry for that problem... but only the Remote Command shows up. The 'Send message' step does not show up, and I am not getting any messages, either.

    Click image for larger version

Name:	Screen Shot 2020-04-29 at 16.38.43 .png
Views:	381
Size:	22.6 KB
ID:	400431


    Here's the Action setup:

    Click image for larger version

Name:	Screen Shot 2020-04-29 at 16.30.22 .png
Views:	422
Size:	65.5 KB
ID:	400430


    The Step definition page says that EITHER the Group or User needs to be defined. I am not using the Group, but the User is configured:

    Click image for larger version

Name:	Screen Shot 2020-04-29 at 16.42.09 .png
Views:	403
Size:	61.8 KB
ID:	400432

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Does it change if you move the remote command to step 2?

    Does the user that you are trying to notify have "read" permission on the host in question?

    I don't expect that there will be anything in Reports->Action log for this event, but it's worth checking to see if it says anything.

    Comment

    • J_Adatasol
      Member
      • Dec 2018
      • 74

      #3
      Hi Tim,

      Thanks for the hints.

      1) I switched around the sequence of steps in the Operation: First = Remote Command, Second = Send Message. It still only performed the Remote Command portion.

      2) Checked the Logs: only shows the Remote Command portion

      3) Not quite sure about the suggestion about 'Does the user that you are trying to notify have "read" permission on the host in question?'...
      - Not sure what to check here - the user being notified in the email does not specifically have a login on the 'Host' being monitored.
      - Ah! YES - this was the solution to the emails not going out! Under Administration -> User Groups, you can grant Permissions. (It is only to Groups, not individual users, apparently.) And then, you grant permissions to ... a grouping of Hosts, not individual Hosts. (Not quite sure how the grouping of Hosts is defined...)

      So that part is solved.

      Follow up: The email I receive is not formatted nicely in my email client - the content does not have the line separations that I added to the message content. It's like it's a plain-text message that is displaying as HTML, so the white-space is ignored. I will do some research on that, but any quick suggestions would be appreciated. (I am porting this Zabbix server over from a v3.5 Zabbix, to a v4.4 one. The emails looked fine coming from the v3.5 server.)

      Click image for larger version

Name:	Screen Shot 2020-04-30 at 7.59.32 .png
Views:	490
Size:	35.6 KB
ID:	400511

      Comment

      • J_Adatasol
        Member
        • Dec 2018
        • 74

        #4
        [QUOTE=J...And then, you grant permissions to ... a grouping of Hosts, not individual Hosts. (Not quite sure how the grouping of Hosts is defined...)[/QUOTE]

        Ah, there is the spot: Configuration -> Host Groups.

        Comment

        Working...