please check  process status in your agent side:

root@EE-0C-BD-2E-C6-2A:/# ps -w | grep zabbix
 1211 root      1320 S    /usr/sbin/zabbix_agentd -c 
/etc/zabbix_agentd.conf -f
 1224 root      1320 S    /usr/sbin/zabbix_agentd: collector [idle 1 sec]
 1225 root      1320 S    /usr/sbin/zabbix_agentd: listener #1 [waiting for 
connection]
 1226 root      1328 S    /usr/sbin/zabbix_agentd: active checks #1 [idle 1 
sec]
 1613 root      1356 S    grep zabbix

if all are running ..Also change you logs dumping path to 
/tmp/zabbix_agentd.log 

Also, sending you my configuration file , please compare and see all good..

regards










On Friday, 31 March 2017 23:44:46 UTC+5:30, Alberto Crespo wrote:
>
> It would be great if  we could edit our own posts (I am spamming :( ) 
>
> Maybe this error is the key?? "Get value from agent failed: cannot 
> connect to [[127.0.0.1]:10050]: [111] Connection refused" in *Configuration 
> -> Hosts*
>
>
> <https://lh3.googleusercontent.com/-5GL0dc0bWPs/WN6cUB0MFwI/AAAAAAAAFpo/4_scKArD5ksbTPDw0417Pm_YMPWP2PQlQCLcB/s1600/zabbix3.png>
>
>
> Sorry if I am doing a stupid question.
>
> Thank you !
>
> El viernes, 31 de marzo de 2017, 14:50:08 (UTC-3), Alberto Crespo escribió:
>>
>> In the /etc/zabbix_agent_conf I have defined the FileLog as 
>> /var/log/zabbix.log but seems that the daemon doesnt creates this FileLog.
>>
>> Maybe is because the daemon is not working correctly?
>>
>> Thank you for your patience !!
>>
>> El viernes, 31 de marzo de 2017, 14:47:32 (UTC-3), Alberto Crespo 
>> escribió:
>>>
>>> Hi again,
>>>
>>> So, they are on the same LAN. The router has Local IP range: 172.16.2.X 
>>> and the server is on the same LAN but using a Public IP like 186.225.x.y . 
>>> I can ping successfully from the server to the Router Local IP, so they are 
>>> on the same LAN... 
>>>
>>> So, I have changed the ServerIP to a Local IP 172.16.2.X and modified 
>>> the zabbix_agent_conf with the new Local IP and still the same problem.
>>>
>>> Could you give some suggestion? 
>>>
>>> Thank you!
>>>
>>> El viernes, 31 de marzo de 2017, 13:57:26 (UTC-3), SKapoor escribió:
>>>>
>>>> I don't see any problem setup wise..
>>>> Zabix server/agent should be in the same LAN..
>>>>
>>>> Regards
>>>>
>>>> On Fri, 31 Mar 2017 at 10:20 PM, Alberto Crespo <[email protected]> 
>>>> wrote:
>>>>
>>>>> Maybe the problem is because I am using Public IP ????
>>>>>
>>>>> Thank you !!
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "OpenWISP" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/openwisp/DodaHOTJFCE/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
root@EE-0C-BD-2E-C6-2A:/# cat /etc/zabbix_agentd.conf
# This is a config file for the Zabbix agent daemon (Unix)
# To get more information about Zabbix, visit http://www.zabbix.com

############ GENERAL PARAMETERS #################

# We do not need PidFile with procd
# PidFile=/var/run/zabbix_agentd.pid

### Option: LogFile
#       Name of log file.
#       If not set, syslog is used.
#
# Mandatory: no
# Default:
# LogFile=
LogFile=/tmp/zabbix_agentd.log


### Option: LogFileSize
#       Maximum size of log file in MB.
#       0 - disable automatic log rotation.
#
# Mandatory: no
# Range: 0-1024
# Default:
# LogFileSize=1

### Option: DebugLevel
#       Specifies debug level
#       0 - basic information about starting and stopping of Zabbix processes
#       1 - critical information
#       2 - error information
#       3 - warnings
#       4 - for debugging (produces lots of information)
#
# Mandatory: no
# Range: 0-4
# Default:
# DebugLevel=3

### Option: SourceIP
#       Source IP address for outgoing connections.
#
# Mandatory: no
# Default:
# SourceIP=

### Option: EnableRemoteCommands
#       Whether remote commands from Zabbix server are allowed.
#       0 - not allowed
#       1 - allowed
#
# Mandatory: no
# Default:
EnableRemoteCommands=1
# EnableRemoteCommands=0

### Option: LogRemoteCommands
#       Enable logging of executed shell commands as warnings.
#       0 - disabled
#       1 - enabled
#
# Mandatory: no
# Default:
# LogRemoteCommands=0

##### Passive checks related

### Option: Server
#       List of comma delimited IP addresses (or hostnames) of Zabbix servers.
#       Incoming connections will be accepted only from the hosts listed here.
#       If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', 
'::ffff:127.0.0.1' are treated equally.
#
# Mandatory: no
# Default:
# Server=

#Server=127.0.0.1
Server=192.168.0.245

### Option: ListenPort
#       Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Default:
ListenPort=10050
# ListenPort=10050

### Option: ListenIP
#       List of comma delimited IP addresses that the agent should listen on.
#       First IP address is sent to Zabbix server if connecting to it to 
retrieve list of active checks.
#
# Mandatory: no
# Default:
# ListenIP=0.0.0.0

### Option: StartAgents
#       Number of pre-forked instances of zabbix_agentd that process passive 
checks.
#       If set to 0, disables passive checks and the agent will not listen on 
any TCP port.
#
# Mandatory: no
# Range: 0-100
# Default:
# StartAgents=3
#StartAgents=1

##### Active checks related

### Option: ServerActive
#       List of comma delimited IP:port (or hostname:port) pairs of Zabbix 
servers for active checks.
#       If port is not specified, default port is used.
#       IPv6 addresses must be enclosed in square brackets if port for that 
host is specified.
#       If port is not specified, square brackets for IPv6 addresses are 
optional.
#       If this parameter is not specified, active checks are disabled.
#       Example: 
ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
#
## Mandatory: no
## Default:
# # ServerActive=
ServerActive=192.168.0.245

### Option: Hostname
#       Unique, case sensitive hostname.
#       Required for active checks and must match hostname as configured on the 
server.
#       Value is acquired from HostnameItem if undefined.
#
# Mandatory: no
# Default:
# Hostname=
Hostname=zabbix

### Option: HostnameItem
#       Item used for generating Hostname if it is undefined. Ignored if 
Hostname is defined.
#       Does not support UserParameters or aliases.
#
# Mandatory: no
# Default:
# HostnameItem=system.hostname

### Option: HostMetadata
#       Optional parameter that defines host metadata.
#       Host metadata is used at host auto-registration process.
#       An agent will issue an error and not start if the value is over limit 
of 255 characters.
#       If not defined, value will be acquired from HostMetadataItem.
#
# Mandatory: no
# Range: 0-255 characters
# Default:
# HostMetadata=


### Option: HostMetadataItem
#       Optional parameter that defines an item used for getting host metadata.
#       Host metadata is used at host auto-registration process.
#       During an auto-registration request an agent will log a warning message 
if
#       the value returned by specified item is over limit of 255 characters.
#       This option is only used when HostMetadata is not defined.
#
# Mandatory: no
# Default:
# HostMetadataItem=

### Option: RefreshActiveChecks
#       How often list of active checks is refreshed, in seconds.
#
# Mandatory: no
# Range: 60-3600
# Default:
# RefreshActiveChecks=120

### Option: BufferSend
#       Do not keep data longer than N seconds in buffer.
#
# Mandatory: no
# Range: 1-3600
# Default:
# BufferSend=5

### Option: BufferSize
#       Maximum number of values in a memory buffer. The agent will send
#       all collected data to Zabbix Server or Proxy if the buffer is full.
#
# Mandatory: no
# Range: 2-65535
# Default:
# BufferSize=100

### Option: MaxLinesPerSecond
#       Maximum number of new lines the agent will send per second to Zabbix 
Server
#       or Proxy processing 'log' and 'logrt' active checks.
#       The provided value will be overridden by the parameter 'maxlines',
#       provided in 'log' or 'logrt' item keys.
#
# Mandatory: no
# Range: 1-1000
# Default:
# MaxLinesPerSecond=100

############ ADVANCED PARAMETERS #################

### Option: Alias
#       Sets an alias for an item key. It can be used to substitute long and 
complex item key with a smaller and simpler one.
#       Multiple Alias parameters may be present. Multiple parameters with the 
same Alias key are not allowed.
#       Different Alias keys may reference the same item key.
#       For example, to retrieve the ID of user 'zabbix':
#       
Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1]
#       Now shorthand key zabbix.userid may be used to retrieve data.
#       Aliases can be used in HostMetadataItem but not in HostnameItem 
parameters.
#
# Mandatory: no
# Range:
# Default:

### Option: Timeout
#       Spend no more than Timeout seconds on processing
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
#Timeout=3

### Option: AllowRoot
#       Allow the agent to run as 'root'. If disabled and the agent is started 
by 'root', the agent
#       will try to switch to the user specified by the User configuration 
option instead.
#       Has no effect if started under a regular user.
#       0 - do not allow
#       1 - allow
#
# Mandatory: no
# Default:
#AllowRoot=1
# AllowRoot=0

### Option: User
#       Drop privileges to a specific, existing user on the system.
#       Only has effect if run as 'root' and AllowRoot is disabled.
#
# Mandatory: no
# Default:
# User=zabbix

### Option: Include
#       You may include individual files or all files in a directory in the 
configuration file.
#       Installing Zabbix will create include directory in /usr/local/etc, 
unless modified during the compile time.
#
# Mandatory: no
# Default:
# Include=

# Include=/usr/local/etc/zabbix_agentd.userparams.conf
# Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
Include=/etc/zabbix_agentd.conf.d/

####### USER-DEFINED MONITORED PARAMETERS #######

### Option: UnsafeUserParameters
#       Allow all characters to be passed in arguments to user-defined 
parameters.
#       0 - do not allow
#       1 - allow
#
# Mandatory: no
# Range: 0-1
# Default:
# UnsafeUserParameters=0

### Option: UserParameter
#       User-defined parameter to monitor. There can be several user-defined 
parameters.
#       Format: UserParameter=<key>,<shell command>
#       See 'zabbix_agentd' directory for examples.
#
# Mandatory: no
# Default:
# UserParameter=

####### LOADABLE MODULES #######

### Option: LoadModulePath
#       Full path to location of agent modules.
#       Default depends on compilation options.
#
# Mandatory: no
# Default:
# LoadModulePath=${libdir}/modules

### Option: LoadModule
#       Module to load at agent startup. Modules are used to extend 
functionality of the agent.
#       Format: LoadModule=<module.so>
#       The modules must be located in directory specified by LoadModulePath.
#       It is allowed to include multiple LoadModule parameters.
#
# Mandatory: no
# Default:
# LoadModule=

Reply via email to