status reports from systems without xymon-client
All,
I have systems I wish to monitor but it will not be possible to place a xymon-client on them. I can create a script on these systems (in LUA) to collect and send the needed data though.
Is there an API by which I can pass the information without having to use the xymon executable?
Thanks.
John Alexander Network Administrator John.Alexander at feeneywireless.com<mailto:John.Alexander at feeneywireless.com> Feeney Wireless, LLC - PO Box 2549, Eugene, Oregon 97402 (Free) 800-683-4818 (P) 541-685-9045 (F) 541-284-0030 www.feeneywireless.com<http://www.feeneywireless.com/> [FW_Acronym_email]<http://feeneywireless.com/> This email transmission is intended only for the addressee shown above. It may contain information that is privileged, confidential or otherwise protected from disclosure. Any review, dissemination or use of this transmission or its contents by persons other than the addressee is strictly prohibited! If you have received this email transmission in error please notify us immediately.
On Thu, March 27, 2014 12:25 pm, John D. Alexander wrote:
All,
I have systems I wish to monitor but it will not be possible to place a xymon-client on them. I can create a script on these systems (in LUA) to collect and send the needed data though.
Is there an API by which I can pass the information without having to use the xymon executable?
Thanks.
John Alexander Network Administrator
There are a couple of options. If you can only script in LUA, but you're able to fork to run basic commands, then you might be able to leverage bash's TCP send feature: http://xymon.com/xymon/help/xymon-tips.html#noinstall
Alternatively, depending on if this is a security restriction or a technology restriction (eg, not a real *nix box), you can actually regularly SSH in and execute the xymonclient.sh script as any unprivileged user, getting the data and processing it back centrally.
See also: http://lists.xymon.com/archive/2011-November/033076.html and http://tools.rebel-it.com.au/xymon-rclient/
HTH,
-jc
On Thu, March 27, 2014 12:25 pm, John D. Alexander wrote:
All,
I have systems I wish to monitor but it will not be possible to place a xymon-client on them. I can create a script on these systems (in LUA) to collect and send the needed data though.
Is there an API by which I can pass the information without having to use the xymon executable?
Thanks.
John Alexander Network Administrator
There are a couple of options. If you can only script in LUA, but you're able to fork to run basic commands, then you might be able to leverage bash's TCP send feature: http://xymon.com/xymon/help/xymon-tips.html#noinstall
Alternatively, depending on if this is a security restriction or a technology restriction (eg, not a real *nix box), you can actually regularly SSH in and execute the xymonclient.sh script as any unprivileged user, getting the data and processing it back centrally.
See also: http://lists.xymon.com/archive/2011-November/033076.html and http://tools.rebel-it.com.au/xymon-rclient/
HTH, -jc
You can also run an ext script on your xymon server, connect to the system via ssh as a particular user and have that user's shell be whatever command it is that you need to run to collect whatever data (or use the ssh "command" option for authorized_keys). The command's output comes in on STDIN and you can then process it in the ext script.
cheers, Phil
participants (3)
-
cleaver@terabithia.org
-
JAlexander@feeneywireless.com
-
Phil.Crooker@orix.com.au