Help With NPC !!
Moderators: Developers, Moderators
Help With NPC !!
Hi there.
Ive installed Nagios 3.2.3, Cacti 0.8.7g, and NPC 2.0.4 and it looks like as:
Ive followed all the manuals and all, and no problem with nagios. I need some help !!
and this is my config of NPC:
Ive installed Nagios 3.2.3, Cacti 0.8.7g, and NPC 2.0.4 and it looks like as:
Ive followed all the manuals and all, and no problem with nagios. I need some help !!
and this is my config of NPC:
Re: Help With NPC !!
When u followed all the manual steps.
Dont forget to restart httpd and mysqld service.
Dont forget to restart httpd and mysqld service.
Re: Help With NPC !!
yup i've restarted and no changes....
I can't undestand why _???
i followed every step and the nagios status in the npc is off but nagios is running....
I can't undestand why _???
i followed every step and the nagios status in the npc is off but nagios is running....
Help With NPC !!
just need to coordinate the npc with nagios, but always send me off in the npc but nagios is runing
the conf file was made one and other time
i was wondering about the permitions for the path /rw/nagios.cmd ???
how perms will have ???
and in the screen with the conf
npc support localhost ??? because i ve other cacti and with an IP that server work
Some guide !!
the conf file was made one and other time
i was wondering about the permitions for the path /rw/nagios.cmd ???
how perms will have ???
and in the screen with the conf
npc support localhost ??? because i ve other cacti and with an IP that server work
Some guide !!
Re: Help With NPC !!
as always ur experience comes handy...
SOLVED
I used the ndoutils form the repositories and works well
SOLVED
I used the ndoutils form the repositories and works well
Re: Help With NPC !!
Hi,
In my case it shows NPC tab and data but Nagios status is "off"
It is throwing following errors in cacti.logs:
In my case it shows NPC tab and data but Nagios status is "off"
Code: Select all
OS: CentOS release 5.6 x86_64
Cacti: 0.8.7g
RRD: 1.4.4
Apache: httpd-2.2.3-45
Code: Select all
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcHostsController] (getHosts) - Script execution time: 0.03 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicesController] (getServices) - Script execution time: 0.09 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroups) - Method execution time: 0.02 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroupServiceStatus) - Method execution time: 0.02 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroupServiceStatus) - Script execution time: 0.02 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcHostgroupsController] (getHostgroupServiceStatus) - Script execution time: 0.04 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroups) - Method execution time: 0.02 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getHostStatusPortlet) - Method execution time: 0.02 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getHostStatusPortlet) - Script execution time: 0.02 seconds
06/01/2011 05:45:43 AM - NPC: Poller[0] DEBUG [NpcHostgroupsController] (getHostgroupHostStatus) - Script execution time: 0.02 seconds
06/01/2011 05:46:12 AM - NPC: Poller[0] DEBUG [NpcNagiosController] (getProgramStatus) - Script execution time: 0.02 seconds
06/01/2011 05:46:12 AM - NPC: Poller[0] DEBUG [NpcHostsController] (summary) - Script execution time: 0.02 seconds
06/01/2011 05:46:12 AM - NPC: Poller[0] DEBUG [NpcServicesController] (summary) - Script execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcHostsController] (getHosts) - Script execution time: 0.03 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicesController] (getServices) - Script execution time: 0.04 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroups) - Method execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroupServiceStatus) - Method execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroupServiceStatus) - Script execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcHostgroupsController] (getHostgroupServiceStatus) - Script execution time: 0.05 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getServicegroups) - Method execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getHostStatusPortlet) - Method execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcServicegroupsController] (getHostStatusPortlet) - Script execution time: 0.02 seconds
06/01/2011 05:46:13 AM - NPC: Poller[0] DEBUG [NpcHostgroupsController] (getHostgroupHostStatus) - Script execution time: 0.02 seconds
- Attachments
-
- npc.png (43.55 KiB) Viewed 2915 times
Greetings,
Shah
Shah
Re: Help With NPC !!
I see that problem, but it was solved in 2 ways:
1.- Change the permissions of the nagios.cmd for rw-rw----- for the instance nagios:www-data,
then restart the service of nagios.
2.-Restart cacti.
The first step is located in the documentation of the package or google it with "nagios.cmd permissions"
Good Luck !!
1.- Change the permissions of the nagios.cmd for rw-rw----- for the instance nagios:www-data,
then restart the service of nagios.
2.-Restart cacti.
The first step is located in the documentation of the package or google it with "nagios.cmd permissions"
Good Luck !!
Re: Help With NPC !!
Thanks a lot for replying, it is already set as:
Code: Select all
prw-rw---- 1 nagios nagcmd 0 Jun 2 09:32 nagios.cmd
Greetings,
Shah
Shah
Re: Help With NPC !!
you need to put as nagios:www-data
To do this u need to type in the directory containing the nagios.cmd
chown nagios:www-data nagios.cmd
Also I suggest u to read about the ndoutils, because it's essential for the integration nagios cacti.
And if u install it don-t compile it, most of the time doesn-t work well, try
yum -y install ndoutils-nagios-mysql or a combination and then u can follow the manuals for integrations.
Hope u can resolve the problem and if u have more questions post it buddy
To do this u need to type in the directory containing the nagios.cmd
chown nagios:www-data nagios.cmd
Also I suggest u to read about the ndoutils, because it's essential for the integration nagios cacti.
And if u install it don-t compile it, most of the time doesn-t work well, try
yum -y install ndoutils-nagios-mysql or a combination and then u can follow the manuals for integrations.
Hope u can resolve the problem and if u have more questions post it buddy
Re: Help With NPC !!
Thanks mate, but I am still struggling with same issue
it is:
Plugin permissions are:
Is that still permission issue?
it is:
Code: Select all
# getent group nagcmd
nagcmd:x:501:nagios,apache,cacti
Code: Select all
# ls -ld /var/www/html/plugins/npc
drwxr-xr-x 10 apache nagcmd 4096 Jun 2 09:37 /var/www/html/plugins/npc
Greetings,
Shah
Shah
Re: Help With NPC !!
What i know is that u need to grant permissions of execute in the folder plugin:
try:
chmod -R 777 /var/www/html/plugins
Its useful that the plugins folder have this permission, then restart apache.
and dont forget to configure the ndoutils with the integration of nagios.
Why don't try to post the nagios.cfg and the ndomod.cfg and the ndo2db.cfg ???
Good luck
try:
chmod -R 777 /var/www/html/plugins
Its useful that the plugins folder have this permission, then restart apache.
and dont forget to configure the ndoutils with the integration of nagios.
Why don't try to post the nagios.cfg and the ndomod.cfg and the ndo2db.cfg ???
Good luck
Re: Help With NPC !!
Dear Friend,
Please refer attached configs.
Please refer attached configs.
- Attachments
-
- config_files.tgz
- (15.2 KiB) Downloaded 158 times
Greetings,
Shah
Shah
Re: Help With NPC !!
I've checked the files and have a question:
apache and the user u have are members of the group nagios ???
The rest of the config was clean i must say, but considering that i have the same problem ( almost got crazy .... lol ) u need to one of the 2 choices:
1.- try to edit the ndoutils (try locate ndoutils ), u can find 2 forms of the ndoutils, one that have much lines and another file that have someting similiar to :
try to tune the DAEMON_OPTS to your ndo2db.cfg
2.- Try to find and install the package ndoutils-nagios3-mysql
and install it but don-t try to compile it in some cases compiling can become a problem.
If u find and install the package try to configure the ndomod.cfg and the ndo2db.cfg in the same way that
u have the config files and change the line (broker module) in the nagios.cfg.
You've saved a lot of work in this way.
Either choice u take if u have any problem feel free to post it !!
apache and the user u have are members of the group nagios ???
The rest of the config was clean i must say, but considering that i have the same problem ( almost got crazy .... lol ) u need to one of the 2 choices:
1.- try to edit the ndoutils (try locate ndoutils ), u can find 2 forms of the ndoutils, one that have much lines and another file that have someting similiar to :
Code: Select all
srv-cacti@srv-cacti:~$ more /etc/default/ndoutils
# Defaults for ndoutils-nagios3-mysql initscript
# sourced by /etc/init.d/ndoutils
# installed at /etc/default/ndoutils by the maintainer scripts
#
# This is a POSIX shell fragment
#
# You have to enable ndoutils broker module first to use ndoutils.
# (see /usr/share/doc/ndoutils-nagios3-mysql/README.Debian)
ENABLE_NDOUTILS=1
# Additional options that are passed to the Daemon.
DAEMON_OPTS="-c /etc/nagios3/ndo2db.cfg"
2.- Try to find and install the package ndoutils-nagios3-mysql
and install it but don-t try to compile it in some cases compiling can become a problem.
If u find and install the package try to configure the ndomod.cfg and the ndo2db.cfg in the same way that
u have the config files and change the line (broker module) in the nagios.cfg.
You've saved a lot of work in this way.
Either choice u take if u have any problem feel free to post it !!
Re: Help With NPC !!
Hi,
Yes! apache and cacti both are the members of nagcmd which is a nagios group.
I guess, you are talking ndoutils on Ubuntu, i'm using centos and compiled ndoutils from source Please suggest
Yes! apache and cacti both are the members of nagcmd which is a nagios group.
Code: Select all
# getent group nagcmd
nagcmd:x:501:nagios,apache,cacti
# ls -ld /usr/local/nagios/
drwxrwxr-x 10 nagios nagcmd 4096 Jun 3 01:30 /usr/local/nagios/
# ls -ld /var/www/html/plugins
drwxrwxrwx 10 apache nagcmd 4096 Jun 3 05:50 /var/www/html/plugins
Greetings,
Shah
Shah
Re: Help With NPC !!
Ok. I will make a cacti in centos 5.3 in one VM to experiment your problems and i will post it the results, in the meantime i would suggest you to try one of this solutions:
Try to download and install one of this packets of ndoutils according to ur version of centos:
http://pkgs.org/search/?keyword=ndoutil ... it&exact=0
OR
try to follow this guide:
http://kezhong.wordpress.com/2011/05/29 ... fedora-14/
I believe that will work for centOS too but i will confirm it when i do the trick of the VM.
Good luck buddy !
Try to download and install one of this packets of ndoutils according to ur version of centos:
http://pkgs.org/search/?keyword=ndoutil ... it&exact=0
OR
try to follow this guide:
http://kezhong.wordpress.com/2011/05/29 ... fedora-14/
I believe that will work for centOS too but i will confirm it when i do the trick of the VM.
Good luck buddy !
Who is online
Users browsing this forum: No registered users and 12 guests