Ad Widget

Collapse

Ubuntu Linux OS Processes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wdw
    Junior Member
    • Jul 2024
    • 5

    #1

    Ubuntu Linux OS Processes

    I am running Ubuntu 22.04 and Zabbix 6.4.15. I am wanting to see/monitor the OS Processes. I have the template 'OS Processes by Zabbix Agent' selected and applied. However, I do not see any data as it relates to the OS Processes in the 'Latest Data' or anywhere else for the host.

    Do I need to add anything in the Zabbix Agent configuration file? I'm likely missing something small and hoping someone can point me in the right direction.
  • NgRox
    Member
    • Jun 2022
    • 44

    #2
    Access the discovery part and see if there are any errors, if not, check the zabbix agent logs for that Linux

    If possible, send here a print of the discovery tab on the host and also the last 100 lines of the agent's log!

    yours sincerely

    Comment

    • wdw
      Junior Member
      • Jul 2024
      • 5

      #3
      I found this error in the logs:
      3846296:20240712:191018.630 using configuration file: /etc/zabbix/zabbix_agentd.conf
      3846296:20240712:191018.630 cannot load user parameters: user parameter "proc.get,ps -AH": key "proc.get" already exists
      3846296:20240712:191018.630 Zabbix Agent stopped. Zabbix 6.4.15 (revision 09711f1760b).
      3846308:20240712:191030.880 Starting Zabbix Agent [10.100.4.52]. Zabbix 6.4.15 (revision 09711f1760b). zz0.n379bh93vszz

      I need to figure out what is using that key I think.

      Comment

      • wdw
        Junior Member
        • Jul 2024
        • 5

        #4
        So I setup a fresh Ubuntu 22.04 host and installed the Zabbix Agent. The only two templates attached is 'Linux by Zabbix Agent' and 'OS Processes by. Zabbix Agent'. I still get no active data from the host regarding OS Processes. The zabbix_agent.log shows only the following:

        77155:20240715:005327.956 Zabbix Agent stopped. Zabbix 6.4.16 (revision 0bc8c627cc0).
        77173:20240715:005327.970 Starting Zabbix Agent [10.100.4.50]. Zabbix 6.4.16 (revision 0bc8c627cc0).
        77173:20240715:005327.970 **** Enabled features ****
        77173:20240715:005327.970 IPv6 support: YES
        77173:20240715:005327.970 TLS support: YES
        77173:20240715:005327.970 **************************
        77173:20240715:005327.971 using configuration file: /etc/zabbix/zabbix_agentd.conf
        77173:20240715:005327.971 agent #0 started [main process]
        77174:20240715:005327.971 agent #1 started [collector]
        77175:20240715:005327.972 agent #2 started[listener #1]
        77176:20240715:005327.972 agent #3 started[listener #2]
        77177:20240715:005327.973 agent #4 started[listener #3]
        77178:20240715:005327.976 agent #5 started [active checks #1]

        There are no errors in the log file. The zabbix_server.log file on the actual Zabbix server shows no errors either. Is there a way to make the logging more verbose such as showing debug output?

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          Originally posted by wdw
          The zabbix_server.log file on the actual Zabbix server shows no errors either. Is there a way to make the logging more verbose such as showing debug output?
          Yes. Both the zabbix_agentd and the zabbix_server have manual pages that should have been installed with the packages. There is a runtime-control option described in the manual page. It can be used to dynamically increase or decrease logging.

          Comment

          • NgRox
            Member
            • Jun 2022
            • 44

            #6
            Originally posted by wdw
            So I setup a fresh Ubuntu 22.04 host and installed the Zabbix Agent. The only two templates attached is 'Linux by Zabbix Agent' and 'OS Processes by. Zabbix Agent'. I still get no active data from the host regarding OS Processes. The zabbix_agent.log shows only the following:

            77155:20240715:005327.956 Zabbix Agent stopped. Zabbix 6.4.16 (revision 0bc8c627cc0).
            77173:20240715:005327.970 Starting Zabbix Agent [10.100.4.50]. Zabbix 6.4.16 (revision 0bc8c627cc0).
            77173:20240715:005327.970 **** Enabled features ****
            77173:20240715:005327.970 IPv6 support: YES
            77173:20240715:005327.970 TLS support: YES
            77173:20240715:005327.970 **************************
            77173:20240715:005327.971 using configuration file: /etc/zabbix/zabbix_agentd.conf
            77173:20240715:005327.971 agent #0 started [main process]
            77174:20240715:005327.971 agent #1 started [collector]
            77175:20240715:005327.972 agent #2 started[listener #1]
            77176:20240715:005327.972 agent #3 started[listener #2]
            77177:20240715:005327.973 agent #4 started[listener #3]
            77178:20240715:005327.976 agent #5 started [active checks #1]

            There are no errors in the log file. The zabbix_server.log file on the actual Zabbix server shows no errors either. Is there a way to make the logging more verbose such as showing debug output?
            Send me the zabbix-agent file settings and check the Zabbix-Server/Proxy logs for this host to see if anything appears

            Comment

            • wdw
              Junior Member
              • Jul 2024
              • 5

              #7
              Thank you. I increased the logging on both the agent and server. I saw that Zabbix was indeed pulling the OS Process list. However, I do not see the information under the 'Latest Data'. Should it show there or am I missing something else. Thank you again in advance.

              Comment

              • NgRox
                Member
                • Jun 2022
                • 44

                #8
                Originally posted by wdw
                Thank you. I increased the logging on both the agent and server. I saw that Zabbix was indeed pulling the OS Process list. However, I do not see the information under the 'Latest Data'. Should it show there or am I missing something else. Thank you again in advance.
                Yes, I checked if there are templates that only work in version 7.0 above, are you sure you uploaded a template version that works in 6.4?

                Click image for larger version

Name:	image.png
Views:	502
Size:	21.9 KB
ID:	487613
                If yes, you will do the following:

                Enter the Zabbix-server command line and run:

                zabbix_get -s <ip_host> -k agent.ping

                replace <ip_host> with the Linux IP you want to monitor and check if the command is executed, if it is not executed, it could be a problem with permission to run some remote commands, this is configured in the agent, check if it is, if so let me know, anything sends the output here​

                Comment

                • moooola
                  Junior Member
                  • Jul 2024
                  • 29

                  #9
                  When I tried it, I had a hard time realizing that I needed to change the parameters of the macro after adding template [OS processes by Zabbix agent].

                  Click image for larger version

Name:	スクリーンショット 2024-07-17 134958.jpg
Views:	474
Size:	163.1 KB
ID:	487649

                  It was necessary to specify the name of the process that you wanted to monitor or the name of the process that you did not want to monitor.
                  It seems that if {$PROC.NAME.MATCHES} is set to null, information about all processes can be obtained. (Not recommended as there are too many)
                  If you enter part of the desired process name, for example zabbix, information about zabbix-related processes will be retrieved.
                  You can further narrow down your search with {$PROC.NAME.NOT_MATCHES}.

                  I hope this can be of some use as a reference.

                  Comment

                  Working...