NagVis / nagvis

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

Worldmap.db #287

Closed EnderXncdr closed 3 years ago

EnderXncdr commented 3 years ago

What I am doing is a bit out of the box. I don't even know if you will even support it.

I am currently using Nagvis 1.9.14. I am working on a project in which I can automatically submit Latitude and Longitude for every host I put into Nagios. Each Host reports their Latitude and Longitude as a service check, which is tied to an Event Handler. The script, written in bash, uses sqlite3 to connect to the worldmap.db file, grabbing the Host Name, Latitude, and Longitude from the check. The script works BEAUTIFULLY when I run it manually. However, when tied to an Event Handler it's a different story. It never submits the data into worldmap.db.

I am not even sure if the nagvis.ini.php file covers this with the file_group reference. I would rather not use a cronjob to work in between to make it connect up.

EnderXncdr commented 3 years ago

I figured this out. I had to simply change the user group to nagcmd and it started to work.