Synology On Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
skypete
Posts: 98
Joined: Sat Dec 02, 2017 11:44 pm

Re: Synology On Nagios Core

Post by skypete »

Box293 wrote:Did you restart the Nagios service?

Yes
skypete
Posts: 98
Joined: Sat Dec 02, 2017 11:44 pm

Re: Synology On Nagios Core

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Synology On Nagios Core

Post by Box293 »

You need to post your updated Nagios configs showing the command, host and service definitions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
skypete
Posts: 98
Joined: Sat Dec 02, 2017 11:44 pm

Re: Synology On Nagios Core

Post 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!
}
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Synology On Nagios Core

Post 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!
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
skypete
Posts: 98
Joined: Sat Dec 02, 2017 11:44 pm

Re: Synology On Nagios Core

Post 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!
}
Attachments
Screenshot1.PNG
skypete
Posts: 98
Joined: Sat Dec 02, 2017 11:44 pm

Re: Synology On Nagios Core

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Synology On Nagios Core

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
skypete
Posts: 98
Joined: Sat Dec 02, 2017 11:44 pm

Re: Synology On Nagios Core

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Synology On Nagios Core

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked