Ad Widget

Collapse

Monitor changes to all /etc/conf files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getstuk
    Junior Member
    • Oct 2013
    • 17

    #1

    Monitor changes to all /etc/conf files

    I need to monitor changes to various files (/etc/sysconfig/iptables, /etc/php.ini, etc). I have the triggers setup as such which works for the /etc/passwd file by default:

    {Custom Linux:vfs.file.cksum[/etc/sysconfig/iptables].diff(0)}>0


    They apply to my "Custom Linux" template but there is no data being collected. Do I need to custom define checks inside of the zabbix_agentd.conf, restart the agents, do I need to restart zabbix, what is the problem?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Since this is a native function of the Zabbix agent, no, you do not have to define anything in the zabbix_agentd.conf, nor do you have to restart your agent for it to take affect.

    I just tested it on my Zabbix App server and it appears to be working correctly.
    I used your example for /etc/php.ini and as you can see, it immediately started collecting data. What do you have your interval set at?

    Can you show me the "item" you are using for /etc/php.ini ?
    Attached Files
    Last edited by tchjts1; 07-11-2013, 19:57.

    Comment

    • getstuk
      Junior Member
      • Oct 2013
      • 17

      #3
      I've attached a picture of what it looks like. The interval is at 1 hour and still has not started reading values. I applied this to a template, did you apply yours to a template or an individual host? Should not make a difference.
      Attached Files

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        If you have the interval at an hour, it is going to take an hour to get your first data in. has it been over an hour since you applied it?

        And you do have that template linked to the host in question?
        What do you see when you go to that specific host and look at that item? All the way out to the right should be either a green checkmark or a red X. if it is a red X, hover over the X and see what the error is.

        I applied my item at the host level.

        Comment

        • getstuk
          Junior Member
          • Oct 2013
          • 17

          #5
          They are green next to the items, they are properly attached via a template to that host. I have double checked when I look at the host that the items are there, and they are. There is nothing in the "latest data" page with regard to those new items and triggers I've added. I added the items to the template, and then triggers, nothing else. Am I missing a step? It has been well over an hour.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            I can't see that you are missing any steps.

            Just out of curiosity, try these steps:

            Go to Configuration --> Screens
            Create screen
            Give it a name and click save
            Click on the screen name that you just created
            Click on "Change" link in the screen cell
            Change the frst dropdown "Resource" from Graph to Simple Graph
            At the "Parameter" box, click on "Select" at the far right
            On the pop-up window, pick the correct host from the dropdown menus and click on the correct item to insert it into the screen and save it.

            Now go to Monitoring --> Screens and select the screen you just created. Is there any data in that graph?

            Comment

            • getstuk
              Junior Member
              • Oct 2013
              • 17

              #7
              If I click "show items with no data" in the "Latest data" page, I can see that no data is ever collected. But at least they show up now. This could be a huge feature of Zabbix if I could figure it out, I'm not sure if certain machines just don't have access to these directories under user "zabbix" or...

              Comment

              • getstuk
                Junior Member
                • Oct 2013
                • 17

                #8
                Also, I just tried your solution, no luck. No data is on the graph :\

                Comment

                • getstuk
                  Junior Member
                  • Oct 2013
                  • 17

                  #9
                  Ahah! So it might be a permissions issue. On some machines there are values...see attachment. But all values are not present on some machines, so I'm assuming it's a permissions denied type situation. I'll check the zabbix agent logs and see what I find. Progress at last.
                  Attached Files

                  Comment

                  Working...