Page 1 of 2

Nagios XI Problems

Posted: Tue Nov 10, 2015 2:46 am
by Bone8Head
Hello guys.

I'm new in the world of Nagios XI.
I installed yesterday the Virtual Machine of Nagios XI for VSphere.
I got some problems:

The first is (by reading a Nagios Guide), for adding a Windows Machine I have to edit a /usr/local/nagios/etc/objects/windows.cfg , but first I have to edit the file /usr/local/nagios/etc/nagios.cfg and remove the "#" from the "/usr/local/nagios/etc/objects/windows.cf". The problem is in the nagios.cfg file I cannot find any windows.cf script...and if i Search in usr-local-nagios-etc, there is not a "Objects" directory. It is correct?

The second is that I manually added a Windows machine from the Nagios XI GUI (I installed the agent on the 2nd VM), but Nagios can't ping it.
Image

Somebody can help me?

Thank you very much.

Re: Nagios XI Problems

Posted: Tue Nov 10, 2015 10:05 am
by lmiltchev
The first is (by reading a Nagios Guide), for adding a Windows Machine I have to edit a /usr/local/nagios/etc/objects/windows.cfg , but first I have to edit the file /usr/local/nagios/etc/nagios.cfg and remove the "#" from the "/usr/local/nagios/etc/objects/windows.cf". The problem is in the nagios.cfg file I cannot find any windows.cf script...and if i Search in usr-local-nagios-etc, there is not a "Objects" directory. It is correct?
Can you provide us with a link to the document/tutorial you were following? I believe you are confusing Nagios XI with Nagios Core. The directory structure between the two is different. There is no "objects" directory in Nagios XI - it exists in Nagios Core only. Here's a document on the Nagios XI directory structure:

https://assets.nagios.com/downloads/nag ... ucture.pdf

You shouldn't be managing/modifying configs in the CLI anyway, as when you apply configuration, all of the changes you made would be wiped out. You need to manage configs via the Nagios Core Config Manager. If you want to manage configs manually (the old way, as in Nagios Core), you will need to place them in the "static" directory.

Hope this helps.

Re: Nagios XI Problems

Posted: Tue Nov 10, 2015 2:37 pm
by WillemDH
Please read through this:
https://assets.nagios.com/downloads/nag ... gement.pdf
The second is that I manually added a Windows machine from the Nagios XI GUI (I installed the agent on the 2nd VM), but Nagios can't ping it.
Check out the CCM and post a screenshot of your host configuration. Also try pinging this host from the Nagio XI cli and let us know if that works.

Grtz

Re: Nagios XI Problems

Posted: Tue Nov 10, 2015 4:46 pm
by hsmith
Thank you Willem.

Let us know what you come up with, @Bone8Head.

Re: Nagios XI Problems

Posted: Wed Nov 11, 2015 2:48 am
by Bone8Head
Hello guys, thank you for your help.
Actually, I think that you are right, I was watching a Nagios Core Documentation.
Now I will the guide that you linked for Configure my Nagios XI.
Now I added the VM from the vSphere Host, and I don't see the problem of Pinging now.
Now please, I've got some questions for you:

1) Now the VM's that I added from the vSphere Host got a Service Input/Output Issue (Unknown Error). It is normal?
Image
2) I have to use Nagios for Monitoring all my Servers - VM. I want that Nagios alert me via E-Mail, if a Database, a Server or something like that got a problem (Full RAM or CPU Usage, Disk Full, something like that). I see that from the VMware Monitoring I cannot see the Disk Usage, but I'm sure that is a Service that can I add manually in the Nagios Core Configuragion Manager. I am right?
3) How can I told Nagios to DON'T alert me via E-Mail and stop saying "CRITICAL ERROR" if a VM or Server is on "Power Off"?
4) There is a tool that can "automatically" add the NRPE Tool? Because I'm having the famous "Cannot complete the SSL Handshake" issue, and I can't find the right solution for it.

Thank you very much in advance to all of you.

Re: Nagios XI Problems

Posted: Wed Nov 11, 2015 9:21 am
by Bone8Head
Ah and sorry guys, but I have another question.
Where I am wrong in the Syntax of the NagiosXI Plugins?
I'll explain: I'm trying for example to add a Service of the check_snmp_synology command on my Nagios XI, but is still give me an error.
I've tried a LOT of configurations, but it still reject my "apply configuration" on Nagios Core Configuration, because if I try the same command on the nagios console, it works (like the 3rd Screenshot).
I'm pretty sure that I'm writing something bad in the command or in the Service box...can someone help me out for this problem aswell?

Thank you!

COMMAND
Image

SERVICE
Image

NAGIOS CONSOLE
Image

Re: Nagios XI Problems

Posted: Wed Nov 11, 2015 11:29 am
by scottwilkerson
This looks ok, what are the permissions of

Code: Select all

ls -l /usr/local/nagios/libexec/check_snmp_synology
is it executable by the nagios user/group?

Re: Nagios XI Problems

Posted: Thu Nov 12, 2015 2:44 am
by Bone8Head
scottwilkerson wrote:This looks ok, what are the permissions of

Code: Select all

ls -l /usr/local/nagios/libexec/check_snmp_synology
is it executable by the nagios user/group?
That's the permission:

Image

Re: Nagios XI Problems

Posted: Thu Nov 12, 2015 5:28 am
by Bone8Head
I changed the permission of the plugin in 777 and I put the root:nagios proprietary-group, but nothing changed...

Re: Nagios XI Problems

Posted: Thu Nov 12, 2015 2:47 pm
by jdalrymple
I notice a line break in $ARG2$ - is there perhaps a space between the G and the 2?