# Checking Insight Agents for a hostname fails unexpectedly, host has the agent

**URL:** <https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756>\
**Category:** InsightConnect\
**Created:** [March 1, 2021, 6:33pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756 "2021-03-01T18:33:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilovesoar](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/ilovesoar/32/358_2.png) [@ilovesoar](https://discuss.rapid7.com/u/ilovesoar)\
**Post date:** [March 1, 2021, 6:33pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/1 "2021-03-01T18:33:31Z")

</div>

Getting this

Could not find agent matching {myhostname} of type Host Name. Check the agent input value and try again. Response was: NA

when the host does have the agent and I am doing the same exact search in IDR which it does pull back an agent doing it there just not in ICON.

---

<div class="post-metadata">

**Author:** ![joey\_mcadams](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/joey_mcadams/32/80_2.png) [@joey\_mcadams](https://discuss.rapid7.com/u/joey_mcadams)\
**Post date:** [March 1, 2021, 6:38pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/2 "2021-03-01T18:38:28Z")

</div>

How recently did you add that system?

There’s a 6-12 hour delay to replicate data across the VM databases.

---

<div class="post-metadata">

**Author:** ![joey\_mcadams](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/joey_mcadams/32/80_2.png) [@joey\_mcadams](https://discuss.rapid7.com/u/joey_mcadams)\
**Post date:** [March 1, 2021, 8:23pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/3 "2021-03-01T20:23:42Z")

</div>

@jon_schipp Had an idea on this one too…It might be a case sensitivity problem. We’ve got a fix incoming for that.

In the meantime, if you make sure your hostnames are the same case, it might work.

---

<div class="post-metadata">

**Author:** ![ilovesoar](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/ilovesoar/32/358_2.png) [@ilovesoar](https://discuss.rapid7.com/u/ilovesoar)\
**Post date:** [March 1, 2021, 8:25pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/4 "2021-03-01T20:25:43Z")

</div>

It’s had the agent for a while, years.

---

<div class="post-metadata">

**Author:** ![joey\_mcadams](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/joey_mcadams/32/80_2.png) [@joey\_mcadams](https://discuss.rapid7.com/u/joey_mcadams)\
**Post date:** [March 1, 2021, 8:33pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/5 "2021-03-01T20:33:21Z")

</div>

Can you see if it’s the case-insensitivity problem?

---

<div class="post-metadata">

**Author:** ![elijah\_martin-merrill](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/elijah_martin-merrill/32/109_2.png) [@elijah\_martin-merrill](https://discuss.rapid7.com/u/elijah_martin-merrill)\
**Post date:** [March 1, 2021, 8:36pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/6 "2021-03-01T20:36:00Z")

</div>

I suspect this is the case sensitivity problem - we have a fix for this in review. Keep your eyes open for the InsightAgent plugin version 1.0.2!

---

<div class="post-metadata">

**Author:** ![ilovesoar](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/ilovesoar/32/358_2.png) [@ilovesoar](https://discuss.rapid7.com/u/ilovesoar)\
**Post date:** [March 1, 2021, 8:42pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/7 "2021-03-01T20:42:33Z")

</div>

I put in the same hostname in IDR/ICON and only IDR finds it. It’s like the ICON api call is running the pagination and never ends up finding it based on that hostname.  
🤕

---

<div class="post-metadata">

**Author:** ![elijah\_martin-merrill](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/elijah_martin-merrill/32/109_2.png) [@elijah\_martin-merrill](https://discuss.rapid7.com/u/elijah_martin-merrill)\
**Post date:** [March 1, 2021, 9:05pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/8 "2021-03-01T21:05:33Z")

</div>

Let’s see if the new version of the plugin solves the issue and, if it doesn’t, let’s get a support case opened up for us to track this. I’ve seen this exact same behavior because of a case-mismatch issue (and no, the capitalization IDR uses in alerts doesn’t match the agent’s name in the agent management page). I wouldn’t recommend opening a case until we’ve verified the new version of the plugin has the same problematic behavior.

---

<div class="post-metadata">

**Author:** ![ilovesoar](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/ilovesoar/32/358_2.png) [@ilovesoar](https://discuss.rapid7.com/u/ilovesoar)\
**Post date:** [March 1, 2021, 9:20pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/9 "2021-03-01T21:20:00Z")

</div>

👍

---

<div class="post-metadata">

**Author:** ![elijah\_martin-merrill](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/elijah_martin-merrill/32/109_2.png) [@elijah\_martin-merrill](https://discuss.rapid7.com/u/elijah_martin-merrill)\
**Post date:** [March 1, 2021, 10:12pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/10 "2021-03-01T22:12:13Z")

</div>

@ilovesoar version 1.0.2 just hit the extension library! Could you give it a try?

---

<div class="post-metadata">

**Author:** ![ilovesoar](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/ilovesoar/32/358_2.png) [@ilovesoar](https://discuss.rapid7.com/u/ilovesoar)\
**Post date:** [March 1, 2021, 10:43pm UTC](https://discuss.rapid7.com/t/checking-insight-agents-for-a-hostname-fails-unexpectedly-host-has-the-agent/3756/11 "2021-03-01T22:43:57Z")

</div>

yea you fixed it lol
