Ad Widget

Collapse

proc.num Too many parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Helios
    Junior Member
    • Mar 2022
    • 3

    #1

    proc.num Too many parameters

    Hi All,

    I'm running zabbix 6.0.1 as an appliance and have successfully deployed the zabbix agents to Linux and Windows servers. I have a common process that is launched with different parameters, therefore I'm trying to filter using the cmdline options instead of the process name specifically.

    On linux I am able to monitor my process using the following key:

    proc.num[,myuser,,myprocess Sydney]
    However, on windows I am monitoring a similar process except that I keep getting an error returned stating "Too many parameters" with the following key:

    proc.num[,myuser,,myprocess.exe Newcastle]
    I have also tried the following with no luck:

    proc.num[",myuser,,myprocess.exe Newcastle"]
    I have also tried both zabbix agent and zabbix agent 2. Is there something I am doing wrong?
  • incama
    Member
    • Jan 2015
    • 65

    #2
    Try
    Code:
     proc.num[,myuser,,"myprocess.exe Newcastle"]

    Comment

    • Helios
      Junior Member
      • Mar 2022
      • 3

      #3
      Thanks Incama,

      I gave your suggestion of double quotes around the cmdline a try but unfortunately it still popped up with the same error in the zabbix interface and agent logs.

      Comment

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

        #4
        Well, it helps to read docs..
        https://www.zabbix.com/documentation...s/zabbix_agent
        On Windows, only the name and user parameters are supported.
        EDIT: I am not sure it can handle process with parameters on windows..
        Code:
        proc.num[chrome.exe]
        will give you number ( in case of below example - 8) but trying something like

        Code:
        proc.num[chrome.exe --type=utility]
        (which you can see in process list in task manager) returns 0 or even
        Code:
        proc.num["chrome.exe\" --type=utility"]
        still 0.
        Click image for larger version  Name:	chrome.png Views:	1 Size:	6.0 KB ID:	442322
        Last edited by cyber; 30-03-2022, 12:33.

        Comment

        • Helios
          Junior Member
          • Mar 2022
          • 3

          #5
          Ahhhh yes you are right! My bad, time to read more carefully. I missed that, I started on our Linux servers first and when I got it working moved to Windows. I assumed the functionality would be the same on both OS.

          Thanks for your help Cyber , I might look at running script to do the check server side specifically for these processes with command line params.
          Attached Files

          Comment

          • tdv
            Junior Member
            • Feb 2024
            • 1

            #6
            Have you ever got such problems with
            vfs.file.cksum[/etc/passwd,sha256]
            ZBX_NOTSUPPORTED: Too many parameters.​

            Comment

            Working...