Ad Widget

Collapse

Problems with my own Checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • axel
    Member
    • Aug 2005
    • 36

    #1

    Problems with my own Checks

    Hi

    I have some Problems with my own checks.
    This are my Checks

    UserParameter=viruses[count],grep viruses /tmp/zabbix.data |cut -d\ -f2
    UserParameter=mailqueue[count],grep mailqueue /tmp/zabbix.data |cut -d\ -f2
    UserParameter=checked[count],grep checked /tmp/zabbix.data |cut -d\ -f2
    UserParameter=antispam[count],grep antispam /tmp/zabbix.data |cut -d\ -f2

    i got for example 30 minutes data but after that my Item jumps to Unsupportet.



    Example:
    017430:20050923:082402 In check_security()
    017430:20050923:082402 Connection from [xx.xx.xx.247]. Allowed servers [xx.xx.xx.247]
    017430:20050923:082402 Before read()
    017430:20050923:082402 After read() 2 [15]
    017430:20050923:082402 Got line:viruses[count]
    017430:20050923:082402 Sending back:ZBX_NOTSUPPORTED

    some minutes before:
    017432:20050923:082331 In check_security()
    017432:20050923:082331 Connection from [xx.xx.xx.247]. Allowed servers [xx.xx.xx.247]
    017432:20050923:082331 Before read()
    017432:20050923:082331 After read() 2 [15]
    017432:20050923:082331 Got line:viruses[count]
    017432:20050923:082331 Sending back:2


    And i have another question to the proc.num[*] funktion.
    At my local server the funktion works perfekt. But at some remote Server it is unsupportet. (same agent) i think i miss something what do i need to install that this funktion works correct ?
    Last edited by axel; 23-09-2005, 08:38.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Perhaps at some point /tmp/zabbix.data does not exist or is empty?

    It may happen if you create it by doing something like:

    echo "viruses[count]" >/tmp/zabbix.data


    Do this instead:

    echo "viruses[count]" >/tmp/zabbix.data.tmp
    mv /tmp/zabbix.data.tmp /tmp/zabbix.data
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • axel
      Member
      • Aug 2005
      • 36

      #3
      ok thx i try this

      Comment

      Working...