everychengxuan / svc-perf

Automatically exported from code.google.com/p/svc-perf
0 stars 0 forks source link

Error with zabbix_sender/zabbix_trapper #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
After installation and configuration (as described in INSTALL file), I could 
get data from Storwize v3700/v7000 (they are using the same OS).

But when zabbix_sender try to update zabbix DB nothing changed. I have a lot of 
entries in log file like shown below:

info from server: "Processed 0 Failed 206 Total 206 Seconds spent 0.002187"
sent: 206; skipped: 0; total: 206

When I try to use full command from shell script, provided with distribution 
I've got those output:

[root@vsmon01 externalscripts]# sudo -u zabbix /usr/bin/python 
/etc/zabbix/externalscripts/svc_perf_wbem.py --cluster ibmst03 --user zabbix 
--password *** --cachefile /var/cache/zabbix/svc_perf.ibmst03.cache 2>> 
/tmp/mantest.log | zabbix_sender -z 127.0.0.1 -I 127.0.0.1 -T -vv -i - 
>>/tmp/mantest.log
zabbix_sender [5165]: DEBUG: answer [{
        "response":"success",
        "info":"Processed 0 Failed 122 Total 122 Seconds spent 0.001177"}]

and in /tmp/mantest.log:
Connecting to ibmst03
info from server: "Processed 0 Failed 122 Total 122 Seconds spent 0.001177"
sent: 122; skipped: 0; total: 122

Now I stuck at this point and have no idea how to solve this. Adding -s ibmst03 
didn't solve issue.

I've got to nodes in zabbix: ibmst02 and ibmst03, which are linked with 
template _Special_Storwize_Perf from distribution.

Best regards,
Anthony Dergachev
Senior systems engineer

Original issue reported on code.google.com by kolu...@kolucci.ru on 6 Feb 2014 at 8:41

GoogleCodeExporter commented 8 years ago
I experienced the same symptoms the fix was simple. Within Zabbix I had linked 
the template using UPPER case host names. The crontab scripts referred to the 
same hosts in lower case. As soon as I changed the names to the same case as I 
used when linking the template, I got performance data and event notifications 
within Zabbix. My log entries now look like this:

Thu Jun  5 15:44:01 BST 2014
info from server: "processed: 239; failed: 0; total: 239; seconds spent: 
0.009438"
sent: 239; skipped: 0; total: 239
Thu Jun  5 15:44:11 BST 2014

Original comment by monst...@gmail.com on 5 Jun 2014 at 2:56