problem with newly created checkcommand and service
Kaplan, Andrew H.
AHKAPLAN at PARTNERS.ORG
Tue Nov 22 19:29:37 CET 2011
Hi there --
I am going through the motions of adding a new checkcommand, and service to the
Nagios server. The command involves
the check_mssql_health plugin which runs on the Nagios server. The plugin gets
in information via queries to a particular
port on the Microsoft SQL server. Here are its particulars:
/usr/local/nagios/libexec/check_mssql_health --server=<database server>
--username=<username> --password=<password> --port=<port> --mode=connection-time
The name of the checkcommand is: database_connection-time
Once the checkcommand was created, so was the service. The configuration of the
service in question, taken from the
services.cfg file, is shown below:
define service {
service_description Database Connection Time
check_command database_connection-time!
host_name <database server>
check_period 24x7
contact_groups nt-admins,linux-admins,admins
event_handler_enabled 0
active_checks_enabled 1
passive_checks_enabled 0
notifications_enabled 1
check_freshness 0
freshness_threshold 86400
use generic-service
}
To verify the new configuration would work, the command:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
was run to verify the configuration. It was here the error message:
Checking services...
Error: Service check command '<database>_connection-time' specified in
service 'Database Connection Time' for host '<database server>' not defined
anywhere!
I verified the syntax of the command in the checkcommands.cfg file, including
the name given to the command. Why would Nagios
think the service check command is not defined, and return this error?
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111122/599da7a2/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list