Issue with Placing server into Maintenance mode

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Issue with Placing server into Maintenance mode

Post by bsivavani »

Hi,

We are trying to place the server into maintenance mode through API using script, the script is working on other servers but it is failing from one host.

We are receiving below error while placing the server into maintenance mode.
Invoke-MySQLQuery : Exception calling "Open" with "0" argument(s): "Host 'XXXXX' is blocked because of many
connection errors; unblock with 'mysqladmin flush-hosts'"
At C:\SYSLAN\SYS\TOOLS\RWEST_Blackout\Nagios_Blackout\Nagios_Maintenance_OnPrem.ps1:346 char:17

When we search this error, we found below URL
https://chartio.com/resources/tutorials ... mazon-rds/

in the URL they mentioned run the command FLUSH ALL from MySQL promt.

Can you let us know if we can run this command on MySQL database ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issue with Placing server into Maintenance mode

Post by scottwilkerson »

I have no idea what this script is or does
bsivavani wrote:We are receiving below error while placing the server into maintenance mode.
Invoke-MySQLQuery : Exception calling "Open" with "0" argument(s): "Host 'XXXXX' is blocked because of many
connection errors; unblock with 'mysqladmin flush-hosts'"
At C:\SYSLAN\SYS\TOOLS\RWEST_Blackout\Nagios_Blackout\Nagios_Maintenance_OnPrem.ps1:346 char:17
I would attempt to contact the author if C:\SYSLAN\SYS\TOOLS\RWEST_Blackout\Nagios_Blackout\Nagios_Maintenance_OnPrem.ps1
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue with Placing server into Maintenance mode

Post by bsivavani »

Have you come across the command FLUSH ALL in mysql?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issue with Placing server into Maintenance mode

Post by scottwilkerson »

bsivavani wrote:Have you come across the command FLUSH ALL in mysql?
No.

Sseveral other FLUSH commands, but not ALL
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked