how to monitor mysql and ssh in local localhost ?
J. Bakshi
joydeep at infoservices.in
Wed Aug 27 06:50:16 CEST 2008
Dear list,
I am new to nagios and installed it yesterday.
Woeking with nagios is a great pleasure. I am using nagios 2.12.
I like to monitor mysql, ssh, openldap, smtp and pop in my localhost
with nagios.
To check mysql and ssh I have added the following at localhost.cfg
========================================================
# Define a service to check MYSQL
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description MYSQL
check_command check_mysql!root!admin
}
# Define a service to check SSH
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description SSH
check_command check_ssh!22!192.168.1.1
}
=====================================================================
When I restart nagios it reports configuration error.
What have I done wrong ? Please suggest.
Thanks
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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