check_xi_by_ssh

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

check_xi_by_ssh

Post by jcwuerfl »

Testing from the "Test Check Command" button from the NagiosXI interface doesn't work the same as doing it from the Nagios linux command line as Nagios. Can this be fixed? It works fine from the Linux command line.

Thanks!

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_by_ssh -H hostname.domain.local -C "/home/nagios/plugins/check_cpu_stats.sh" 
OUTPUT: Remote command execution failed: Could not create directory '/var/www/.ssh'.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_xi_by_ssh

Post by Box293 »

I have reported this here before:
http://tracker.nagios.com/view.php?id=679

Please feel free to + 1 it.

In this case, the problem is because a check_by_ssh plugin at the command line stores the keys in the nagios user's home directory.

When executed via CCM this uses the apache user and hence it doesn't have access to the nagios user's home directory.

So for all further testing of this service you need to:
  • Make the changes to the service
    Save the Service
    Apply Configuration
    Go back to the home screen and find the Service
    When viewing the Service Status Details page click the Schedule a forced immediate check link
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: check_xi_by_ssh

Post by jcwuerfl »

Thanks. Right so you almost need another very small sub-website that's run as nagios to do the ssh test? in any case I'll go +1 that one.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_xi_by_ssh

Post by lmiltchev »

Thanks for the feedback, jcwuerfl! Is is all right if we close this thread?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: check_xi_by_ssh

Post by jcwuerfl »

That sounds good. Thanks!
Locked