Cacti / plugin_npc

Nagios Plugin for Cacti is a complete UI replacement for Nagios fully integrated into Cacti.
GNU General Public License v3.0
4 stars 3 forks source link

Nagios sync partially to NPC plugin - only can see update of hostgroup #13

Closed hinchoi closed 2 years ago

hinchoi commented 2 years ago

Dear Cacti engineer,

I'm facing the following issue, need your expertized advice. Much appreciated for your feedback and comment. Thank you.

Describe the bug Nagios sync partially to NPC plugin - only can see update of hostgroup

Steps to reproduce the behavior: Go to 'tab of NPC' only see the hostgroup 1 host up, no update to host status and service status summary

Expected behavior It should have appearance 1 host up at host status summary and service status summary

Screenshots

from NPC dashboard: image

from nagios status: image image image

Nagios logs: image

ndo2db service status: image

nagios service status image

Plugin (please complete the following information):

Version: cacti 1.2.21 centos 7.9 php 7.3.33 mariadb 10.4.25 nagios 4.4.6 apache 20120211 json version 1.7.0 ndoutils 2.1.3 Source: [https://github.com/Cacti/plugin_npc/] Browser: Chrome [Version 101.0.4951.54 (Official Build) (64-bit)] firefox Version 100.0.2 opera Version:86.0.4363.59

TheWitness commented 2 years ago

Is your cacti log clean? I don't know much about this plugin, I only brought it to the 1.2.x framework.

hinchoi commented 2 years ago

issue has been solved after added the following column:

ALTER TABLE npc_services ADD COLUMN importance smallint(6) NOT NULL default 0 AFTER icon_image_alt; ALTER TABLE npc_hosts ADD COLUMN importance smallint(6) NOT NULL default 0 AFTER z_3d; ALTER TABLE npc_contacts ADD COLUMN minimum_importance smallint(6) NOT NULL default 0 AFTER notify_host_downtime;

image

TheWitness commented 2 years ago

What version of Nagios where these columns introduced? Can you research this for us?

TheWitness commented 2 years ago

Re-opening. Need that Nagios version to update the documentation.

hinchoi commented 2 years ago

What version of Nagios where these columns introduced? Can you research this for us?

https://forums.cacti.net/viewtopic.php?t=26540&start=435

hinchoi commented 2 years ago

Hi,

The issue was partially solved actually. the host up detail didnot show after click on "Up" host as following. Do you have any comment or idea for this? thanks.

image

hinchoi commented 2 years ago

solved after reinstalled the plugin.