Page 1 of 1

mssql_server.py define service not work

Posted: Wed Feb 19, 2020 4:42 pm
by Auel
my define service

define service{
use generic-service
host_name BTP
service_description SQL
check_command check_mssql_database.py -H BTP -U nagios -P XXXX -T XXXXXX -p 1433 --cpu -w 50 -c 80
}

not working , can someone give me an example of how to define correctly the service of this plugins?
mssql_server.py
Thanks

Re: mssql_server.py define service not work

Posted: Wed Feb 19, 2020 5:21 pm
by Box293
You need to define a command. This documentation provides an example:

https://assets.nagios.com/downloads/nag ... ndows.html

Please refer to the section "Create the check command definition"

Re: mssql_server.py define service not work

Posted: Wed Feb 19, 2020 5:23 pm
by mbellerue
Also, definitely keep this link around. This document contains all of the information you need to define every type of object in Nagios Core. Complete with examples.
https://assets.nagios.com/downloads/nag ... tions.html