$HOSTn$ macros?
Andreas Ericsson
ae at op5.se
Tue Sep 11 16:02:51 CEST 2007
Paul Dugas wrote:
> Would it be possible in a future release to support something like a
> $HOSTn$ macro? I'm running into some larger configs where this would be
> very useful.
>
> I've got hundreds of CCTV cameras with serial PTZ-control ports and
> analog video outputs. Their serial ports are connected to various
> terminal servers scattered around a rather large network. Their video
> outputs are connected to separate video encoders.
>
> I have standard hosts definitions for the terminal servers and encoders.
> I have bogus host definitions for the cameras (with check_command set to
> check_none). The camera hosts are in a hostgroup are so I can provide
> consolidated reports to camera technicians.
>
> I currently have a whole slew of service definitions for the cameras
> that actually check the serial ports and video inputs on the real
> devices the camera is connected to. I'd love to be able to do something
> like this instead:
>
>> define host{
>> host_name cam-844
>> hostgroups CAM
>> host_data ts-23,12,enc-45,3 # terminal-server host, port, encoder host, port
>> use cam-host
>> }
I believe nagios 3 will have support for randomly named variables in host-objects,
accessible through a macro mechanism. The name of that mechanism eludes me at
present, but if you browse through the changelog for any of the nagios 3 betas you
should find it somewhere there.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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