Hiding hostgroups, but still referencing them

Assaf Flatto nagios at flatto.net
Thu Jan 26 14:22:28 CET 2012


Boyer, Timothy A. wrote:
> I’ve got some scripts that do a wget in order to receive data from a 
> hostgroup. The hostgroup I’m using is an artificial, really big group 
> that is of no use to anyone except to get said report.
> Is there any way to hide this hostgroup on the display, yet still 
> access it for data? The usual advice for hiding a hostgroup is just to 
> use a ‘register 0’, but then the wget doesn’t return anything when 
> referencing it.
> Thanks for any pointers…
Of course the wget will not work .
register 0 tells nagios not to display the group in the WebUI ( it does 
more , but currently that is the relevant part) and as you are trying to 
access the data via a HTTP request , the item in question is not passed 
to the web provider (apache) and there for not coming up for a wget request.



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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