No SNMP data (Cacti)

Discussion in 'Install/Configuration' started by Stefan Soellner, Nov 13, 2006.

  1. Stefan Soellner

    Stefan Soellner New Member

    Hi,

    maybe you can assist me to get litespeed/snmp/cacti working ...

    No data so far.

    Here are the logs and some information.

    cacti/log

    Code:
     11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[46] SNMP: v1: 127.0.0.1, dsname: Req_Second, oid: .1.3.6.1.4.1.22253.310.1, output: 0
    11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[47] SNMP: v1: 127.0.0.1, dsname: bps_in, oid: .1.3.6.1.4.1.22253.105.1, output: 0
    11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[47] SNMP: v1: 127.0.0.1, dsname: bps_out, oid: .1.3.6.1.4.1.22253.106.1, output: 0
    11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[48] SNMP: v1: 127.0.0.1, dsname: Req_InProcess, oid: .1.3.6.1.4.1.22253.202.2, output: 0
    11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[48] SNMP: v1: 127.0.0.1, dsname: Req_Second, oid: .1.3.6.1.4.1.22253.203.2, output: 0
    11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[49] SNMP: v1: 127.0.0.1, dsname: Req_InProcess, oid: .1.3.6.1.4.1.22253.202.3, output: 0
    11/13/2006 11:30:02 AM - CMDPHP: Poller[0] Host[2] DS[49] SNMP: v1: 127.0.0.1, dsname: Req_Second, oid: .1.3.6.1.4.1.22253.203.3, output: 0
    sample.php seems fine

    Code:
    /usr/local/bin/php /usr/local/lsws/add-ons/snmp_monitoring/sample.php '-g' .1.3.6.1.4.1.22253.101.1
    .1.3.6.1.4.1.22253.101.1
    string
    LiteSpeed Web Server
    
    litespeed is running as www-data/www-data

    /tmp/lshttpd

    Code:
    -rw-r--r-- 1 www-data www-data    636 2006-11-13 11:37 .rtreport
    Code:
    VERSION: LiteSpeed Web Server/Standard/2.2.5
    UPTIME: 00:21:00
    BPS_IN: 0, BPS_OUT: 0, SSL_BPS_IN: 0, SSL_BPS_OUT: 0
    MAXCONN: 100, MAXSSL_CONN: 100, PLAINCONN: 0, AVAILCONN: 100, IDLECONN: 0, SSLCONN: 0, AVAILSSL: 100
    REQ_RATE []: REQ_PROCESSING: 0, REQ_PER_SEC: 0, TOT_REQS: 408
    REQ_RATE [EDLL]: REQ_PROCESSING: 0, REQ_PER_SEC: 0, TOT_REQS: 0
    REQ_RATE [SOELLNER]: REQ_PROCESSING: 0, REQ_PER_SEC: 0, TOT_REQS: 408
    REQ_RATE [_AdminVHost]: REQ_PROCESSING: 0, REQ_PER_SEC: 0, TOT_REQS: 0
    EXTAPP [LSAPI] [] [phpLsapi]: CMAXCONN: 20, EMAXCONN: 20, POOL_SIZE: 2, INUSE_CONN: 0, IDLE_CONN: 2, WAITQUE_DEPTH: 0, REQ_PER_SEC: 0,$
    EOF
    /etc/snmp/snmpd.conf

    Code:
    rocommunity  public
    pass .1.3.6.1.4.1.22253 /usr/local/php52_litespeed/bin/php /usr/local/lsws/add-ons/snmp_monitoring/sample.php
    /etc/crontab

    Code:
    */5 * * * * www-data /usr/local/php52_litespeed/bin/php /var/www/general/htdocs/cacti/poller.php > /dev/null 2>&1

    Any hints appreciated. Thanks in advance.
  2. Stefan Soellner

    Stefan Soellner New Member

    Oh my god

    Code:
    -rw-r--r-- 1 root root 6494 2006-11-12 00:16 class.litespeed_snmp_bridge.php
    -rw-r--r-- 1 root root 5991 2006-11-12 00:16 class.litespeed_stats.php
    -rw-r--r-- 1 root root  969 2006-11-13 11:44 sample.php
    Ok. I've changed it to www-data/www-data. Everything is now running smooth.

    :)

    BTW: Thanks @litespeedstaff for your work.
    Last edited: Nov 13, 2006

Share This Page