NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
115 stars 73 forks source link

SummeryOutput Problem #189

Open StefanRudat opened 5 years ago

StefanRudat commented 5 years ago

Hi Using Nagvis V 1.9.11 , Nagios 4.4.3 I facing following Problem.

But in the case the host is up and it is not the localhost

Bye Stefan

StefanRudat commented 5 years ago

Hi solved the Problem using mk-livestatus-1.4.0p38
the version mk-livestatus-1.5.0p16 is not suitable for Nagvis V 1.9.11 Bye Stefan

LarsMichelsen commented 5 years ago

Should be working fine. Need more details about your setup (sites / configured backends and so on).

StefanRudat commented 5 years ago

Hi Lars Will try to send so much informatios as possible ... I checked it with an remote nagios installation where nagvis ; nagios & mk-livestatus runs perfect [backend_SWR] ; and with the local installation [backend_live_1]

hope I send you the informations you need.

NagVis Version 1.9.11 PHP Version 7.2.17-0ubuntu0.18.04.1 MySQL Version mysql Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using EditLine wrapper OS Linux monitoring 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Webserver Information SERVER_SOFTWARE Apache/2.4.29 (Ubuntu) SCRIPT_FILENAME /usr/local/nagvis/share/frontend/nagvis-js/index.php SCRIPT_NAME /nagvis/frontend/nagvis-js/index.php REQUEST_TIME 1559429277 (gmdate(): Sat, 01 Jun 2019 22:47:57 +0000) PHP Information error_reporting 30719 safe_mode no max_execution_time 30 seconds memory_limit 128M loaded modules Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, ssh2, mysqlnd, PDO, xml, calendar, ctype, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache json_encode yes json_decode yes Client Information USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0 Logon Information Logon Module LogonMixed Auth Module CoreAuthModSQLite Authorization Module CoreAuthorisationModSQLite Logon Var REMOTE_USER REMOTE_USER nagiosadmin Logon Create User? 1 Logon Create User Role? Guests Current User Information User Logged In nagiosadmin (3) User Auth Module
User Logon Module
User Trusted Auth yes User Roles [{"roleId":"1","name":"Administrators"}] User Permissions {"":{"":{"*":[]}}}

[global] dateformat="d-m-Y H:i:s" file_group="www-data" http_proxy="tcp://172.10.40.21:8888" language="de_DE" [paths] [defaults] backend="demo" [index] [automap] [wui] [worker] [backend_SWR] backendtype="mklivestatus" socket="tcp:172.10.40.20:6557" [backend_WLAN_3] backendtype="mklivestatus" socket="tcp:127.0.0.1:6557" [backend_live_1] backendtype="mklivestatus" socket="unix:/var/lib/nagios/rw/live" [backend_ndomy_1] backendtype="ndomy" [states]

bye Stefan

LarsMichelsen commented 5 years ago

The error message you posted is related to a backend "live_2" which does not exist in the configuration you sent me. The backend_id for that object may be wrong. You probably need to set it to backend_id=SWR?

StefanRudat commented 5 years ago

Hi Lars,

Sorry yes, during my fault finding I set up a Backend:live_2 socket="tcp:172.10.40.252:6557" ; it's the localhost Simply to have the same TCP socket reading like form the remote Nagios socket="tcp:172.10.40.20:6557" only for testing.

The result was that everything nagvis got from the remote host was Ok but everything it got from the localhost over the TCP socket shows the problem.

Then I set back to [backend_live_1] socket="unix:/var/lib/nagios/rw/live" tested the socket using:

echo 'GET hosts' | unixcat /var/lib/nagios/rw/live echo 'GET services' | unixcat /var/lib/nagios/rw/live

Unfortunately I was not able to read the version from mk-livestatus/livestatus.o at the working Nagios server installation. So I beginn to go down in the mk-livestatus version until I found a working version.

The Nagvis/Nagios Server is now transfered to the productive envoirement. This makes it a litte bit tricky for me to find a timeslot to exchange the different livestatus.o versions.

bye Stefan

LarsMichelsen commented 5 years ago

Next time you may use this query to get the livestatus.o version:

lq "GET status\nColumns: livestatus_version"
StefanRudat commented 5 years ago

thank you very much , makes the live quite easier ;-)