NPC - Nagios Plugin for Cacti

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

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

NPC - Nagios Plugin for Cacti

Post by boluser »

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 error
Cacti error
cacti.jpg (101.14 KiB) Viewed 5973 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: NPC - Nagios Plugin for Cacti

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

Post by boluser »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

Post by Osiris »

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

Post by boluser »

Hi Osiris,

Plugin uploaded. Thanks!!
Attachments
npc-2.0.4.tar.gz
(2.48 MiB) Downloaded 215 times
boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

Post by boluser »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

Post by Osiris »

This thing is a beast. Lot of work to 'update'.
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

Post by Osiris »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

Post by Osiris »

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

Post by boluser »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: NPC - Nagios Plugin for Cacti

Post by Osiris »

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

Post by boluser »

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 5868 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: NPC - Nagios Plugin for Cacti

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
boluser
Posts: 11
Joined: Sun Jan 13, 2019 11:46 am

Re: NPC - Nagios Plugin for Cacti

Post by boluser »

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 5855 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: NPC - Nagios Plugin for Cacti

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests