NPC - Nagios Plugin for Cacti

General discussion about Plugins for Cacti

Moderators: Moderators, Developers

Author
Message
boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

NPC - Nagios Plugin for Cacti

#1 Post by boluser » Mon Jan 14, 2019 11:06 am

Hello,
First, say that I am new in cacti, and that my English is not very good. :D
Now, this is my question:
I have installed cacti in version 1.2.0 and nagios in version 4.4.1. I'm trying to install the npc plugin and it gives me an error. I attached an image to make it look better.
I have tried to find the solution through the forum, but all the problems are of very old versions. Also, I am not clear if I have to install Plugin Architecture or if it is no longer necessary. I see correctly the section "Plugin management" ¿¿??
Any help please? If you need me to send any information, you tell me. Thank you very much and greetings!!
Attachments
cacti.jpg
Cacti error
cacti.jpg (101.14 KiB) Viewed 965 times

netniV
Cacti Guru User
Posts: 2670
Joined: Sun Aug 27, 2017 12:05 am

Re: NPC - Nagios Plugin for Cacti

#2 Post by netniV » Mon Jan 14, 2019 11:34 am

I am not sure if there is a 1.x compatible version of the NPC plugin. As it's a third party plugin, one I've not heard of before, I'm guessing you'll need to check with the original authors to see if they have updated things.

boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

#3 Post by boluser » Mon Jan 14, 2019 12:00 pm

Hi netniV,
I sent an email to its creator, but the email that appears as a contact is closed.
Is there any other way to interconnect nagios with cacti?
Thank you very much and greetings,

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

#4 Post by Osiris » Mon Jan 14, 2019 6:56 pm

Upload the plugin here.
Before history, there was a paradise, now dust.

boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

#5 Post by boluser » Tue Jan 15, 2019 10:05 am

Hi Osiris,

Plugin uploaded. Thanks!!
Attachments
npc-2.0.4.tar.gz
(2.48 MiB) Downloaded 36 times

boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

#6 Post by boluser » Wed Jan 16, 2019 1:53 pm

Hi,
Is there anyone who can try the prugin npc in version 1.2.0 of cacti? I think that copying the content to the plugins folder would be useful to know if it works or not.
Help, please.
Thank you!!!

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

#7 Post by Osiris » Wed Jan 16, 2019 8:25 pm

This thing is a beast. Lot of work to 'update'.
Before history, there was a paradise, now dust.

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

#8 Post by Osiris » Thu Jan 17, 2019 7:34 pm

Okay, we've connected with Billy Gunn and will take over the management of the NPC plugin. Stay tuned.
Before history, there was a paradise, now dust.

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

#9 Post by Osiris » Fri Jan 18, 2019 10:20 am

The latest version has been moved here: https://www.github.com/cacti/plugin_npc, though it is still not functional.
Before history, there was a paradise, now dust.

boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

#10 Post by boluser » Fri Jan 18, 2019 12:55 pm

Hi Osiris,
Thank you very much, I will be attentive. This is the best thing that has happened to me throughout the week.
Thank you!!!
:lol: :lol: :lol:

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

#11 Post by Osiris » Sun Jan 20, 2019 10:10 pm

I think it mostly works now. Not sure how, but at least is not glitching.
Before history, there was a paradise, now dust.

boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

#12 Post by boluser » Wed Jan 23, 2019 10:54 am

Hi Osisris,
This is my situation:
- I have updated cacti from version 1.2.0 to 1.2.1.
- I added the new plugin.
- I have enabled the plugin correctly.
- I have configured nagios.cfg, ndo2db.cgf and ndomod.cfg exactly as it says in the instructions.
* But I can not find how to activate the checks from the plugin*
The manual says:
"Next, there are a few NPC settings to add/update. Goto Console > Configuration > Settings > NPC.
- Remote Commands - Check the checkbox to enable remote commands. At the moment this is system wide so all users that can access NPC will be able to execute command."
I do not find this section¿¿¿ :roll: ???
I attach an image of what my situation is now.
Thank you very much for the help, the effort, and make the plugin work (more or less) :wink:
We keep doing tests ...
Attachments
cacti.jpg
cacti.jpg (207.79 KiB) Viewed 860 times

netniV
Cacti Guru User
Posts: 2670
Joined: Sun Aug 27, 2017 12:05 am

Re: NPC - Nagios Plugin for Cacti

#13 Post by netniV » Wed Jan 23, 2019 2:38 pm

You need to click on the Console top bar, Configuration section, then Settings, then NPC tab. That's the section it's referring to, not the NPC plugin itself.

boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

#14 Post by boluser » Thu Jan 24, 2019 10:34 am

Hi netniV,
I have this configuration, but it still does not work.
Maybe you have to configure something else?
Thank you very much for the help, and for the patience. I hope everything ends up working correctly. :oops:
Attachments
cacti.jpg
cacti.jpg (136.2 KiB) Viewed 847 times

netniV
Cacti Guru User
Posts: 2670
Joined: Sun Aug 27, 2017 12:05 am

Re: NPC - Nagios Plugin for Cacti

#15 Post by netniV » Thu Jan 24, 2019 2:27 pm

Ah this is likely a problem with the conversion of the code. You see, under 0.8, checkbox values were 0 or 1 but under 1.x they became '' or 'on'. Likely hood is that various options aren't properly converted to check for the 'on' or '' value instead of 0 or 1

As its another developer handling the conversion, I will leave this with them.

Post Reply