Monitoring service for every machine in hostgroup EXCEPT ONE

August Simonelli augusts at gmail.com
Tue Jul 24 00:27:12 CEST 2007


hey kelly ...

i've just done the following in the service entry:

define service{
        hostgroup_name          your_20_server_group
        host_name               !not_this_one_server
        service_description     the_service

etc etc ...

being able to negate hosts seems to work fine in version 2.x (not sure about
1 or 3)

august



On 7/23/07, Kelly Jones <kelly.terry.jones at gmail.com> wrote:
>
> I've created a hostgroup of 20 machines, and want to monitor 10
> services on each machine (easy). I now want to monitor an 11th service
> on 19 of the 20 machines. What's the best way to do this?
>
> Two ugly ways I don't like:
>
> % Create a separate hostgroup for the 19 machines I do want to monitor.
>
> % Monitor the service on all 20 machines, but schedule infinite
> downtime for the service on the 20th machine.
>
> Is there a better way?
>
> Semi-related questions:
>
> % Can I create an "invisible" hostgroup? One that nagios can use but
> doesn't show up on the web interface?
>
> % When I mark a service down, I don't get emails about it (that's
> good), but it still shows as red on the web interface? How can I fix
> this?
>
> --
> We're just a Bunch Of Regular Guys, a collective group that's trying
> to understand and assimilate technology. We feel that resistance to
> new ideas and technology is unwise and ultimately futile.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070724/3647dbdd/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list