Ad Widget

Collapse

NetBSD rc script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jusavard
    Member
    • Sep 2013
    • 48

    #1

    NetBSD rc script

    Hi i wanted to know if anybody has found / created any zabbix_server and zabbix_agent rc script for NetBSD.
    I kind of tried to adaptthe one that come with the source for freebsd bot it doesn't seems to be really working :

    Code:
    netbsd6# /etc/rc.d/zabbix_agentd restart
    Stopping zabbix_agentd.
    kill: 27171: No such process
    Starting zabbix_agentd.
    netbsd6# /etc/rc.d/zabbix_server restart
    Stopping zabbix_server.
    Waiting for PIDS: 6370, 6370.
    Starting zabbix_server.
    
    netbsd6# ps -auxww | grep zabbix
    zabbix   1686  0.0  1.4  84392  3564 ?      S     5:10PM 0:00.01 /usr/local/sbin/zabbix_server
    zabbix   5672  0.0  0.5  13348  1380 ?      S     5:10PM 0:00.01 zabbix_agentd: collector [idle 1 sec]
    zabbix   7216  0.0  0.5  13348  1404 ?      S     5:10PM 0:00.00 zabbix_agentd: active checks #1 [idle 1 sec]
    zabbix  15485  0.0  0.4  13348  1164 ?      I     5:10PM 0:00.00 zabbix_agentd: listener #1 [waiting for connection]
    zabbix  20779  0.0  0.4  13348  1164 ?      I     5:10PM 0:00.00 zabbix_agentd: listener #2 [waiting for connection]
    zabbix  22981  0.0  0.5  13348  1360 ?      I     5:10PM 0:00.00 /usr/local/sbin/zabbix_agentd
    zabbix  27695  0.0  0.4  13348  1164 ?      I     5:10PM 0:00.00 zabbix_agentd: listener #3 [waiting for connection]
    So like I said it kind of work but zabbix web interface clearly show it is not working :

    Code:
    Parameter	Value	Details
    
    Zabbix server is running	No	localhost:10051
    Same as netstat :

    Code:
    netbsd6# netstat -la | grep LISTEN
    tcp        0      0  *.zabbix-agent         *.*                    LISTEN
    tcp        0      0  *.http                 *.*                    LISTEN
    tcp        0      0  *.mysql                *.*                    LISTEN
    tcp        0      0  *.ssh                  *.*                    LISTEN
    tcp6       0      0  *.ssh                  *.*                    LISTEN
Working...