SSH - Make Red if ACTIVE
I have set up XYMon and XYMon - Client successfully today!
But I have an interesting situation, I have services like my Routers and esxi servers where I want XYMon to go RED if SSH is ENABLED. It should be disabled for security, can I make it so it runs the other way around then normal?
I Apologize if this is written somewhere and super easy, I couldn't find it!
PS: I had a hard time getting client to work, if I can make a polite suggestion for the this webpage >>
http://xymon.sourceforge.net/xymon/help/xymon-tips.html#noclient
Basically that
cat /etc/default/xymon-client | grep CLIENTHOSTNAME
must match
XYMon-Server's /etc/xymon/hosts.cfg.
1.2.3.4 CLIENTHOSTNAME # Extra Params
I understand that it is implied in the text, but this might make things much easier to fix for those of us looking to solve the issue of "The client is using another hostname than what is in the hosts.cfg file."
On 7/21/2016 7:58 AM, FreeSoftwareServers wrote:
I want XYMon to go RED if SSH is ENABLED
0.0.0.0 foo.bar.com # !ssh
From the man page for hosts.cfg
By prefixing a test with "!" it becomes a reverse test: Xymon will expect the service NOT to be available, and send a green status if it does NOT respond. If a connection to the service succeeds, the status will go red.
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
participants (2)
-
freesoftwareservers@gmail.com
-
john.thurston@alaska.gov