Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Nagios Plugin for Cacti 2.0.0b (build 166) released
Goto page Previous  1, 2, 3 ... , 13, 14, 15  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
123ralle



Joined: 20 Dec 2006
Posts: 8

PostPosted: Tue Sep 23, 2008 9:12 am    Post subject: Reply with quote

@Palermo

Please post your debug file
/usr/local/nagios/var/ndo2db.debug

regards,
ralf
Back to top
Palermo



Joined: 11 Sep 2008
Posts: 36

PostPosted: Tue Sep 23, 2008 3:07 pm    Post subject: Reply with quote

hi 123ralle
May by this looks a bit strange..
but this is the file.


The file is emty

is this good or bad?

around 03:00PM i gave it 777 permissions to see if that was the problem.



ndo2db.PNG
 Description:
 Filesize:  40.89 KB
 Viewed:  1249 Time(s)

ndo2db.PNG


Back to top
123ralle



Joined: 20 Dec 2006
Posts: 8

PostPosted: Wed Sep 24, 2008 4:12 am    Post subject: Reply with quote

Palermo,

please check with
ps -ef | grep ndo2db
if you have an running daemon, if not please start the ndo2db
daemon via
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg

and tell us the output
Back to top
Palermo



Joined: 11 Sep 2008
Posts: 36

PostPosted: Wed Sep 24, 2008 1:01 pm    Post subject: Reply with quote

Hi

Well this is the output of the commando you gave me

Code:

[root@localhost ~]# ps -ef | grep ndo2db
nagios    5825     1  0 Sep22 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   13137     1  0 Sep22 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   13279     1  0 Sep23 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root     20412 20342  0 19:53 pts/1    00:00:00 grep ndo2db
[root@localhost ~]#




And this is what i get if i try to start the deamon.
Code:

[root@localhost ~]# /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Could not bind socket: Address already in use
[root@localhost ~]#


thx in advanced for your help...
Back to top
Palermo



Joined: 11 Sep 2008
Posts: 36

PostPosted: Thu Sep 25, 2008 10:09 am    Post subject: Reply with quote

Could it be that nagios cannot connect to the database be course in the file: ndodb.cfg is have this rule:
Code:

socket_type=tcp


and in the file: ndomod.cgf

Code:

output_type=tcpsocket


And in th database :

Code:

mysql> status
--------------
mysql  Ver 14.12 Distrib 5.0.66a, for redhat-linux-gnu (i686) using readline 5.1

Connection id:          144174
Current database:       cacti
Current user:           root@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.0.66a Source distribution
Protocol version:       10
[b] Connection:             Localhost via UNIX socket [/b]
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
[b] UNIX socket:            /var/lib/mysql/mysql.sock [/b]
Uptime:                 23 hours 3 min 0 sec

Threads: 21  Questions: 1283019  Slow queries: 0  Opens: 6322  Flush tables: 1  Open tables: 64  Queries per second avg: 15.462
--------------

mysql>


Should the database also need to work on TCP connection.
Could this be the problem? instead of the UNIX socket?
Back to top
TazMan



Joined: 25 Sep 2008
Posts: 1

PostPosted: Thu Sep 25, 2008 4:25 pm    Post subject: NDO Error in Nagios Log Reply with quote

I have successfully install the NPC Plugin into Cacti; however, I cannot get the HOSTS, SERVICES, ETC. to populate. I have tried different things but I cannot get the broker_module to load. I get the following error message:

[1222374752] Local time is Thu Sep 25 16:32:32 EDT 2008
[1222374752] LOG VERSION: 2.0
[1222374752] Error: Could not safely copy module 'broker_module=/usr/local/nagios/bin/ndomod.o'.
The module will not be loaded: No such file or directory
[1222374752] Finished daemonizing... (New PID=12078)

I have Nagios 3.0.3 installed on a CentOS 5.2 box using PHP 5.2.6 and Apache 2.2.3

Thanks for the help
Back to top
Palermo



Joined: 11 Sep 2008
Posts: 36

PostPosted: Tue Sep 30, 2008 6:22 am    Post subject: Reply with quote

Well.
I could not find the solution for this problem.
I stared all over from scratch.
After installing cacti and nagios and ndoutils it works.
So the installing went somehow wrong.

The only thing i have troubles with is installing the PHP-JSON packet.

edit: for the php-json problem if found great solution herehttp://forums.crm.saeven.net/showthread.php?t=128


Last edited by Palermo on Tue Sep 30, 2008 10:17 am; edited 1 time in total
Back to top
elesouef



Joined: 17 Mar 2006
Posts: 17

PostPosted: Tue Sep 30, 2008 9:10 am    Post subject: NPC plugin installed but no data displayed Reply with quote

Hi there,

I installed the NPC plugin (last version found http://trac2.assembla.com/npc 2.0.0b).

Nagios3 is also installed with ndoutils (using debian backports for etch).

My cacti database is loaded with the npc_* tables and they also have datas in them.

The problem is that I get nothing (ie : no data displayed) on the dashboard.

Can anyone help me deal with this issue ? Where should I start ?

Thanks.
Back to top
Palermo



Joined: 11 Sep 2008
Posts: 36

PostPosted: Tue Sep 30, 2008 10:25 am    Post subject: Re: NPC plugin installed but no data displayed Reply with quote

elesouef wrote:
Hi there,

I installed the NPC plugin (last version found http://trac2.assembla.com/npc 2.0.0b).

Nagios3 is also installed with ndoutils (using debian backports for etch).

My cacti database is loaded with the npc_* tables and they also have datas in them.

The problem is that I get nothing (ie : no data displayed) on the dashboard.

Can anyone help me deal with this issue ? Where should I start ?

Thanks.


Hi i'm gona try to help ok.
I'm quite new myself so... i just got it working now..
i asume that the necessary plugins are install t like php-json and php-pdo.

if you manual enter a switch in de nagios configuration (switch.cfg(/usr/local/nagios/etc/objects)).
do you see the switch or system being monitor t
Back to top
elesouef



Joined: 17 Mar 2006
Posts: 17

PostPosted: Tue Sep 30, 2008 3:02 pm    Post subject: Re: NPC plugin installed but no data displayed Reply with quote

Palermo wrote:

Hi i'm gona try to help ok.
I'm quite new myself so... i just got it working now..
i asume that the necessary plugins are install t like php-json and php-pdo.


Thanks !

json and pdo are already installed under debian with the following packages :
libapache2-mod-php5 and php5-mysql.

Quote:
if you manual enter a switch in de nagios configuration (switch.cfg(/usr/local/nagios/etc/objects)).
do you see the switch or system being monitor t


In fact, the tables are loaded with items ready to be displayed But I will test it tomorrow.

Thanks for your help.
Back to top
drewlander



Joined: 29 Sep 2008
Posts: 4

PostPosted: Fri Oct 03, 2008 1:47 pm    Post subject: Reply with quote

Right now I am doing a proof of concept using npc, nsca and ndoutils. Basically seeing if we can do all we want to do without spending tons of money on another product that does the same thing.
Everything is working great so far except for one thing:
I cannot create any data input methods to graph for any services that are being checked passively. I can create data input methods fine for servcies that are being checked actively. Is there something obvious I missed?

Thank you.
Back to top
clayton



Joined: 07 Oct 2008
Posts: 1

PostPosted: Tue Oct 07, 2008 8:18 pm    Post subject: Reply with quote

I just installed NPC with may nagios install and cacti but I am getting this error when trying to ling my graphs to a service or host.

[Tue Oct 07 21:03:09 2008] [error] [client 192.168.0.51] script '/var/www/graph_image.php' not found or unable to stat

The problem is that file is at /var/www/cacti/graph_image.php


Any body have an idea whats wrong?


Corey
Back to top
nyx



Joined: 13 Jul 2005
Posts: 12

PostPosted: Thu Oct 16, 2008 8:19 am    Post subject: Re: NPC plugin installed but no data displayed Reply with quote

elesouef wrote:
Hi there,

I installed the NPC plugin (last version found http://trac2.assembla.com/npc 2.0.0b).

Nagios3 is also installed with ndoutils (using debian backports for etch).

My cacti database is loaded with the npc_* tables and they also have datas in them.

The problem is that I get nothing (ie : no data displayed) on the dashboard.

Can anyone help me deal with this issue ? Where should I start ?

Thanks.


you are missing mysql support in PDO.


[xxx@devhost php-5.2.6]# /local/php5/bin/php -m
[PHP Modules]
ctype
date
dom
eAccelerator
filter
hash
iconv
json
libxml
mysql
pcre
PDO
pdo_mysql
pdo_sqlite
posix
Reflection
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter

[Zend Modules]
eAccelerator
Back to top
drewlander



Joined: 29 Sep 2008
Posts: 4

PostPosted: Wed Oct 22, 2008 11:10 am    Post subject: Reply with quote

I do seem to have it installed:
Code:

php5 -m
[PHP Modules]
ctype
date
dom
filter
hash
iconv
json
libxml
mysql
mysqli
pcre
PDO
pdo_mysql
pdo_sqlite
readline
Reflection
session
SimpleXML
snmp
SPL
SQLite
standard
suhosin
tokenizer
xml
xmlreader
xmlwriter

Could I be missing anything else?
Back to top
Dag



Joined: 09 Mar 2008
Posts: 4
Location: Stockholm, Sweden

PostPosted: Tue Oct 28, 2008 4:37 am    Post subject: Reply with quote

clayton wrote:
I just installed NPC with may nagios install and cacti but I am getting this error when trying to ling my graphs to a service or host.

[Tue Oct 07 21:03:09 2008] [error] [client 192.168.0.51] script '/var/www/graph_image.php' not found or unable to stat

The problem is that file is at /var/www/cacti/graph_image.php


Any body have an idea whats wrong?


Corey

Quite sure you need to edit the $config['url_path'] variable in:
include/global.php
so that it says:
$config['url_path'] = '/cacti/';
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... , 13, 14, 15  Next
Page 14 of 15

 



Powered by phpBB © 2001, 2005 phpBB Group