per host custom macros
David Mansfield
nagios at dm.cobite.com
Wed Mar 29 23:15:07 CEST 2006
[apologies if anyone receieves dups of this. i sent it from the wrong
email address and I understand list management is fairly strict]
Hugo van der Kooij wrote:
> On Wed, 29 Mar 2006, Terry wrote:
>
>> You could maybe write an "intelligent" plugin to query the host
>> information from another source based on the service name or something
>> but nagios needs to know the IP address somehow. Where would you want
>> to put this information so nagios can perform the service
>> appropriately?
>
> Just to sum it up:
> - David dislikes adding extra hosts
> - David dislikes adding extra checks.
>
Not quite fair. I'm arguing that it would be far more maintainable not
that I like or dislike it. For 25 hosts with 4 services, would you
rather maintain 33 objects or 125?
33 = 25 hosts assigned to 4 hostgroups and 4 services bound to the
hostgroups
125 = 25 hosts, 25 service#1, 25 service#2, 25 service#3, 25 service #4?
Scale this up with hosts and services and it gets really bad.
> If this hostgroup is important than how is each service to learn their
> different address? Because it can't be from the host group nor from any
> macro.
>
You're wrong. It just works.
As a new user I guess I assumed that assigning a service to a
hostgroup_name instead of a host_name would work (contrary to the
documentation BTW).
And guess what. It DOES WORK.
Take a look. Define three hosts, put them in hostgroup 'ssh'. define a
service 'ssh' assign it to hostgroup_name 'ssh'. It just works. The
check_ssh is invoked for each member of the hostgroup just like a newbie
like me would expect.
The problem is that for a service requiring something other than
$HOSTADDRESS$ it breaks down.
David
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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