Ad Widget

Collapse

Some active checks dont work on some servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darkhunter
    Junior Member
    • Sep 2014
    • 8

    #1

    Some active checks dont work on some servers

    Hello, I have 10 centOS servers under proxy. Proxy is updated so are zabbix-agents. They all have same CentOS version, but some of them are unable to work with active checks:
    23662:20141123:191608.346 active check "system.run[cat /etc/centos-release]" is not supported
    23662:20141123:191608.346 active check "system.run[yum list updates| tail -n +8| wc -l]" is not supported
    Whats wrong? Settings are same on all servers.
    RemoteCommands are enabled.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by Darkhunter
    Hello, I have 10 centOS servers under proxy. Proxy is updated so are zabbix-agents. They all have same CentOS version, but some of them are unable to work with active checks:
    23662:20141123:191608.346 active check "system.run[cat /etc/centos-release]" is not supported
    23662:20141123:191608.346 active check "system.run[yum list updates| tail -n +8| wc -l]" is not supported
    Whats wrong? Settings are same on all servers.
    RemoteCommands are enabled.
    Check your SELinux settings for zabbix user.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Darkhunter
      Junior Member
      • Sep 2014
      • 8

      #3
      Okay, it worked on some servers, but on other servers it didnt:
      9894:20150105:222754.078 In add_check() key:'system.run[yum list updates| tail -n +8| wc -l]' refresh:3600 lastlogsize:0 mtime:0
      9894:20150105:222754.116 Executing command 'yum list updates| tail -n +8| wc -l'
      9894:20150105:222754.116 In zbx_popen() command:'yum list updates| tail -n +8| wc -l'
      9894:20150105:222757.117 active check "system.run[yum list updates| tail -n +8| wc -l]" is not supported
      9894:20150105:222757.117 In process_value() key:'pmx1-ovh-alfresco.emeldi.com:system.run[yum list updates| tail -n +8| wc -l]' value:'Timeout while executing a shell script.'
      And on zabbix_server we have 30 seconds timeout.
      When I launch this command on server directly, it takes about half a sec to complete.

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Code:
        9894:20150105:222757.117 In process_value() key:'pmx1-ovh-alfresco.emeldi.com:system.run[yum list updates| tail -n +8| wc -l]' value:'Timeout while executing a shell script.'
        This is timeout on the agent side. Setup Timeout in your agent conf. And try to run your command as the zabbix user.
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        • Darkhunter
          Junior Member
          • Sep 2014
          • 8

          #5
          It works! Thank you!

          Comment

          Working...