Status is showing Unknown when monitoring MySQL 5.7

This forum is intended for the discussion of Nagios Core development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagios-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Status is showing Unknown when monitoring MySQL 5.7

Postby cssp » Thu Jun 14, 2018 12:13 pm

Sorry for my mistake.

Please check and update me.

[root@localhost ~]# /usr/local/nagios/libexec/check_mysql_health -H 192.168.0.116 --username nagios --password nagios --port 3306 --mode uptime
CRITICAL - database is up since 4 minutes | uptime=294s

After stop firewall, it's showing below details

[root@localhost ~]# /usr/local/nagios/libexec/check_mysql_health -H 192.168.0.116 --username nagios --password nagios --port 3306 --mode uptime
OK - database is up since 11 minutes | uptime=668s
[root@localhost ~]#

Thanks
cssp
 
Posts: 18
Joined: Thu May 17, 2018 10:31 pm

Re: Status is showing Unknown when monitoring MySQL 5.7

Postby cssp » Thu Jun 14, 2018 12:19 pm

Sorry for my mistake.

[root@localhost ~]# /usr/local/nagios/libexec/check_mysql_health -H 192.168.0.116 --username nagios --password nagios --port 3306 --mode uptime
OK - database is up since 11 minutes | uptime=668s
[root@localhost ~]#

Please check and update.

Thanks
cssp
 
Posts: 18
Joined: Thu May 17, 2018 10:31 pm

Re: Status is showing Unknown when monitoring MySQL 5.7

Postby scottwilkerson » Thu Jun 14, 2018 1:40 pm

Ok, so this show that the plugin is working.

Are you sure your MySQL server is in a replication group?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
CTO
 
Posts: 9590
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Status is showing Unknown when monitoring MySQL 5.7

Postby cssp » Sun Jun 17, 2018 8:12 am

Thank you so much for your awesome support. :D

Now I can able to monitor MySQL server in most of the modes.

Sorry for the delayed replay, I just want to monitor Apache Tomcat 9 so I have done with check_tomcat.pl and its working fine. :D

Once again thank you and you can lock.
cssp
 
Posts: 18
Joined: Thu May 17, 2018 10:31 pm

Previous

Return to Nagios Core Development

Who is online

Users browsing this forum: No registered users and 6 guests