View Full Version : "Unknown" status in host map
imarinkovic
11-01-2010, 15:56
In the map section, all hosts appears as "Unknown", but the polling of data is working ok. If a trigger condition is reached, the icon in the map show the problem.
Version 1.8
Any idea?
Same problem here:
http://www.zabbix.com/forum/showthread.php?t=15250
imarinkovic
11-01-2010, 16:58
Ok,
I found the answer.
The "unknown" status appear by triggers that don't have any item associated (ie: disabled items)
Disabling this triggers to, removes "unknown" statuses
Example:
Trigger: Low number of free inodes on maggie volume /usr
--> In my case, this item was disabled, but no the trigger.
best regards
Zaniwoop
15-02-2010, 16:42
Almost solved.
I had the same problem and yes, I did have triggers that were "not supported".
I have removed them and in most cases this has solved the problem. However, there are some hosts that still report a number (2 - 18) of unknowns.
All remaining triggers have (latest) data, so they should be happy.
Is there anyway to find out what triggers are still :confused:unknown?
Zabbix 1.8.1 on Centos 5.4 (64 bit)
We're seeing the same problem here, and would love a solution. We've got templated hosts, and when disabling all the triggers that are unknown we still get this problem saying there are a number of unknown triggers. I've checked one in particular and I've got current data for the item it depends on?! this is a real pain.
-Cheers Max.
gospodin.horoshiy
01-03-2010, 10:52
Devs, please let *Unknown* feature be optional on maps....
I've got rid of the issue for now by performing the following sql
update triggers set status=1 where status=0 and value=2;
However I wouldn't recommend this approach.
-Max
gospodin.horoshiy
01-03-2010, 13:43
IMHO, frontend hack would be better....
Devs, please let *Unknown* feature be optional on maps....
I really support this suggestion. It's very annoying see "unknown" triggers stats on maps.
Here is the patch, it should resolve your problem (it's not included in release).
Patch is against pre1.8.2(r10540):
P.S. You may repost it in thread for patches.
gospodin.horoshiy
02-03-2010, 06:58
Thnx, Aly!
Very good! The patch have worked perfectly.
stuart.willoughby
02-03-2010, 15:08
Hello,
we've completed the upgrade from 1.6.6 to 1.8.1 on Redhat/mysql. Mysql is 5.0.45. PHP 5.2.6
Two problems really, one -all our icons in the upgraded maps are status 'unknown', however when we go into configuration/maps the icon's are not displayed (see attachment) and it's impossible to select the objects to edit or change them. However, you can see the latest data, triggers, etc when you click on an icon.
mysql> show variables like 'char%';
+--------------------------+----------------------------------+
| Variable_name | Value |
+--------------------------+----------------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /opt/mysql/share/mysql/charsets/ |
+--------------------------+----------------------------------+
mysql> select HEX(image) from images where imageid=7;
| 89504E470D0A1A0A0000000D494
Should I update the variables to utf8, truncate images table and reload from the 1.8.1/create/data/images_mysql.sql file?
INSERT INTO images VALUES (7,1,'Phone',0x89504E470D0A1A0A0000000D494....
They seem the same.
Is this the same as anyone else has seen?
Thanks
Stuart
radamand
22-03-2010, 19:25
Here is the patch, it should resolve your problem (it's not included in release).
Patch is against pre1.8.2(r10540):
P.S. You may repost it in thread for patches.
This patch is bad; the lines of maps.inc.php should read as:
$info['triggers'] = array();
foreach($info['triggers'] as $tnum => $trigger){
if($trigger['status'] == TRIGGER_STATUS_DISABLED) continue;
if($trigger['value'] == TRIGGER_VALUE_UNKNOWN) continue;
if(!isset($info['type'])){
$info['type'] = $trigger['value'];
Although this still doesn't fix the problem of "UNKNOWN"s showing up when you have a host disabled.
craigwelsh
15-04-2010, 18:25
I'm also having this issue with various 1.8.2 servers (see attached). I haven't managed to find the ticket for this issue on the support site, is anyone tracking it and could give the link?
I'll try the patch below on 1.8.2 to see what that does but servers that are Disabled showing unknown triggers is also annoying.
edit: The patch of line 1569 works on triggers for disabled items, is there a requirement to patch the other section (around line 1339) as well?
gospodin.horoshiy
16-08-2010, 16:52
zbx_182_map_unknown.patch doesn't work for 1.8.3 ...
any thoughts how to fix it? Can't figure it out...
I guess you have to wait my return from vocation :p
spamkiller
03-09-2010, 14:14
Hi Guys,
Somebody know how to apply this Patch? I donīt no how to do this.
Best regards.
alfsolli
12-10-2010, 14:28
I guess you have to wait my return from vocation :p
Are you back yet? Are you back yet?
But seriously, when you are, and I hope you had a nice one, could we have an updated patch for 1.8.3 please? :)
OK, here is the patch for 1.8.4 RC2 (although not very tested):
And here is patch against 1.8.3 (although not very tested, and unknown triggers will be counted for submaps):
alfsolli
12-10-2010, 17:58
Thanks, that worked pretty well. just tested really quick with my biggest map, and all the unknown's disappeared.
- Alf Solli -
Zaniwoop
12-10-2010, 18:06
Can this rather be an option on Zabbix, rather than patching each version? :cool:
Well possibly someone needs to know if some triggers are in UNKNOWN state.
P.S. In 2.0 version, unknown status will be slightly different for triggers, and I think it will not be an issue anymore. :rolleyes:
P.S.S. Those patches are unofficial. I write them in my free time. ;)
Tractorboy
22-10-2010, 09:27
I am trialling tha application and need to do a management demo tuesday next, and need a solution quickly.
Is there anyway to find out what triggers are still :confused:unknown?
SELECT DISTINCT h.host,i.key_ FROM items i, hosts h WHERE i.hostid=h.hostid AND h.status=0 AND i.status=3;
Tractorboy
02-11-2010, 14:36
Many Thanks
Oh my God, I hate this unknown triggers on maps and I don't believe that developers think that it is reasonable to disable the inactive triggers to solve the problem, even when there are thousands of them!
Follow the patch for zabbix 1.8.4.
That could be related with https://support.zabbix.com/browse/ZBXNEXT-332
gospodin.horoshiy
30-01-2011, 14:39
Oh my God, I hate this unknown triggers on maps and I don't believe that developers think that it is reasonable to disable the inactive triggers to solve the problem, even when there are thousands of them!
Follow the patch for zabbix 1.8.4.
Thnx for the patch
How i install this patch ?
Br. MMK
Hi,
Download the patch file to /var/www/html/zabbix/include/ (the path can vary depending on your web server settings). Enter in this directory and apply this command:
patch maps.inc.php < zbx_184_map_unknown.patch
osorio88
11-04-2011, 20:52
How can I uninstall this path? please i really need to uninstall this.
Hi,
Is this patch suitable for 1.8.3 ?
On my main map I have a number of server groups all showing unknown.
On the dashboard I have no alerts.
On the Triggers pages everything is showing as acknowledged.
Regards,
Doug
Sorry should have read the thread better! :eek:
Please ignore my last post.
Cheers,
Doug
Hi All,
To fix this on 1.8.5 remove 'TRIGGER_VALUE_UNKNOWN,' from lines 1274 & 1295 of maps.inc.php
-Max
osorio88
20-06-2011, 23:23
I need this but when i install this on zabbix 1.8.4 it shows me something like:
patching file maps.inc.php
Hunk #1 FAILED at 1325.
Hunk #2 FAILED at 1346.
2 out of 2 hunks FAILED -- saving rejects to file maps.inc.php.rej
Somebody knows why this is happening?
Big thanks ;)
efrain02
23-06-2011, 18:22
When i install this on zabbix 1.8.4 it shows me:
patching file maps.inc.php
Hunk #1 FAILED at 1325.
Hunk #2 FAILED at 1346.
2 out of 2 hunks FAILED -- saving rejects to file maps.inc.php.rej
I had the same error :eek: someone knowns why this is happening?
efrain02
28-06-2011, 21:44
Forget my last message... now is working 1.8.4 I just remplace the the portion of code of the patch on the maps.inc.php file and now is working.
Thanks :D