Hi All,
I run a Zabbix server, i have several host running, they are shown "available" in mij "host list". But then some hosts give me the next message instead of available:
Availability: "Not available"
Error: "Cannot connect to [host10] [Connection refused]"
Now when i logon to that machine and i try to restart the zabbix agent i get the following message:
root@VMWARESERVER01:/# /etc/init.d/zabbix-agent restart
Stopping Zabbix agent: zabbix_agentd
No process in pidfile `/var/run/zabbix/agentd.pid' found running; none killed.
Starting Zabbix agent: zabbix_agentd
My zabbix-agent.conf file contains the following:
##-Configured
# This is config file for zabbix_agentd
# To get more information about ZABBIX, go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
# No spaces allowed. First entry is used for sending active checks.
# Note that hostnames must resolve hostname->IP address and
# IP address->hostname.
Server=172.17.6.217
#172.17.6.217
#172.17.6.217
# Server port for sending active checks
# ServerPort=10050
# Unique hostname. Required for active checks.
Hostname=host217
# Listen port. Default is 10050
# ListenPort=10050
# IP address to bind agent
# If missing, bind to all available IPs
# ListenIP=172.17.6.217
# Number of pre-forked instances of zabbix_agentd.
# Default value is 5
# This parameter must be between 1 and 16
StartAgents=5
# How often refresh list of active checks. 2 minutes by default.
RefreshActiveChecks=10
# Disable active checks. The agent will work in passive mode listening server.
#DisableActive=1
#EnableRemoteCommands=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings (default)
# 4 - for debugging (produces lots of information)
DebugLevel=3
# Name of PID file
PidFile=/var/run/zabbix/agentd.pid
#/var/run/zabbix/agentd.pid
#/var/run/zabbix/agentd.pid
#PidFile=/var/run/zabbix/agentd.pid
#/var/run/zabbix/agentd.pid
#/var/tmp/zabbix_agentd.pid
# Name of log file.
# If not set, syslog will be used
LogFile=/var/log/zabbix/agentd.log
#/var/log/zabbix/agentd.log
#/var/log/zabbix/agentd.log
#/tmp/zabbix_agentd.log
# Spend no more than Timeout seconds on processing
# Must be between 1 and 30
Timeout=30
####### USER-DEFINED MONITORED PARAMETERS #######
# Format: UserParameter=<key>,<shell command>
# Note that shell command must not return empty string or EOL only
#UserParameter=system.test,who|wc -l
### Set of parameter for monitoring MySQL server (v3.23.42 and later)
### Change -u<username> and add -p<password> if required
#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"$
#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -$
#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1$
#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
#UserParameter=mysql.version,mysql -V
#UserParameter=iptb_out[*],iptc_getrule filter from_us "$1" b
#UserParameter=iptp_out[*],iptc_getrule filter from_us "$1" p
#UserParameter=iptb_in[*],iptc_getrule filter to_us "$1" b
#UserParameter=iptp_in[*],iptc_getrule filter to_us "$1" p
If you need more information please let me know?
My OS is debian...
Grz Robbert
I run a Zabbix server, i have several host running, they are shown "available" in mij "host list". But then some hosts give me the next message instead of available:
Availability: "Not available"
Error: "Cannot connect to [host10] [Connection refused]"
Now when i logon to that machine and i try to restart the zabbix agent i get the following message:
root@VMWARESERVER01:/# /etc/init.d/zabbix-agent restart
Stopping Zabbix agent: zabbix_agentd
No process in pidfile `/var/run/zabbix/agentd.pid' found running; none killed.
Starting Zabbix agent: zabbix_agentd
My zabbix-agent.conf file contains the following:
##-Configured
# This is config file for zabbix_agentd
# To get more information about ZABBIX, go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
# No spaces allowed. First entry is used for sending active checks.
# Note that hostnames must resolve hostname->IP address and
# IP address->hostname.
Server=172.17.6.217
#172.17.6.217
#172.17.6.217
# Server port for sending active checks
# ServerPort=10050
# Unique hostname. Required for active checks.
Hostname=host217
# Listen port. Default is 10050
# ListenPort=10050
# IP address to bind agent
# If missing, bind to all available IPs
# ListenIP=172.17.6.217
# Number of pre-forked instances of zabbix_agentd.
# Default value is 5
# This parameter must be between 1 and 16
StartAgents=5
# How often refresh list of active checks. 2 minutes by default.
RefreshActiveChecks=10
# Disable active checks. The agent will work in passive mode listening server.
#DisableActive=1
#EnableRemoteCommands=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings (default)
# 4 - for debugging (produces lots of information)
DebugLevel=3
# Name of PID file
PidFile=/var/run/zabbix/agentd.pid
#/var/run/zabbix/agentd.pid
#/var/run/zabbix/agentd.pid
#PidFile=/var/run/zabbix/agentd.pid
#/var/run/zabbix/agentd.pid
#/var/tmp/zabbix_agentd.pid
# Name of log file.
# If not set, syslog will be used
LogFile=/var/log/zabbix/agentd.log
#/var/log/zabbix/agentd.log
#/var/log/zabbix/agentd.log
#/tmp/zabbix_agentd.log
# Spend no more than Timeout seconds on processing
# Must be between 1 and 30
Timeout=30
####### USER-DEFINED MONITORED PARAMETERS #######
# Format: UserParameter=<key>,<shell command>
# Note that shell command must not return empty string or EOL only
#UserParameter=system.test,who|wc -l
### Set of parameter for monitoring MySQL server (v3.23.42 and later)
### Change -u<username> and add -p<password> if required
#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"$
#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -$
#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1$
#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
#UserParameter=mysql.version,mysql -V
#UserParameter=iptb_out[*],iptc_getrule filter from_us "$1" b
#UserParameter=iptp_out[*],iptc_getrule filter from_us "$1" p
#UserParameter=iptb_in[*],iptc_getrule filter to_us "$1" b
#UserParameter=iptp_in[*],iptc_getrule filter to_us "$1" p
If you need more information please let me know?
My OS is debian...
Grz Robbert
it's ls -al not ps
Comment