Page 1 of 1

Monitor services without host?

PostPosted: Fri Aug 03, 2018 12:32 am
by Wicket
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,

Re: Monitor services without host?

PostPosted: Fri Aug 03, 2018 10:48 am
by mcapra
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

Re: Monitor services without host?

PostPosted: Fri Aug 03, 2018 4:17 pm
by cdienger
Thanks, @mcapra!