Nagios XI Thresholds for Specific Groups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Nagios XI Thresholds for Specific Groups

Post by emartine »

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

Post by npolovenko »

@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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Thresholds for Specific Groups

Post by emartine »

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

Post by npolovenko »

@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

Post by SteveBeauchemin »

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
Cmd-Args.PNG
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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI Thresholds for Specific Groups

Post by npolovenko »

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
Untitled.png
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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Thresholds for Specific Groups

Post by emartine »

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
Untitled.png
Then click on the configuration menu in the left column, select hosts or services and hit continue.
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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Thresholds for Specific Groups

Post by emartine »

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
Cmd-Args.PNG
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";
Thanks Steve. This is much appreciated!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI Thresholds for Specific Groups

Post by npolovenko »

@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?
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

Post by SteveBeauchemin »

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
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
Locked