Ad Widget

Collapse

Unable to make Service Actions to work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Natalia Costas
    Junior Member
    • Oct 2022
    • 1

    #1

    Unable to make Service Actions to work

    Dear all,

    This is a 6.00 Zabbix Server setup where I am not able to make Service Actions to work (I have no problem with Trigger actions).

    I configured a test Service and 3 child services.


    ** Main service
    Name: Servicio de frontal SSH
    Tags:
    Name: Service
    Value: Frontal SSH
    Child services:
    Service Problem tags:
    "Frontal 1" service_ssh: frontal-1
    "Frontal 2" service_ssh: frontal-2
    "Frontal 3" service_ssh: frontal-3


    I disable the hosts that have the trigger that affects the service and I can see the child and father services change their status (the children turn from OK to HIGH and the father service turns to WARNING, HIGH or DISASTER).

    After I created a service action. I tried with different conditions but I havent been successful with any of them.
    For example:

    Service action:
    Name: Envio de aviso
    Conditions:
    - Service Equals Frontal 1
    - Service Equals Frontal 2
    - Service Equals Frontal 3
    - Service Equal: Servicio de frontal SSH

    Operations:
    - Send message to Zabbix Administrators via Telegram Inmmediately
    Recovery Operations
    - Send message to Zabbix Administrators via Telegram Inmmediately
    Update operations
    - Send message to Zabbix Administrators via Telegram Inmmediately


    Sending the messages work perfectly for triggers => That shows that media type is configured, and also that the Adminisitrator user has the media assigned.

    I tried to log, in order to guess what happens, but I am unable to understand where is the problem:

    1356675:20221020:104419.201 zbx_setproctitle() title:'service manager Home [processed 1 events, updated 0 event tags, deleted 0 problems, synced 0 service updates, idle 5.694748 sec during 5.695415
    sec]'
    1356675:20221020:104419.201 services : 4 (1009 slots)
    1356675:20221020:104419.201 service tags : 4 (1009 slots)
    1356675:20221020:104419.201 services links : 3 (1009 slots)
    1356675:20221020:104419.201 service problem tags : 3 (1009 slots)
    1356675:20221020:104419.201 service problem tag index : 1 (1009 slots)
    1356675:20221020:104419.201 service problems index : 0 (1009 slots)
    1356675:20221020:104419.201 service matches : 0 (1009 slots)
    1356675:20221020:104419.201 problem events : 2 (1009 slots)
    1356675:20221020:104419.202 recovery events : 0 (2 slots)
    1356675:20221020:104419.202 deleted events : 0 (1009 slots)
    1356675:20221020:104419.202 recovery events : 0 (2 slots)
    1356675:20221020:104419.202 events:
    1356675:20221020:104419.202 eventid:2860 value:1 severity:2 clock:1666246027
    1356675:20221020:104419.202 eventid:248 value:1 severity:4 clock:1665937872
    1356675:20221020:104419.202 actions : 2 (1009 slots)
    1356675:20221020:104419.202 action conditions: 6 (1009 slots)
    1356675:20221020:104419.202 actionid:11 evaltype:0 formula{31} or {32} or {33} or {34})
    1356675:20221020:104419.202 conditionid:31 type:27 op:0 value:1 value2:
    1356675:20221020:104419.202 conditionid:32 type:27 op:0 value:2 value2:
    1356675:20221020:104419.202 conditionid:33 type:27 op:0 value:3 value2:
    1356675:20221020:104419.202 conditionid:34 type:27 op:0 value:4 value2:
    1356675:20221020:104419.202 actionid:12 evaltype:0 formula{35} or {36})
    1356675:20221020:104419.202 conditionid:35 type:28 op:2 value:Frontal value2:
    1356675:20221020:104419.203 conditionid:36 type:28 op:2 value:Service value2:
    1356675:20221020:104419.203 In zbx_ipc_service_recv() timeout:1.000
    1356707:20221020:104419.203 zbx_setproctitle() title:'history syncer Home [processed 0 values, 0 triggers in 0.000179 sec, syncing history]'
    1356707:20221020:104419.203 In zbx_sync_history_cache() history_num:9
    1356707:20221020:104419.203 zbx_setproctitle() title:'history syncer Home [processed 0 values, 0 triggers in 0.001844 sec, idle 1 sec]'
    1356708:20221020:104419.203 End of zbx_process_trigger():FAIL flags:0
    1356708:20221020:104419.203 End of zbx_process_triggers()
    1356708:20221020:104419.203 End of recalculate_triggers()


    Can anyone tell me if they were able to make this work? I could not find any hint.

    Thank you in advance for your help,
    Kind regards,
    Natalia.​

  • zgp
    Junior Member
    • Nov 2023
    • 1

    #2
    Hello Natalia,

    I had similar problems, but in my case at least I could see in the action logs that the mail sending was failed due to no message was defined for media type.
    It was strange as I saw the message templates, but those are for "Problem" message type and here we need "Service" message type (3 for problem and also there are 3 for service).
    So after I added the service ones to the Message templates, it started to send out emails. I hope it helps for you or someone else who also landed on this page searching for solution for similar problem

    Click image for larger version

Name:	Screenshot 2023-11-28 124814.png
Views:	277
Size:	43.4 KB
ID:	474881

    Comment

    Working...