Page 1 of 2
Linux SNMP Wizard Adds HTTP
Posted: Mon Mar 30, 2015 7:51 am
by TheHutGroup
Hello,
Whenever we add a new Linux SNMP host it automatically adds HTTP monitoring which cannot be deleted (it does not show in the Core Config Manager). Can someone please advise what is responsible for forcing this check and how I can remove it (or fix it so it does not happen on future monitoring wizards)?
Cheers
Martyn
Re: Linux SNMP Wizard Adds HTTP
Posted: Mon Mar 30, 2015 9:10 am
by tmcdonald
It absolutely should appear in the CCM. What are you searching for to find it? Try both "HTTP" and the name of the host that the service is attached to. Also, make sure you are checking past the first page of search results.
What XI version is this?
Re: Linux SNMP Wizard Adds HTTP
Posted: Mon Mar 30, 2015 9:37 am
by TheHutGroup
Hopefully the following screen shots should explain better than my words.
nXI-1.png
nXI-2b.png
nXI-3.png
And to confirm searching for HTTP in the CCM (Services) results in no results (was limited to 3 uploads).
*edit: The version is NagiosXI 2014R2.6
Re: Linux SNMP Wizard Adds HTTP
Posted: Mon Mar 30, 2015 9:54 am
by tgriep
Go to Core Config Manager, under the Tools section on the left hand side, click the Static Configurations link and check to see if it is defined there.
Re: Linux SNMP Wizard Adds HTTP
Posted: Tue Mar 31, 2015 10:19 am
by TheHutGroup
Thank you. In the following file "/usr/local/nagios/etc/static/xitemplates.cfg" I can see the following definition:
Code: Select all
define host{
name xi_host_website
use xi_host_generic
alias Website
_template_description Website
check_command check_xi_host_http
hostgroups xi_hostgroup_websites
register 0
}
Stupid question time but if I remove this section that should resolve the issue?
Re: Linux SNMP Wizard Adds HTTP
Posted: Tue Mar 31, 2015 10:28 am
by jdalrymple
So it sounds like the template xi_host_website is getting applied when you're using the Linux SNMP wizard to create a host? That doesn't sound normal, when I run it on my machine I get xiwizard_linuxsnmp_host which sources xiwizard_generic_host.
Re: Linux SNMP Wizard Adds HTTP
Posted: Tue Mar 31, 2015 11:35 am
by TheHutGroup
Thanks for the information.
I had a check in the host templates and found "xiwizard_website_host" and removed the reference to "xi_generic_host" from the "Manage Templates" option. This looks to have resolved the issue!
Re: Linux SNMP Wizard Adds HTTP
Posted: Tue Mar 31, 2015 11:50 am
by jdalrymple
Great - OK to lock this one up or do you think there is any further analysis we should do?
Re: Linux SNMP Wizard Adds HTTP
Posted: Wed Apr 01, 2015 3:06 am
by TheHutGroup
Hey,
I am taking over from Martyn as he is focusing on other tasks today.
Unfortunately, the issue hasn't been resolved by removing the following from xitemplates.cfg
Code: Select all
define host{
name xi_host_website
use xi_host_generic
alias Website
_template_description Website
check_command check_xi_host_http
hostgroups xi_hostgroup_websites
register 0
}
Can you recommend anything else so that we might better self-diagnose the issue?
Thanks,
Dave
Re: Linux SNMP Wizard Adds HTTP
Posted: Wed Apr 01, 2015 4:34 am
by TheHutGroup
It doesn't appear to matter what we select - It auto-populates HTTP, PING, Root Partition, SSH, Swap Usage, Total Processes:
The metrics:
select.png
The alert:
alert.png
It really is a head scratcher!