NPC - Nagios Off

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
raduntz
Posts: 2
Joined: Sat Nov 05, 2011 4:34 pm

NPC - Nagios Off

Post by raduntz »

I have the npc 2.0.4 installed, but the nagios status is always off.

I need to know what to do. I already tried the solutions in other posts, but nothing work.

Thank you

I'm using:

Debian 6
Nagios 3.3.1
Cacti 0.8.7g

ndo2db.cfg
lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios

socket_type=tcp
socket_name=/usr/local/nagios/var/ndo.sock

tcp_port=5668

db_servertype=mysql
db_host=localhost
db_port=3306
db_name=cacti
db_prefix=npc_
db_user=cacti
db_pass=root

max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640

debug_level=-1
debug_verbosity=1
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000
ndomod.cfg
instance_name=default
output_type=tcpsocket
output=127.0.0.1
tcp_port=5668

output_buffer_items=5000
buffer_file=/usr/local/nagios/var/ndomod.tmp

file_rotation_interval=14400
file_rotation_timeout=60

reconnect_interval=15
reconnect_warning_interval=15

data_processing_options=-1
config_output_options=2
Attachments
NPC config screen
NPC config screen
print2.jpg (507.08 KiB) Viewed 1877 times
NPC screen
NPC screen
print1.jpg (488.87 KiB) Viewed 1877 times
hIsham
Posts: 1
Joined: Mon Nov 07, 2011 4:05 am

Re: NPC - Nagios Off

Post by hIsham »

This one may help...thought it's due to ndo daemon is not working..

/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
raduntz
Posts: 2
Joined: Sat Nov 05, 2011 4:34 pm

Re: NPC - Nagios Off

Post by raduntz »

hIsham wrote:This one may help...thought it's due to ndo daemon is not working..

/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
I already try that, but didn't work.

thank you for your help.
chrism01
Posts: 13
Joined: Thu Dec 01, 2011 11:47 pm

Re: NPC - Nagios Off

Post by chrism01 »

In nod2db.cfg, comment out the unix local socket type AND name

Code: Select all


# SOCKET TYPE
# This option determines what type of socket the daemon will create
# an accept connections from.
# Value:
#   unix = Unix domain socket (default)
#   tcp  = TCP socket

#socket_type=unix
socket_type=tcp



# SOCKET NAME
# This option determines the name and path of the UNIX domain
# socket that the daemon will create and accept connections from.
# This option is only valid if the socket type specified above
# is "unix".

#socket_name=/usr/local/nagios/var/ndo.sock



# TCP PORT
# This option determines what port the daemon will listen for
# connections on.  This option is only vlaid if the socket type
# specified above is "tcp".

tcp_port=5668

You've got both the Unix socket and the tcp socket defined as active. Fix the cfg, then restart it

HTH
Cheers
Chris
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests