Ad Widget

Collapse

The monitoring item with the key "system.run" cannot be added to the template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cianyeah
    Junior Member
    • Feb 2023
    • 8

    #1

    The monitoring item with the key "system.run" cannot be added to the template

    I attempted to add a monitoring item in a template or host. The type is set to "Zabbix agent (active)", the key is system.run[ipconfig], and the information type is "Text". However, after clicking the "Add" button, the browser immediately shows "Hmmm... can't readch this page. The connection was reset." without displaying any error messages on the page.

    No matter what I put inside system.run[], I can't add it. However, if I only use "system.run", it can be added normally. But this doesn't allow me to execute the command I want. The Zabbix server version is 6.0.8. Can anyone help me with this issue? Thank you.

    Click image for larger version

Name:	image.png
Views:	631
Size:	55.1 KB
ID:	490772Click image for larger version

Name:	image.png
Views:	518
Size:	25.1 KB
ID:	490773

    I connected directly to the database using a tool and modified the contents of the key_ field in the items table, which allowed me to set system.run["tasklist"] as the key value.

    However, the web page still does not allow me to submit it normally. Is there some kind of interception happening during Zabbix's parameter-passing process?​

    Click image for larger version

Name:	image.png
Views:	384
Size:	5.3 KB
ID:	490774​​​
  • kamil1
    Member
    • Aug 2024
    • 40

    #2
    Hi,
    do you have all the required settings for remote commands such as EnableRemoteCommands set to '1'?
    For the reference see:

    Comment

    • Dwayne
      Junior Member
      • Feb 2025
      • 9

      #3
      not having enable remote commands would impact monitoring not cause the GUI to crash. the issue as mentioned was GUI crash when you use system.run[<bla>].

      cant say I've ever seen that. Many may not even be using system.run to be able to comment on that either. After all you can get a process list/nic list from the built in types, and of curse when they don't have the details you need a wmi or registry query will likely have everything you might need

      ie instead of tasklist:

      wmi.getall[root\cimv2,SELECT * FROM Win32_Process]

      Comment

      Working...