Page 5 of 6

Re: Synology On Nagios Core

Posted: Wed May 23, 2018 5:53 pm
by skypete
Box293 wrote:Did you restart the Nagios service?

Yes

Re: Synology On Nagios Core

Posted: Wed May 23, 2018 5:56 pm
by skypete
ok my synology box name is HOSTNAME-1 and the IP is 192.168.1.77

My community SNMPv1,SNMPv2 name is SYNTEST

Re: Synology On Nagios Core

Posted: Wed May 23, 2018 5:59 pm
by Box293
You need to post your updated Nagios configs showing the command, host and service definitions.

Re: Synology On Nagios Core

Posted: Wed May 23, 2018 6:09 pm
by skypete
define command{
command_name check_snmp_synology
command_line $USER1$/check_snmp_synology -2 $ARG1$ -h $HOSTADDRESS$ -v $ARG2$
}

# HOSTS#

define host{

host_name HOSTNAME-1
address 192.168.1.77
max_check_attempts 3
check_interval 3
retry_interval 1
notifications_enabled 1

}

#SERVICES#

define service{

host_name HOSTNAME-1
check_command check_snmp_synology!HOSTNAME!
}

Re: Synology On Nagios Core

Posted: Wed May 23, 2018 6:44 pm
by Box293
You need to put the SNMP Community name in your service:

Code: Select all

define service{
host_name HOSTNAME-1
check_command check_snmp_synology!SYNTEST!
}

Re: Synology On Nagios Core

Posted: Thu May 24, 2018 9:49 am
by skypete
Box293 wrote:You need to put the SNMP Community name in your service:

Code: Select all

define service{
host_name HOSTNAME-1
check_command check_snmp_synology!SYNTEST!
}

Ok so I added the snmp community name as you said and all the services stopped due to me not having service description. I added that and started the services again again seems to not pick up any service commands.

define service{
use service
host_name HOSTNAME-1
service_description check_snmp_synology
check_command check_snmp_synology!SYNTEST!
}

define service{
use service
host_name HOSTNAME-1
service_description System Fan Status
check_command check_snmp_synology!Check system Fan status!SYNTEST!
}

define service{
use service
host_name HOSTNAME-1
service_description Disks Status
check_command check_snmp_synology!Disks status!SYNTEST!
}

Re: Synology On Nagios Core

Posted: Thu May 24, 2018 6:15 pm
by skypete
ok so I think I got it to work. My question is do we only need to have one service command? And when you click nagios interface will show the details like this? or can i add the services individually from the information below? Just want to make sure Thanks so much again. :D


Synology model: "RS3617xs+"
DSM Version: "DSM 6.1-15152"
DSM update: Available
System Status: Normal
Temperature: 32 (Normal)
Power Status: Normal
System Fan Status: Normal
CPU Fan Status: Normal
Number of disks: 12
"Disk 1" (model: "WD4001FFSX-68JNUN0 ") status:Normal temperature:29
"Disk 2" (model: "WD4001FFSX-68JNUN0 ") status:Normal temperature:27
"Disk 3" (model: "WD4001FFSX-68JNUN0 ") status:Normal temperature:27

Re: Synology On Nagios Core

Posted: Fri May 25, 2018 12:27 pm
by scottwilkerson
You can have 1 command and multiple service objects accessing the same command.

When you make changes and post a pic, we would need to see the new configs you are working with, otherwise we are just guessing at what you have configured.

Re: Synology On Nagios Core

Posted: Fri May 25, 2018 3:31 pm
by skypete
scottwilkerson wrote:You can have 1 command and multiple service objects accessing the same command.

When you make changes and post a pic, we would need to see the new configs you are working with, otherwise we are just guessing at what you have configured.
right now its just running on one service commands which is check_snmp_synology. So i am guess i can have multiple service objects like this

check_command check_snmp_synology!Disk status! i have enter this as a test and it is not showing up.

Re: Synology On Nagios Core

Posted: Fri May 25, 2018 3:41 pm
by scottwilkerson
So I just looked at the plugin you are using and that plugin checks everything at once, so you would just have the 1 service for your synology