Location of service check threshold settings

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Location of service check threshold settings

Post by awilson »

I'm probably missing an obvious point. Where are the threshold's for service checks stored? Is there a direct path to list the threshold settings for each service check?

Thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Location of service check threshold settings

Post by benjaminsmith »

Hello,

The thresholds for service checks are stored in the configuration files for each service. In Nagios XI, you can edit these levels in the CCM or Core Configuration Manager.

Go to Configure > Advanced Configuration > Services and the Common Settings for each service, and you'll be able to review and edit settings.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Location of service check threshold settings

Post by awilson »

We have a request to report the threshold settings for a large number of network devices. I do not see those thresholds in the services/xxxx.cfg files or any other files. Are they stored in a database?

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Location of service check threshold settings

Post by lmiltchev »

Unfortunately, obtaining this type of report is simply impossible for a couple of reasons:

1. The thresholds could be defined in many different places, e.g. in the service config, in the template that this service is using, in the check_command... Each plugin is different, so it's impossible to come up with a report that will work for all plugins.
2. The thresholds may not even defined "locally", on the Nagios XI server. You may have a command, defined on the remote machine (host) that you are monitoring via check_nrpe, check_nt, check_ncpa.py, etc.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Location of service check threshold settings

Post by BanditBBS »

I have been asked for this report since I first started using Nagios in the early 2000's. At my current job I've been asked for it for 4 years and just the other day I finally wrote a script to export the thresholds into CSV files for specific checks that make sense. I'll attach the script, but unless you understand shell coding(crappy shell coding) it won't do you any good as things would need changed for your environment.

Basically it reads the setup from the database and the lines like:

Code: Select all

check_nrpe_cpu!70,80,40!90,90,80
And breaks that up with good column headers so others can understand what on earth the are looking for. That line in original form is only readable by me, my 2 other XI admins more than likely would have hard time explaining what it means. Now, with the script I wrote, when someone wants the report, we run it, supply an email address and they receive a bunch of CSV files and can then extract form that the information for the items they want and understand what it all is.
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Location of service check threshold settings

Post by lmiltchev »

Thanks for sharing @BanditBBS! I don't remember seeing any scripts that could be used for reporting on the threshold settings before... That was the first. :)

@awilson, let us know if you were able to modify the script enough, so that it works in your environment. We will appreciate your feedback. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Location of service check threshold settings

Post by awilson »

Thank you! We'll check and reply.

Alan
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Location of service check threshold settings

Post by scottwilkerson »

awilson wrote:Thank you! We'll check and reply.

Alan
Let us know if we can be of further assistance.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked