On 8 Jun 2010, at 16:36, Yitzhak Bar Geva wrote:

Sorry opsview.conf wasn't attached. Here it is now.

On Tue, Jun 8, 2010 at 6:34 PM, Yitzhak Bar Geva <yitzha...@gmail.com> wrote:
I went to the link you provided, but couldn't find any script. What did you have in mind.

I did a fresh installation based on Centos 5.5 in a VirtualBox VM. Again followed the instructions and am getting errors as shown in the the attached screenshot.

Here's a check I ran manually from the command line as user nagios:
[nag...@ybgcentos55 ~]$ /usr/local/nagios/libexec/check_mysql_performance -H localhost -u opsview -p 5215  --perfdata Connections,Max_used_connections
MYSQL_PERFORMANCE UNKNOWN - Couldn't see last state
[nag...@ybgcentos55 ~]$ /usr/local/nagios/libexec/check_mysql_performance -H localhost -u opsview -p 5215  --perfdata Connections,Max_used_connections
MYSQL_PERFORMANCE OK - All parameters OK | Connections=0.666666666666667;; Max_used_connections=7;;

and here's the check as defined in opsview:
check_mysql_performance -H $HOSTADDRESS$ -u opsview -p changeme --perfdata Connections,Max_used_connections

Should be

check_mysql_performance -H $HOSTADDRESS$ -u opsview -p 5215 --perfdata Connections,Max_used_connections

Make this change and then do a reload and the check should be correct within 10 minutes (you can also force a check to be done on the 'options -> mass recheck' page by selecting the relevant checkbox). 

I hope the '5125' isn't your real database password as you have now told the world what you set it to ;-)

  Duncs

-- 
Duncan Ferguson
Senior Developer/Support Engineer




Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK

UK:      +44 (0) 845 057 7887
USA:     +1 866 879 9184
Fax:       +44 (0) 1189 074 071
Skype:  tom.callway
Web:     www.opsview.com

This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.

_______________________________________________
Opsview-users mailing list
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to