Archived community.zenoss.org | full text search
Skip navigation
10892 Views 5 Replies Latest reply: Feb 26, 2010 9:18 AM by Ryan Matte RSS
nelliott Rank: Green Belt 83 posts since
Sep 10, 2009
Currently Being Moderated

Feb 25, 2010 4:40 PM

Zentrap will not restart, must reboot?

Zenoss v. 2.5.1 - everything works great unless I need to "zentrap restart" or "zenoss restart".  Zentrap does start properly following a full reboot of the server, but will not restart if it is stopped anytime after bootup.  I can't find any error messages explaining why.  I've looked in /var/log/messages, /var/log/syslog, /$zenhome/log/*.log - nothing appears even slightly relevant.


Immediately after bootup, 'ps faux | grep snmp' shows the following:

 

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

snmp      5398  0.0  0.0  49576  5100 ?        S    08:48   0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf

 

and 'netstat -nlpa | grep snmp' shows:

 

udp        0      0 0.0.0.0:161             0.0.0.0:*                           0          13547       5398/snmpd
unix  2      [ ]         DGRAM                    13372    5398/snmpd

 

Zentrap appears to be called this way during startup

 

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

zenoss    6079  0.1  0.6 162240 50188 ?        S    08:49   0:01 /usr/local/zenoss/python/bin/.python.bin /usr/local/zenoss/zenoss/Products/ZenEvents/zentrap.py --configfile /usr/local/zenoss/zenoss/etc/zentrap.conf --cycle --daemon --useFileDescriptor=4

 

Any thoughts on how I can troubleshoot this?


Thanks

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    1. Feb 25, 2010 4:47 PM (in response to nelliott)
    Re: Zentrap will not restart, must reboot?

    You already have something listening on the snmp trap port (162).  Disable any SNMP services that you already have running on that server.  I think what's happening is that Zenoss is starting before some other snmp related process and is grabbing that port first, but as soon as it lets go of the port, the other process grabs it.

     

    It's really just a guess but it's the most common issue that I've seen to cause zentrap not to start.

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    3. Feb 25, 2010 5:24 PM (in response to nelliott)
    Re: Zentrap will not restart, must reboot?

    You may not see it with the grep string you were using.

     

    ~:/home/rmatte# netstat -nlpa | grep 162

    udp        0      0 0.0.0.0:162             0.0.0.0:*                           4733/.python.bin

     

    Stop zentrap then try that command, see if something else grabs that port.

     

    snmpd can be enabled, I have it enabled on my Zenoss servers.  Just make sure that you don't have something like snmptrapd running.

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    5. Feb 26, 2010 9:18 AM (in response to nelliott)
    Re: Zentrap will not restart, must reboot?

    No problem.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points