Monitor services without host?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Wicket
Posts: 5
Joined: Wed Jul 18, 2018 3:58 am

Monitor services without host?

Post 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,
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitor services without host?

Post 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/nag ... bject.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/nag ... ncies.html
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor services without host?

Post by cdienger »

Thanks, @mcapra!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked