Page 2 of 2
Re: Monitoring hosts using ssh quick test?
Posted: Thu Oct 05, 2017 4:40 pm
by dwhitfield
Does it work as expected using the nagios user? Does the user have any special characters?
Re: Monitoring hosts using ssh quick test?
Posted: Fri Oct 06, 2017 10:45 am
by eloyd
I think this proves that there is something wonky going on that is not easily explained. Namely, that you are trying to do everything that the Nagios software would do, and it's working for you at the command line, but when you do it from within Nagios, it fails. The only thing I can think of at this time is this: Is your Nagios software running as a user other than "nagios?"
ikekim wrote:If I'm understanding you correctly, I'm executing these commands on the Nagios XI server command line:
[root@null-0800270406a2 ~]# su - nagios
[nagios@null-0800270406a2 ~]$ ssh -l testuser1 10.155.20.60 "/usr/bin/uptime"
This host is managed by SaltStack!
16:39:04 up 20 days, 11:30, 1 user, load average: 0.28, 0.14, 0.08
This works - so what would be the reason this working leads to the conclusion "something wonky is going on with Nagios"?
thanks,
ik
Re: Monitoring hosts using ssh quick test?
Posted: Fri Oct 06, 2017 1:53 pm
by dwhitfield
OP, can you PM me your Profile? We are kinda running out of options. Maybe it'll turn up something unusual.
You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
If you get an error that PROFILE BUILD FAILED, please see
https://support.nagios.com/kb/article.p ... ategory=44