ZABBIX Forums  
Old 27-08-2014, 12:05
ssoupirot ssoupirot is offline
Junior Member
Join Date: Aug 2014
Posts: 2
Unhappy Zabbix_sender doesn't work

i Created an Item with the following details
type = Zabbix Trapper
Key = trap
type of information = Numeric (unsigned)
Data type = Decimal
From one of my server i'm trying to send data to this item via the following syntax
zabbix_sender -z SRV0374 -p 10051 -s SRV0420 -k trap -i c:\scripts\logsuperview.txt -vv
and i obtain
zabbix_sender [2728]: Warning: [line 1] 'Key' required
sending failed.
the file logsuperview.txt contains only the number 1
i tried to send a number with -o "1" but it didn't work too.
zabbix_sender [5632]: DEBUG: answer [
{ "response":"success", "info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000028"}
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000028"
sent: 1; skipped: 0; total: 1
Do i miss something ??
Reply With Quote
Old 27-08-2014, 18:40
jan.garaj jan.garaj is offline
Senior Member
Zabbix certified specialist
Join Date: Jan 2010
Location: United Kingdom, Slovakia, Bulgaria
Posts: 476

-i, --input-file <inputfile>
    Load values from input file. Specify - for standard input. Each line of file contains whitespace delimited: <hostname> <key> <value>. Specify - in <hostname> to use hostname from configuration file or --host argument. All entries are sent in a sequential order top-down.
=> don't use key (-k trap) as parameter, but specify key in your input file
Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant
Reply With Quote
Old 27-08-2014, 18:58
ssoupirot ssoupirot is offline
Junior Member
Join Date: Aug 2014
Posts: 2
Default Test done but i still have the problem

i tried the following command line.
C:\Scripts>zabbix_sender -z srv0374 -p 10051 -s SRV0420 -i c:\scripts\logsuperview.txt -vv
zabbix_sender [6896]: Warning: [line 1] 'Key' required
Sending failed.
The content of my file logsuperview.txt is
SRV0420 trap 4

So this means that
hostname = SRV0420
Key = trap
value = 4
Reply With Quote

missin key, trapper, windows, zabbix_sender

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 22:37.