View Full Version : icmpping not working
Hi
I noticed that icmpping stops to work when i upgrade zabbix from 1.4.2 to 1.4.4.
Even after upgrade from 1.4.4 to 1.4.5 situation does not change.
I try to create fake host "aaaaabbbbbb" or "blablabla" and zabbix always reports that this hosts are available, even when fping is runnable from zabbix user and reports that these hosts are unreachable or not resolvable.
I am going to compare source codes for pinger.c, may be this will help to find problem.
Regards
Areg
I checked logs and se following:
14985:20080416:104921 In get_pinger_hosts()
14985:20080416:104921 DNS name [yahoo.com]
14985:20080416:104921 DNS name [google.com]
14985:20080416:104921 DNS name [yandex.ru]
14985:20080416:104921 DNS name [aaaaaaaaaaaaabbbbbbbbb]
14985:20080416:104921 End of get_pinger_hosts()
14985:20080416:104921 In do_ping() [hosts_count:4]
14985:20080416:104922 Update IP [google.com is alive (787 ms)]
14985:20080416:104922 Mseconds [787.000000]
14985:20080416:104922 Update IP [yandex.ru is alive (891 ms)]
14985:20080416:104922 Mseconds [891.000000]
14985:20080416:104922 Update IP [yahoo.com is alive (1135 ms)]
14985:20080416:104922 Mseconds [1135.000000]
14985:20080416:104923 Host [yahoo.com] alive [1]
14985:20080416:104923 In process_value(icmpping@yahoo.com)
14985:20080416:104923 In process_value(icmppingsec@yahoo.com)
14985:20080416:104923 Host [google.com] alive [1]
14985:20080416:104923 In process_value(icmpping@google.com)
14985:20080416:104923 In process_value(icmppingsec@google.com)
14985:20080416:104923 Host [yandex.ru] alive [1]
14985:20080416:104923 In process_value(icmpping@yandex.ru)
14985:20080416:104923 In process_value(icmppingsec@yandex.ru)
14985:20080416:104923 Host [aaaaaaaaaaaaabbbbbbbbb] alive [0]
14985:20080416:104923 In process_value(icmpping@aaaaaaaaaaaaabbbbbbbbb)
14985:20080416:104923 In process_value(icmppingsec@aaaaaaaaaaaaabbbbbbbbb)
14985:20080416:104923 End of do_ping()
14985:20080416:104923 Sleeping for 58 seconds
And as you can see from attached images host "aaaaaaaaaaaaabbbbbbbbb" is available and other hosts are unknown.
This is very strange.
Areg
Doesnt the availability state also require either a zabbix_agent or snmp poll besides the ping?
I see you dont have any templates linked to the example hosts. Do you have any checks at all defined for those? Try to add an extra icmpping item for them.
Hi
This was the upgrade issue. When i upgrade from older version to new one some hosts links with templates don't upgrade correctly.
Actually there are items configured for these hosts: icmpping and icmppingsec and i see collected data.
I want to understand why if i add some host that linked to template with only 2 items - icmpping and icmppingsec become available immediately even i add non existent host.
Regards
Areg
The icmpping does not change host availability in any way.
How can i check the host availability if i had only 2 items for checking - icmpping and icmppingsec?
How can i check the host availability if i had only 2 items for checking - icmpping and icmppingsec?
Well, it depends how you define host availability. I believe you need something like: {host:icmpping.max(300)}=0
Alexei
I try to find place where i can define availability check.
Can you help me to find it ?
Where i can define this check to see on hosts page if this host available or not?
Thanks
Areg
BHG_2008
02-05-2008, 20:01
I have 5 Zabbix servers in use now, but now I have added 967 hosts to a new server, in which some (approx. 35%) I require T1 throughput analysis, while the others only need icmpping monitoring.
544 hosts show "available", the others below that do not, but show "unknown".
If it were a "bug" internal to Zabbix, why do some work while others do not? I imported all 967 hosts from the same XML import routine. I have further investigated my OS limits, all are more than sufficient for the zabbix unix user.
I have also checked the mysql connection and throughput limits, all were found acceptable. System appears to be running at 45% utilization.
2 Quad Core Intel Processors @ 2.8GHz, with 8GB DDR2 RAM 75GB mirrored array.
RedHat EL 5.2
Zabbix 1.4.4
BHG_2008
03-05-2008, 00:26
Found work around for icmpping partially working.
Add another item besides a "Simple Check" item to controlling template and save. (even if you don't care about that item.)
Then update template's triggers.
Give Zabbix a moment to catch up, then look at the host screen again.
You should not see "Unknown" for any item with a reachable address anymore.
;)
dan.trainor
08-05-2008, 03:26
Hi, BHG -
I'm interested in learning more about what you did.
No matter what combination of triggers I use to get an alarm, I can only get the trigger to show "Unknown" or be the exact opposite of what I'm looking to get.
Would you mind throwing down some of the triggers that you've used, so I can compare mine and see where I went wrong? It would be a great help.
Thanks
-dant
BHG_2008
09-05-2008, 04:07
{myhostname:icmpping.last(0)}=0
where myhostname is defined as a host, and reachable from Zabbix.
You cannot simple declare a host in a trigger.
It took me awhile to learn the most efficient order, but it finally clicked.
Setup
1) Create Templates (option under Hosts)
2) Add Items of importance to a group of hosts
3) Create triggers FROM template items
4) Create Actions from triggers
5) Create a host for each box you setup the Items for in 2), link to template
Your host inherets Items, Triggers and Actions.
Make Pretty
1) Create Graphs in Template from item(s)
2) Create Screens or Maps from Items and Graphs
3) Create Slideshows from Screens and Maps (flips through each)
-BHG_2008-