Ad Widget

Collapse

Get systemctl ExecStart and get checksum this file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Viewer
    Senior Member
    • Oct 2012
    • 131

    #1

    Get systemctl ExecStart and get checksum this file

    Hello friends,
    I Use systemd.unit.discovery for services. And I use item prototype systemd.unit.info["#UNIT.NAME", ExecStart,Service] with regex Preprocessing.
    I get ITEM string "/usr/share/myservice/myservice.dll".
    I want to use vfs.file.cksum in New ItemPrototype for this ItemValue, but I don't know how...
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Originally posted by rehman87
    Hello,

    As per your post i give you some informaiton pleaes see below..

    To use vfs.file.cksum in a new ItemPrototype for the ItemValue "/usr/share/myservice/myservice.dll", you can follow these steps:
    1. Create a new ItemPrototype for the desired host or host group.
    2. Set the key field to the same value as the original ItemPrototype.
    3. In the "Applications" tab, add a new application.
    4. In the "Conditions" tab of the new application, specify the host or host group where this should be applied.
    5. In the "Operations" tab, add a new operation.
    6. Select "vfs.file.cksum" as the operation type.
    7. In the "Conditions" tab of the operation, specify the item key to match the ItemPrototype.
    8. Save the changes.
    This should allow you to use vfs.file.cksum for the specified ItemValue.


    Let me know if you need any further assistance! I am happy to help you.


    ballsportsgames​
    Best regard,
    rehman87
    What is this ? What applications tab? What condition tab? What operations tab? Another chatgpt warrior here?

    Comment

    • Viewer
      Senior Member
      • Oct 2012
      • 131

      #3
      Originally posted by cyber

      What is this ? What applications tab? What condition tab? What operations tab? Another chatgpt warrior here?
      At first I was happy, but now I am sad again

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4

        Originally posted by Viewer
        Hello friends,
        I Use systemd.unit.discovery for services. And I use item prototype systemd.unit.info["#UNIT.NAME", ExecStart,Service] with regex Preprocessing.
        I get ITEM string "/usr/share/myservice/myservice.dll".
        I want to use vfs.file.cksum in New ItemPrototype for this ItemValue, but I don't know how...
        Well.. there's the problem, you cannot create that prototype there, you do not have the value for that item at unit discovery time (unit discovery does not return it), it will only appear after your discovery has created items and you start receiving values for them.

        ​

        Comment

        • Viewer
          Senior Member
          • Oct 2012
          • 131

          #5
          Does anyone have an idea?

          Comment

          Working...