On Tue, Jun 9, 2009 at 12:49 PM, dinesh jadhav <[email protected]>wrote:
> > > > > Dinesh Jadhav9867011640"Do not worry about anything; instead > PRAY ABOUT EVERYTHING." > Philippians 4:6 > > --- On Tue, 9/6/09, dinesh jadhav > <[email protected]<din_jadhav2003%40yahoo.co.in>> > wrote: > > From: dinesh jadhav <[email protected]<din_jadhav2003%40yahoo.co.in> > > > Subject: Nagios problem check_mysql > To: "Vadapav Linux" > <[email protected]<linuxvadapav%40yahoogroups.com> > > > Date: Tuesday, 9 June, 2009, 11:37 AM > > HI All, > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN and it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? > > Here is what i have so far in commands.cfg > > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ > -u $ARG2$ -p $ARG3$ > } > > and my services.cf file... or localhosts.cfg (nagios verion 3.0) > > define service{ > use generic-service ; Name > of service template > hostgroup_name mysql_servers > service_description MYSQL > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r > check_command check_mysql > } > > Thanks!Dinesh Jadhav9867011640"Do not worry about anything; instead > PRAY ABOUT EVERYTHING." > Philippians 4:6 > > Explore your hobbies and interests. Click here to begin. > > Explore and discover exciting holidays and getaways with Yahoo! India > Travel http://in.travel.yahoo.com/ > > [Non-text portions of this message have been removed] > > > Hi, You have not specified "check_command" option there in services.cfg. You have to specify it with username and password for mysql. -- Have a nice time, Gourav Joshi Visit me at :- http://www.gouravjoshi.co.in [Non-text portions of this message have been removed]
