Hi,
I have a hostgroup configuration like this "image hostgroup"
how do they work? I don't see the link anywhere in the dashboard.
Where are they located?
Regards,
-Fede
Hostgroup URL
-
Support_Talea
- Posts: 73
- Joined: Wed Oct 04, 2017 7:12 am
Hostgroup URL
You do not have the required permissions to view the files attached to this post.
Re: Hostgroup URL
You can get a description of what a field does and what it's used for by using the dropdown in the top right of the page next to the star.
(To be honest, I'm still searching for where to see this reflected in Nagios XI. I'll add more when I figure that out.)Hostgroup - notes url
This variable is used to define an optional URL that can be used to provide more information about the host group. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing hostgroup information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host group, emergency contact methods, etc. available to other support staff.
Parameter name: notes_url
Required: no
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Hostgroup URL
The Host group notes URL is not used anywhere in the administration interface, but it's saved in a macro which could be used in a notification or other command - https://assets.nagios.com/downloads/nag ... groupnotes
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
-
Support_Talea
- Posts: 73
- Joined: Wed Oct 04, 2017 7:12 am
Re: Hostgroup URL
Hi,
Ok, I'll see how to implement it and if it will be useful to me.
I ask one thing, because I have a couple of problems that I can't solve.
I have several hosts inserted inside the hostgroups tab and many hostgroups inserted inside the hosts.
How do I extract from select mysql the hosts in which hostgroups are located and if they are not included?
Regards,
-Fede
Ok, I'll see how to implement it and if it will be useful to me.
I ask one thing, because I have a couple of problems that I can't solve.
I have several hosts inserted inside the hostgroups tab and many hostgroups inserted inside the hosts.
How do I extract from select mysql the hosts in which hostgroups are located and if they are not included?
Regards,
-Fede
Re: Hostgroup URL
Here's a tutorial on how to set up a custom notification using macros.Support_Talea wrote:Ok, I'll see how to implement it and if it will be useful to me.
If you mean "show me hosts that are NOT part of a host group", then you can use this command to extract it from Nagios Core's config files:Support_Talea wrote:I have several hosts inserted inside the hostgroups tab and many hostgroups inserted inside the hosts.
How do I extract from select mysql the hosts in which hostgroups are located and if they are not included?
Code: Select all
ls -1 /usr/local/nagios/etc/hosts/ | sed -e 's/\.cfg//g' | grep -vwf <(grep members /usr/local/nagios/etc/hostgroups.cfg | sed -e 's/members//g' | tr -d '[:blank:]' | tr , '\n' | sort -u)If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
-
Support_Talea
- Posts: 73
- Joined: Wed Oct 04, 2017 7:12 am
Re: Hostgroup URL
Fantastic, very beautiful.
Thank you so much
-Fede
Thank you so much
-Fede