Ad Widget

Collapse

Cisco SNMP/External Checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jonnjonzzn
    Junior Member
    • Sep 2007
    • 18

    #1

    Cisco SNMP/External Checks

    OK, I am trying to pull active connection information from a Cisco (ACE) Load Balancer. I really only want the # of active connections to each back-end app server. I could not get a snmp check to work as has been discussed in this fourum as the "value #2 has unknow type [81]" error and also at https://support.zabbix.com/browse/ZBX-55

    So, for now I figured I just do an external script and pick off the data that way however I can not get an "external check" type item to work. Here is what I have done:

    1 Verified external script directory in zabbix_server.conf file is /etc/zabbix/externalscripts is correct and all permissions are correct.

    Have script named checklbload.sh with correct permissions in correct directory. Have restarted server and agent.

    Code:
    ls -al /etc/zabbix/externalscripts
    total 16
    drwxr-xr-x 2 zabbix root 4096 Oct 10 15:35 .
    drwxr-xr-x 3 root   root 4096 Oct 10 12:08 ..
    -rwxrwx--- 1 zabbix root   21 Oct 10 14:31 checklbload.sh

    Here's the script code I'm using just to test::

    Code:
    #!/bin/bash
    
    exit 50
    Created item in Zabbix for Zabbix server as External Check with key as follows: checklbload.sh[] with type as Numeric (integer 64).

    Here's what I see in zabbix_server.log:

    824:20071010:153722 Script /etc/zabbix/externalscripts/checklbload.sh returned nothing.
    824:20071010:153722 Parameter [checklbload.sh[]] is not supported by agent on host [wraith] Old status [0]
    824:20071010:153722 Script /etc/zabbix/externalscripts/checklbload.sh returned nothing.

    Can anybody please help me?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    exit 50? Why? I would use "echo 50" instead....
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • jonnjonzzn
      Junior Member
      • Sep 2007
      • 18

      #3
      Ah yes, check the obvious things first... sorry. Changing to "echo" solved it.

      How about the first issue referenced above though

      I'm looking at checks_snmp.c to try and track it down but my C skills are rather rusty.

      Thanks, Alexei!

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by jonnjonzzn
        I'm looking at checks_snmp.c to try and track it down but my C skills are rather rusty.
        I'd love to repllicate this problem! I tried hard with all SNMP devices I have (a couple of switches, firewall, printers, etc), no luck so far.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...