Ad Widget

Collapse

New Feature Request: move UserParameter=xxx into zabbix db

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eric
    Junior Member
    • Mar 2006
    • 10

    #1

    New Feature Request: move UserParameter=xxx into zabbix db

    Hello All,

    I would like to suggest storing extended agent data collection, (i.e., UserParameter=xxx) in the zabbix data base instead of the agent.conf file and sending the information to the agent automatically would be an *huge* improvment. Making management of the system and also the ability to 'veiw' the actual command used to collect the data an easy task.

    Also, if implemented, we would not have to update the zabbix_agent.conf unless we changed 'agent' configuration (ip address, logging, debug level)

    Regards,

    Eric
  • welkin
    Senior Member
    • Mar 2007
    • 132

    #2
    i would rather call this a "huge security issue" than a "huge improvement". Right now you can limit the commands which can be executed in the agent conf. If the configuration of remote commands is stored server side only the server limits the commands executed by zabbix agent, so if the zabbix server gets compromised the attacker has shell access to all servers with agents installed.


    regards welkin

    Comment

    • Calimero
      Senior Member
      • Nov 2006
      • 481

      #3
      Originally posted by Eric
      Hello All,

      I would like to suggest storing extended agent data collection, (i.e., UserParameter=xxx) in the zabbix data base instead of the agent.conf file and sending the information to the agent automatically would be an *huge* improvment. Making management of the system and also the ability to 'veiw' the actual command used to collect the data an easy task.

      Also, if implemented, we would not have to update the zabbix_agent.conf unless we changed 'agent' configuration (ip address, logging, debug level)
      That already exists and is called "remote commands". See item 'system.run' ... that allows you to run any command and have zabbix_agent return the output.

      But as said welkin keep in mind that this comes at at cost in terms of security.

      Comment

      • Eric
        Junior Member
        • Mar 2006
        • 10

        #4
        Welkin,

        1) The agent should only respond to the server which is in its' .conf file. If there are ways to get around that it should be covered under the topic of security such as adding ssl communications.

        2) as Calimero points out, the zabbix server can already execute command by clicking on a a host name which displays a pop up with a list of scripts that are configured on the server side. This is not at all what I am talk about. I would like to all UserParameter commands moved from the agent conf file into the zabbix data base.

        Eric

        Comment

        • Calimero
          Senior Member
          • Nov 2006
          • 481

          #5
          Originally posted by Eric
          This is not at all what I am talk about. I would like to all UserParameter commands moved from the agent conf file into the zabbix data base.
          As I said, that already exists: use 'system.run[]' instead of UserParameters.

          Comment

          • Eric
            Junior Member
            • Mar 2006
            • 10

            #6
            Salut Calimero,

            It appears that system.run[] returns text only. If so, this is not very useful for collecting numeric performance data. I still think that having so many external config files is a maintenance issue for large deployments. I am open to other suggestions.

            Eric

            Comment

            • Calimero
              Senior Member
              • Nov 2006
              • 481

              #7
              Nope. You can store values as floats or integers... You can do anything you want with system.run[]/remote commands.

              Comment

              • Eric
                Junior Member
                • Mar 2006
                • 10

                #8
                Calimero,

                I see that my original request is already on the wiki requests page (see below).

                system.run does not function correctly. I'll wait for the request below.

                Thanks for you help.

                Eric

                http://www.zabbix.com/wiki/doku.php?id=contrib:ideas

                .
                .


                Agent configuration management

                There should be a possibility to change agent configuration centrally, from the Zabbix server. Parts that should be centrally manageable:

                *
                all of the agent configuration, including user parameters (maybe as a separate file that takes precedence over default config, so that this does not interfere with normal packaging ?);
                *
                script management

                Decent security model is critical.

                Comment

                • Tenzer
                  Senior Member
                  • Nov 2007
                  • 316

                  #9
                  I think that you should make it as a ticket in the Zabbix feature requests Jira, found at https://support.zabbix.com/browse/ZBXNEXT instead. It seems to be the place used for such requests.

                  Comment

                  • Calimero
                    Senior Member
                    • Nov 2006
                    • 481

                    #10
                    Originally posted by Eric
                    I see that my original request is already on the wiki requests page (see below).

                    system.run does not function correctly. I'll wait for the request below.
                    You should file bug reports if system.run doesn't work.

                    Originally posted by Eric
                    Agent configuration management

                    There should be a possibility to change agent configuration centrally, from the Zabbix server. Parts that should be centrally manageable:

                    *
                    all of the agent configuration, including user parameters (maybe as a separate file that takes precedence over default config, so that this does not interfere with normal packaging ?);
                    *
                    script management

                    Decent security model is critical.
                    Unless we have a "decent security model", for example SSL certificate security, it seems like a rather lousy idea to have zabbix agent remotely configured because that means you essentially give remote code execution permission to anyone able to spoof a IP on your network.

                    And using remote commands currently sucks too.

                    I'm not sure zabbix_agent should be turned into a file deployment / configuration management tool (because that's the problem: deploying monitoring scripts. Running them is not a problem). There are tools much better suited for that task (puppet, cfengine for the open-source players, but there are many others) and if you have lots of hosts you probably already use those very tools to manage every other aspect of your system.

                    Comment

                    Working...