Nagios XI Thresholds for Specific Groups
Nagios XI Thresholds for Specific Groups
Is there a way to pull down all of the threshold configuration information for a group of servers?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios XI Thresholds for Specific Groups
@emartine, Are you looking to get $ARGx$ values for all hosts in a hostgroup? I think the only way is to use a custom script that would pull all the check_command values from the /usr/local/nagios/var/objects.cache file. Then you'd need to create an algorithm that would only show commands from hosts that belong to certain hostgroups.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios XI Thresholds for Specific Groups
Figured I would have to do something custom.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios XI Thresholds for Specific Groups
@emartine, Let me know if you have any other questions?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Nagios XI Thresholds for Specific Groups
Would a SQL query help? You can wrap the output in a web page like I do.
If this type of data would be useful let me know and I'll PM you a perl app that grabs data and makes html file.
I don't have host groups in the query but you could probably add it.
Let me know...
Steve B
These are the complete list of columns
If this type of data would be useful let me know and I'll PM you a perl app that grabs data and makes html file.
I don't have host groups in the query but you could probably add it.
Let me know...
Steve B
These are the complete list of columns
Code: Select all
print OUTFILE " <TH>Host</TH>\n";
print OUTFILE " <TH>Service</TH>\n";
print OUTFILE " <TH>Contact Group</TH>\n";
print OUTFILE " <TH>Alias</TH>\n";
print OUTFILE " <TH>Check Interval</TH>\n";
print OUTFILE " <TH>Retry Interval</TH>\n";
print OUTFILE " <TH>Max Check Attempts</TH>\n";
print OUTFILE " <TH>Re-Notify Interval</TH>\n";
print OUTFILE " <TH>Command Arguments</TH>\n";
You do not have the required permissions to view the files attached to this post.
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios XI Thresholds for Specific Groups
Now that @SteveBeauchemin mentioned this query I remembered another way to look at the commands and thresholds in the Core interface. To open the core interface in your web browser type in the XI IP address /nagios
Then click on the configuration menu in the left column, select hosts or services and hit continue.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios XI Thresholds for Specific Groups
I've been doing that but when you have to grab a list of 20 servers w/ services... checking for each server is somewhat of a time consuming.npolovenko wrote:Now that @SteveBeauchemin mentioned this query I remembered another way to look at the commands and thresholds in the Core interface. To open the core interface in your web browser type in the XI IP address /nagios Then click on the configuration menu in the left column, select hosts or services and hit continue.
Re: Nagios XI Thresholds for Specific Groups
Thanks Steve. This is much appreciated!SteveBeauchemin wrote:Would a SQL query help? You can wrap the output in a web page like I do.
If this type of data would be useful let me know and I'll PM you a perl app that grabs data and makes html file.
I don't have host groups in the query but you could probably add it.
Let me know...
Steve B
These are the complete list of columnsCode: Select all
print OUTFILE " <TH>Host</TH>\n"; print OUTFILE " <TH>Service</TH>\n"; print OUTFILE " <TH>Contact Group</TH>\n"; print OUTFILE " <TH>Alias</TH>\n"; print OUTFILE " <TH>Check Interval</TH>\n"; print OUTFILE " <TH>Retry Interval</TH>\n"; print OUTFILE " <TH>Max Check Attempts</TH>\n"; print OUTFILE " <TH>Re-Notify Interval</TH>\n"; print OUTFILE " <TH>Command Arguments</TH>\n";
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios XI Thresholds for Specific Groups
@emartine, What if you kept the command and arguments blank for your services but had them defined in the service template? That way you'll know for sure all arguments for services are the same.
Hope @SteveBeauchemin's query worked for you. Let us know if we can lock this thread?
Hope @SteveBeauchemin's query worked for you. Let us know if we can lock this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Nagios XI Thresholds for Specific Groups
I will send you the file in a PM - personal message...
You can dissect the code and get the SQL - or just make the code work for you.
Steve B
You can dissect the code and get the SQL - or just make the code work for you.
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1