Tag Archives: nagios

check_mk_agent over SSH Host key verification failed

Service discovery failed for this host: Agent exited with code 255: Pseudo-terminal will not be allocated because stdin is not a terminal. Host key verification failed.

Current Setup: Ubuntu 14.04 running OMD

Solution: Running the ssh command from the OMD user appears to fix the problem by allowing them into the known hosts list.

Here’s how:

linuxuser@ubuntu_vm:~$ sudo su
[sudo] password for linuxuser:
root@ubuntu_vm:/home/scadmin# su [omd-site-name]

then run your remote command eg:

ubuntu_vm[[omd-site-name]]:~$ ssh -l root -i /etc/check_mk/check_mk.key [ip]

It will ask to save the host to the known hosts, type yes and enter. It should then output the status from the check_mk agent.

RaspberryPI – AdagiosPI – Installing Nagvis

Nagvis has some issues installing with:
apt-get install nagvis

Here are the extra steps to get it running.

1). Fix the permissions outlined in the file /usr/share/doc/nagios3/README.Debian ( cat /usr/share/doc/nagios3/README.Debian will print out the contents in to the terminal).

2). Edit the backend config, in the web GUI go to Options -> Manage Backends. Then under “Edit backend” select live_1 and change the socket to: unix:/var/lib/nagios3/rw/livestatus
set a timeout to 30 (not sure if this is correct, sounded fun at the time).

3). Edit WuiViewEditMainCfg.php with the changes found here: http://sourceforge.net/p/nagvis/nagvis/ci/c7eb03fe37130546adfe298408606213f2d2fd9a/

nano /usr/share/nagvis/share/server/core/classes/WuiViewEditMainCfg.php
(instead of removing lines, I just added // as a comment).

https://www.mail-archive.com/[email protected]/msg1086669.html