Ad Widget

Collapse

Upgrading Agent Version gives Ulimit Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramlani
    Junior Member
    • Jan 2020
    • 1

    #1

    Upgrading Agent Version gives Ulimit Error

    Hi All,

    I have recently upgraded zabbix agent version from 2.0.4 to 3.2.7 and after the update I am getting below error for one of the alerts set up.

    Zabbix Agent 2.0.4 output:

    root@hostname [~] # zabbix_get -s hostname -k versantdb.status[user,rootpage]

    2048
    root@hostname[~] # zabbix_get -s hostname -k versantdb.status[user,freepc]
    21

    Zabbix Agent 3.2.7 output:


    root@hostname [~] # zabbix_get -s hostname -k versantdb.status[user,rootpage]
    /methode/user/.bash_profile: line 330: ulimit: core file size: cannot modify limit: Operation not permitted
    /methode/user/.bash_profile: line 330: ulimit: core file size: cannot modify limit: Operation not permitted

    2048
    root@hostname [~] # zabbix_get -s hostname -k versantdb.status[user,freepc]
    /methode/user/.bash_profile: line 330: ulimit: core file size: cannot modify limit: Operation not permitted
    30

    How can this be fixed?

    Note:- Ulimit is never changed it was always same for both versions.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    Hi, what does /methode/user/.bash_profile contain in line 330 and why is that run when you query versantdb.status?

    Edit: Also, are you sure the ancient 3.2.7 agent version does not contain some bugs that were involved in this?

    Markku

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      Originally posted by ramlani
      How can this be fixed?

      Note:- Ulimit is never changed it was always same for both versions.
      This problem has likely always been present, but the older zabbix agent wasn't reporting stderr output back to the server. The newer zabbix_agent is, which is why you're seeing it now.

      versantdb.status[] is a custom item your site has created. It's probably a script. You can find the script by examing the "UserParameter" settings on the client host in question.

      In any case, your script seems to be causing /methode/user/.bash_profile to be loaded as part of the script operation. That could be intentional, or it could be because it's trying to run as a different user?

      Either way, the .bash_profile has an error in it related to ulimit. Fix the ulimit setting on line 330 and your problem will go away.

      Comment

      Working...