Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Feb 15, 2019 10:24 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: NPC - Nagios Plugin for Cacti
PostPosted: Mon Jan 14, 2019 11:06 am 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
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:
File comment: Cacti error
cacti.jpg
cacti.jpg [ 101.14 KiB | Viewed 258 times ]
Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Mon Jan 14, 2019 11:34 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2054
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.

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Mon Jan 14, 2019 12:00 pm 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
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,


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Mon Jan 14, 2019 6:56 pm 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
Upload the plugin here.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Tue Jan 15, 2019 10:05 am 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
Hi Osiris,

Plugin uploaded. Thanks!!


Attachments:
npc-2.0.4.tar.gz [2.48 MiB]
Downloaded 5 times
Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Wed Jan 16, 2019 1:53 pm 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
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!!!


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Wed Jan 16, 2019 8:25 pm 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
This thing is a beast. Lot of work to 'update'.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Thu Jan 17, 2019 7:34 pm 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
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.


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Fri Jan 18, 2019 10:20 am 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
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.


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Fri Jan 18, 2019 12:55 pm 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
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:


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Sun Jan 20, 2019 10:10 pm 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
I think it mostly works now. Not sure how, but at least is not glitching.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Wed Jan 23, 2019 10:54 am 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
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 153 times ]
Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Wed Jan 23, 2019 2:38 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2054
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.

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Thu Jan 24, 2019 10:34 am 
Offline

Joined: Sun Jan 13, 2019 11:46 am
Posts: 11
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 140 times ]
Top
 Profile  
 
 Post subject: Re: NPC - Nagios Plugin for Cacti
PostPosted: Thu Jan 24, 2019 2:27 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2054
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.

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group