The log was empty...I think the log dir variable was wrong somehow.
Now that there is a log: Can't locate Time/Piece.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /home/USERHIDDEN/server/ext/retds.pl line 58. BEGIN failed--compilation aborted at /home/USERHIDDEN/server/ext/retds.pl line 58.
Whoops. Installed (CentOS) with $yum install perl-Time-Piece
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Thu, Sep 22, 2016 at 3:34 AM, W.J.M. Nelis <Wim.Nelis at nlr.nl> wrote:
The script itself doesn't have SSH commands to my knowledge. The one SSH command is in hosts.cfg and that's just to pull named.stats.
Correct. The script takes the command as specified, replaces the the substitutable parameters by their values, executes the resulting command and catches the resulting standard output.
I did test this in (Xymon user)'s shell, it worked as expected. I could also grab the named.stats file.
So, manually it works but when invoked from the script it does not? Are there any messages in the logfile?
Regards, Wim Nelis.
On Wed, Sep 21, 2016 at 4:41 PM, William Pechter <pechter at gmail.com> wrote:
Josh Luthman wrote:
https://wiki.xymonton.org/doku.php/monitors:retds
Has anyone installed this recently? I went through the instructions but I think my first snag is the lack of SSH to grab the named.stats file. Watching tcpdump on the client I get no 22/tcp traffic from the Xymon server.
My host entry (IP host and user changed): 192.168.1.100 foobar.imaginenetworksllc.com < http://foobar.imaginenetworksllc.com> # dns RNAMED:"cmd(ssh -T username@%{H} 2>/dev/null),statsfile(named.stats)" TRENDS:*,bindstats
I do have an SSH trust but it's not getting that far, Xymon isn't attempting to SSH at all.
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
First thought is to try to do the ssh command in the scripts manually as the Xymon user and see if it's wanting to update the known_hosts or waiting for someone to accept the remote key... etc.
I know it's kind of an obvious thing and you might have checked it but I've seen fun with ssh scripts like that which timeout waiting for user intervention. After a manual run it's good to go for the rest of the life or until modified.
Bill
-- Digital had it then. Don't you wish you could buy it now! pechter-at-gmail.com http://xkcd.com/705/
*The NLR disclaimer is valid for NLR e-mail messages.*
This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of the sender.
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. Sender accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon