Ad Widget

Collapse

HP-UX process starts with nice 25

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcel
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 112

    #1

    HP-UX process starts with nice 25

    Hi all, can ayone please confirm, that Zabbix agentd starts with nice 25 on HPUX - we are unable to set a different 'nice' value to the agent - HPUX starts processes with nice=20 by default, so im not sore why is this happening.

    Thanks for any kind of information,
    Marcel
    Zabbix Certified Specialist for Large Environments since 12/2010
  • parmando
    Junior Member
    • Sep 2011
    • 2

    #2
    Linux too

    I have the same problem here with Linux CentOS 5.6. Nice level is 5 here:

    # ps -el | grep zabbix

    F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
    1 S 450 17081 1 0 90 5 - 691 wait ? 00:00:00 zabbix_agentd
    1 S 450 17083 17081 0 82 5 - 691 - ? 00:00:00 zabbix_agentd
    1 S 450 17084 17081 0 80 5 - 695 - ? 00:00:00 zabbix_agentd

    In the source code there is no reference to nice(2).....

    Have you solved this question?

    Comment

    • bcrowder
      Junior Member
      • Sep 2011
      • 10

      #3
      in src/libs/zbxnix/daemon.c:

      Code:
      #ifdef HAVE_SYS_RESOURCE_SETPRIORITY
         if (0 != setpriority(PRIO_PROCESS, 0, 5))
            zbx_error("Unable to set process priority to 5. Leaving default.");
      #endif

      Comment

      • hpcre
        Junior Member
        • Oct 2011
        • 4

        #4
        yes, they start on my servers with nice value 25 too.

        Hey, tell me, btw, which agent version are you running on your hpux servers ? I'm running version 1.8.3 and i'm having quite some trouble with getting them to work properly.

        Comment

        Working...