Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All,
We have a nagios configured in our company. Recently, we got an error on nagios. However, it got resolved in next 15minutes. Everything is working fine. But, still getting that alert from nagios.
Please see the critical alert in the screenshot which we are keep getting from nagios.
I don't have much knowledge about nagios. So, Please help me in this.
Thanks in advance.
Last edited by reetesh.amity; 10-17-2015 at 03:18 PM.
You'd need to look at the services.cfg on your Nagios server (which you obfuscated) to find the section that is for the hostname (which you also obfuscated). In that section locate the subsection for "DATABASE INSTANCE STATUS" and look to see what command it is running. You might have to check that command after another section in your file or in the separate commands.cfg file.
Dear sir,
Please see my services.cfg configuration below and suggest accordingly-
We suggested you look for "DATABASE INSTANCE STATUS" in your Nagios config. Did you? Did you check it?? Did you check the other files that MensaWater suggested?
This is a puzzling question, since you obviously already HAVE installed and configured Nagios, that you now apparently know nothing about it, or how to check such things. Very basic first step would seem to be restarting Nagios, since it would then clear out such alerts, and 'reset' things. If you don't know about Nagios, why don't you ask whoever set it up?
###############################################################################
#
# SAMPLE PERFORMANCE DATA COMMANDS
#
# These are sample performance data commands that can be used to send performance
# data output to two text files (one for hosts, another for services). If you
# plan on simply writing performance data out to a file, consider using the
# host_perfdata_file and service_perfdata_file options in the main config file.
#
################################################################################
Dear sir(MensaWater & TB0ne),
I don't have much knowledge about nagios. I have paste here both files and currently I don't have any DB server. So, I did not configure anything related to DB.
Please look into these 2 files and suggest me what to do next and how to do?
The problem is that what you're showing in your original screen shot does not appear to match anything in your services.cfg or commands.cfg.
In you screen shot what is the actual FULL URL (i.e. What server name did you hide)?
In the screen shot what is the actual "Host" name.
As I noted in my first reply you blanked both these things out.
It appears from your cat commands that you are on server "estel" when you did the cat. Is that the same as the server in the FULL URL?
Also from what you did provide in services.cfg it suggest your target host is "rhel.redhat.com" which seems unlikely unless you work for RedHat. Either you've replaced the real name to post here or you're looking at the wrong services.cfg. (Or worse yet you're using "redhat.com" as an internal domain.)
As a note on what you did provide note that "check_nrpe" generally tells Nagios master to query an nrpe.cfg on the target host but you'd still have to have defined check_nrpe in something like commands.cfg on the master itself.
Login to whatever host is in the FULL URL you hid and do a "find / -name services.cfg" to verify the one you are looking at isn't just an example file. The normal location would be /usr/local/nagios/etc/objects (or just /usr/local/nagios/etc) but can be different based on how you did configuration of Nagios in the first place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.