Page 2 of 6

Re: Synology On Nagios Core

Posted: Fri May 18, 2018 12:51 pm
by scottwilkerson
skypete wrote:Could you please send some examples thanks.
Here is the documentation for the object definitions
https://assets.nagios.com/downloads/nag ... tions.html

Re: Synology On Nagios Core

Posted: Fri May 18, 2018 1:30 pm
by skypete
Thanks so my question is where does plugins go and how to install them?

Re: Synology On Nagios Core

Posted: Fri May 18, 2018 2:21 pm
by scottwilkerson
In Nagios Core it all depends on how you installed Nagios.. The plugins directory varies based on how you installed Nagios and the operating system.

if you can find the resources.cfg file the location is usually listed next to $USER1$ in that file.

you will need to place it there and mark it executable.

then you will have to create the host definition, command definition (after testing your plugin from the command line to verify it works with your system.

Finally the service definition for each thing you want to check.

Re: Synology On Nagios Core

Posted: Fri May 18, 2018 3:31 pm
by skypete
could you please make a simple step by step process guide to get at least one of the service working from the beginning its very confusing really appreciate it and it would help me out alot.

Re: Synology On Nagios Core

Posted: Fri May 18, 2018 5:01 pm
by scottwilkerson
We have a bunch of these guides for Nagios XI, but it is much easier to use

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

For Nagios Core the full documentation and guides can be found here

https://assets.nagios.com/downloads/nag ... n/toc.html

Re: Synology On Nagios Core

Posted: Sun May 20, 2018 8:28 pm
by Box293
Before you worry about Nagios configurations you need to make sure the plugin runs from the command line first.

This plugin was recommended:

https://exchange.nagios.org/directory/P ... us/details

It has command examples on how it works.

Download the plugin to your Nagios Core server, probably into /usr/local/nagios/libexec/

https://support.nagios.com/kb/article/h ... t-531.html

Then make it executable:

chmod +x /usr/local/nagios/libexec/

Test it, this command assumes your device is configured for SNMP v2 using a community called public:

Code: Select all

/usr/local/nagios/libexec/check_snmp_synology -2 public -h your_synology_ip_address
What does that output?

Re: Synology On Nagios Core

Posted: Mon May 21, 2018 9:21 am
by skypete
Ok I will check that please stand by thanks so much.

Re: Synology On Nagios Core

Posted: Mon May 21, 2018 10:08 am
by tmcdonald
We'll keep this open for you.

Re: Synology On Nagios Core

Posted: Mon May 21, 2018 11:55 am
by skypete
Thank you

Re: Synology On Nagios Core

Posted: Mon May 21, 2018 12:14 pm
by skypete
Box293 wrote:Before you worry about Nagios configurations you need to make sure the plugin runs from the command line first.

This plugin was recommended:

https://exchange.nagios.org/directory/P ... us/details

It has command examples on how it works.

Download the plugin to your Nagios Core server, probably into /usr/local/nagios/libexec/

https://support.nagios.com/kb/article/h ... t-531.html

Then make it executable:

chmod +x /usr/local/nagios/libexec/

Test it, this command assumes your device is configured for SNMP v2 using a community called public:

Code: Select all

/usr/local/nagios/libexec/check_snmp_synology -2 public -h your_synology_ip_address
What does that output?

I get permission denied.