NRDS + Mysql

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

NRDS + Mysql

Post by sarpione »

Hi, in this case i need help about mysql.
I have passive check in a windows 7 with nrds and nagios XI.
1- I need to know the amount of registry in a table of mysql DB and if the amount is more than "80" report me critical, pls tell me what plugin i need to use and the command to type.

PLUS: If its possible, how to do that "if the amount of registry is more than 100 clear the table".

2- i need to check a value in the table, for example: If emp_id 4 and 10 are 35000 salary report ok, but if change salary report critical. Again pls tell me what plugin i need to use and the command to type.
Image

Thx a lot!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NRDS + Mysql

Post by ssax »

I'm not finding any existing plugins for passive checks that do what you're looking for but you should be able to piece one together:

https://vwiki.co.uk/MySQL_and_PowerShell
https://assets.nagios.com/downloads/nag ... inapi.html
https://nagios-plugins.org/doc/guidelines.html

Let me know if you have any questions.
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

Re: NRDS + Mysql

Post by sarpione »

I read the links u send me, but i dont the knowledge to do that...
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRDS + Mysql

Post by dwhitfield »

Many of the plugins are made by third-party developers. Since this is a Windows plugin, you might want to talk to the guys at http://nsclient.org/.

Of course, we can leave this open for community input.
Locked