Forum Discussion
6 Replies
- HamishCirrocumulusI'm not sure you can.
- Magnum_IPNimbostratus
Hamish,
Thanks for your reply. I've tried the two monitor scenario and that works, I'd rather not use an external monitor if I can help it, I want to keep the solution simple.
Just to explore one last avenue...
In my original mail I said I was trying to check for the receive string A or B, with any other response causing the monitor to fail. Let's say there was only one other value, C, is there a way to have the MSSQL monitor check the value is not C?
Perhaps,
!C
Regards,
fergu5
- HamishCirrocumulusYeah. You could use the down on receive action for C...
- Magnum_IPNimbostratus
Hamish,
Apologies for another question. I can't see anything like the 'down on receive' option you mention in the MSSQL Monitor page in the GUI, are you suggesting using an external monitor to achieve this logic?
Regards,
fergu5
- HamishCirrocumulusSorry. Good point. I forgot you were using the MSSQL monitor... I think you'd have to use an external monitor for that.. (Or an external webpage that does the check and use an HTTP monitor with a specific IP and Port).
- hooleylistCirrostratusThe monitoring daemon should support POSIX extended regexes. So (A|B) should work to match a literal A or B in the response content: