Monitor services without host?

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Monitor services without host?

Postby Wicket » Fri Aug 03, 2018 12:32 am

Hello,

Is it possible to monitor services without defining a host?

What I mean is that I want to monitor some of my websites that I host but I don't want then mixed in under the webservers services and instead have them under a separate one.

I can make a new host definition that points to either the same IP or just a dummy one but maybe there is a better way of doing this?

Thanks,
Wicket
 
Posts: 5
Joined: Wed Jul 18, 2018 3:58 am

Re: Monitor services without host?

Postby mcapra » Fri Aug 03, 2018 10:48 am

Wicket wrote:Is it possible to monitor services without defining a host?

Nope. Services are always associated with hosts:
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/configobject.html

Wicket wrote:I can make a new host definition that points to either the same IP or just a dummy one but maybe there is a better way of doing this?

That's probably the best way to do it. Dummy host with active checks disabled, or your "host check" being something like checking that site's home page for some bit of content. Then if you want to define "services" under this host, you could check critical forms, checkout processes if these are ecommerce sites, emails, whatever.

You could also make these hosts dependent on the main host, which might be your webserver(s) hosting those websites. More info on dependencies:
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/dependencies.html
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3466
Joined: Thu May 05, 2016 3:54 pm

Re: Monitor services without host?

Postby cdienger » Fri Aug 03, 2018 4:17 pm

Thanks, @mcapra!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 2198
Joined: Tue Feb 07, 2017 11:26 am


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot], mcapra, sac1472 and 36 guests