Nagios Plugin for Cacti (NPC) 2.0.4

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Re: Hi

Post by divagater »

ZarayK wrote:Great! use the same requirements for NPC 2.0.2?
Yeah, the requirements are unchanged. Just delete the current NPC directory and drop in 2.0.3. The upgrade is seamless.

Cheers,
Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
therockyb
Posts: 3
Joined: Mon Jun 08, 2009 4:24 pm

Post by therockyb »

Hi Divagater,

I am trying to use N2C without any success and nothing in the cacti log.

Would you have any idea where I should start my troubleshooting?

Thank you
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

therockyb wrote:Hi Divagater,

I am trying to use N2C without any success and nothing in the cacti log.

Would you have any idea where I should start my troubleshooting?

Thank you
Lets take this offline until we can post a solution. I will shoot you a PM with my email.

Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
ZarayK
Posts: 3
Joined: Wed Apr 29, 2009 4:37 pm

Post by ZarayK »

Tank you!!
Dwarf
Posts: 14
Joined: Wed Jul 09, 2008 2:38 am

Post by Dwarf »

andrewh wrote:
divagater wrote:Hey Andrew. I sent you a PM on the second with my email address on the 2nd. As there will be a bit of back and forth to figure this out I wanted to take it to email. My email address is in the PM. Check it out and lets get you up and running.

Cheers,
Billy
Sorry, didn't notice it. Will email you as soon as I can, thanks a lot.

I'll post back here with the results.

Cheers!
Hi andrewh;

Did you solved your problem with NPC ??

I've got exactly the same problem, My npc tables are populated by ndo2db (actually only 17 hosts and 68 services) but when I click on the "NPC" tab under cacti, everything is empty in the dashboard. N2C don't find any host or any hostgroup defined in my different nagios cfg_files.

When I tail my apache2 error.log, I got exactly the same 3 errors ... have a look:
[Wed Jun 17 16:51:13 2009] [error] [client 13.168.12.151] File does not exist: /var/www/cacti-dev/images/tab_mode_tree<br , referer: http://sonde-cacti.ogs.oed/cacti-dev/pl ... pc/npc.php
[Wed Jun 17 16:51:13 2009] [error] [client 13.168.12.151] File does not exist: /var/www/cacti-dev/images/tab_mode_list<br , referer: http://sonde-cacti.ogs.oed/cacti-dev/pl ... pc/npc.php
[Wed Jun 17 16:51:13 2009] [error] [client 13.168.12.151] File does not exist: /var/www/cacti-dev/images/tab_mode_preview<br , referer: http://sonde-cacti.ogs.oed/cacti-dev/pl ... pc/npc.php
Did divagater help you ?

any help would be really appreciated.

Thanks for all.

Dwarf

Edit:
Here is some details about The Cacti server
Cacti 0.8.7c - PIA 2.3
NPC 2.0.3
Ndoutils 1.4b7
Nagios 3.0.6
PHP Version 5.2.0-8+etch13
json support enabled
json version 1.2.1
PDO support enabled
PDO drivers mysql
PDO Driver for MySQL, client library version 5.0.51b
Last edited by Dwarf on Wed Jun 17, 2009 10:37 am, edited 1 time in total.
linebacker2
Posts: 28
Joined: Fri May 08, 2009 11:34 am

Cacti and Nagios on Different Systems?

Post by linebacker2 »

Hi,

I am trying to integrate Cacti and Nagios using the NPC plugin. My only issue is I have Cacti installed on a separate system form Nagios. Would NPC work if Nagios is not installed on the same system as Cacti or do they have to be on the same system? If so how you go about setting them up to do so?

Thanks in Advance
Dwarf
Posts: 14
Joined: Wed Jul 09, 2008 2:38 am

Re: Cacti and Nagios on Different Systems?

Post by Dwarf »

linebacker2 wrote:Hi,

I am trying to integrate Cacti and Nagios using the NPC plugin. My only issue is I have Cacti installed on a separate system form Nagios. Would NPC work if Nagios is not installed on the same system as Cacti or do they have to be on the same system? If so how you go about setting them up to do so?

Thanks in Advance
Hello;

I am also interested in the answer to that question...

For a future "monitoring architecture" at my office.

Thx.
Dwarf
Pollux
Posts: 25
Joined: Tue Jun 16, 2009 3:34 pm

Post by Pollux »

Interesting plugin, I am curently running cacti and nagios; Integrating them would be perfect. Then I'd just add Splunk.

So my question is: What's the status on this plugin? Is this stable enough or still in beta? Will Splunk work with this 'Cactized' version of Nagios?
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Re: Cacti and Nagios on Different Systems?

Post by divagater »

linebacker2 wrote:Hi,

I am trying to integrate Cacti and Nagios using the NPC plugin. My only issue is I have Cacti installed on a separate system form Nagios. Would NPC work if Nagios is not installed on the same system as Cacti or do they have to be on the same system? If so how you go about setting them up to do so?

Thanks in Advance
Cacti and Nagios do not need to be on the same system. NPC gets all of its display data from the database so when you configure NDO2DB you simply point it to the host where your cacti database lives.

The one caveat is that in order to execute Nagios commands like comments, acknowledgments, enabling and disabling services etc. you will need to make the nagios command file available to cacti via nfs (or cifs). This is a simple and common way to do it.

Cheers,
Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

Pollux wrote:Interesting plugin, I am curently running cacti and nagios; Integrating them would be perfect. Then I'd just add Splunk.

So my question is: What's the status on this plugin? Is this stable enough or still in beta? Will Splunk work with this 'Cactized' version of Nagios?
This plugin has been around for over 4 years and is still being developed. I definitely consider it stable. There is no reason that splunk shouldn't work as normal. NPC does not in anyway change or interfere with Nagios. It uses the built in Nagios API's via the nagios external commands file and the event broker (via ndo2db).

Cheers,
Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

Dwarf wrote:Did divagater help you ?

any help would be really appreciated.

Thanks for all.

Dwarf

Edit:
Here is some details about The Cacti server
Cacti 0.8.7c - PIA 2.3
NPC 2.0.3
Ndoutils 1.4b7
Nagios 3.0.6
PHP Version 5.2.0-8+etch13
json support enabled
json version 1.2.1
PDO support enabled
PDO drivers mysql
PDO Driver for MySQL, client library version 5.0.51b
What operating system are you running? It seems like most folks that experience this issue are on ubuntu. So far I have not been able to reproduce the problem and so offering a fix is quite challenging. If you or anyone else could let me have SSH access to your test system I am certain I could identify the issue very quickly.

Cheers,
Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
Dwarf
Posts: 14
Joined: Wed Jul 09, 2008 2:38 am

Post by Dwarf »

Hi Divagater, thanks for answering me.

I run Cacti / Nagios on a Debian 4.0 Etch.
I am unable to grant you SSH access till friday because we're in a migration phase of our ISP.

What kind of access do you need ? User ? Root ?
I'll need your public IP to allow your access into our firewall. PM me for any question.

Regards,

Dwarf
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

Dwarf wrote:Hi Divagater, thanks for answering me.

I run Cacti / Nagios on a Debian 4.0 Etch.
I am unable to grant you SSH access till friday because we're in a migration phase of our ISP.

What kind of access do you need ? User ? Root ?
I'll need your public IP to allow your access into our firewall. PM me for any question.

Regards,

Dwarf
I'll shoot you a PM to work out the connection details but in the meantime please check out this solution posted by another user with a very similar problem: http://forums.cacti.net/viewtopic.php?p=166925

If you want to try that solution which involves directly adding the connection parameters to Doctrine but are unsure how to do it let me know and I can help.
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

NPC 2.0.4 released

Post by divagater »

This is a micro release with a couple new features and bug fixes. See the first post in this thread for download details.

Cheers,
Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
Dwarf
Posts: 14
Joined: Wed Jul 09, 2008 2:38 am

Post by Dwarf »

divagater wrote:
Dwarf wrote:Hi Divagater, thanks for answering me.

I run Cacti / Nagios on a Debian 4.0 Etch.
I am unable to grant you SSH access till friday because we're in a migration phase of our ISP.

What kind of access do you need ? User ? Root ?
I'll need your public IP to allow your access into our firewall. PM me for any question.

Regards,

Dwarf
I'll shoot you a PM to work out the connection details but in the meantime please check out this solution posted by another user with a very similar problem: http://forums.cacti.net/viewtopic.php?p=166925

If you want to try that solution which involves directly adding the connection parameters to Doctrine but are unsure how to do it let me know and I can help.
Ok, I've tested this solution posted by toluna but unfortunately did not solved my issue.

I dont know what happens.

I'll upgrade to version 2.0.4 by the way :)

Dwarf
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest