[Pkg-nagios-devel] Bug#324933: 324933

Michael Thompson michael.thompson2 at mci.com
Thu Aug 25 11:37:56 UTC 2005


I realize that I was very vague in my problem description so I'll add to try
and clarify my problem.

tsicsweb2:/home/michaelt# ps -ef | grep nagios
nagios   19064     1  1 Aug24 ?        00:10:37 /usr/sbin/nagios
/etc/nagios/nagios.cfg

/etc/init.d/nagios restart
Restarting nagios: named pipe exists - removeing
nagios.


tsicsweb2:/etc/nagios# ls -l
total 220
-rw-r--r--  1 nagios www-data  1445 2005-04-15 23:59 apache.conf
-rw-r--r--  1 nagios www-data 13072 2005-08-25 05:46 cgi.cfg
-rw-r--r--  1 nagios www-data   292 2004-11-13 17:56 checkcommands.cfg
lrwxrwxrwx  1 nagios www-data    15 2005-08-23 10:39 check_nagios ->
check_nagios_db
-rwxr-xr-x  1 nagios www-data  2350 2004-11-13 17:56 check_nagios_db
-rw-r--r--  1 nagios www-data  2134 2005-08-24 07:13 check_nagios_db.pl
-rw-r--r--  1 nagios www-data  1471 2005-08-23 17:04 contactgroups.cfg
-rw-r--r--  1 nagios www-data  1125 2005-08-24 16:21 contacts.cfg
-rw-r--r--  1 nagios www-data  1662 2005-06-02 09:30 dependencies.cfg
-rw-r--r--  1 nagios www-data  2264 2005-08-23 14:40 escalations.cfg
-rw-r--r--  1 nagios www-data  9258 2005-08-23 15:56 hostgroups.cfg
-rw-r--r--  1 nagios www-data 88498 2005-08-23 15:03 hosts.cfg
-rw-r--r--  1 nagios www-data    26 2005-08-23 10:20 htpasswd.users
-rw-r--r--  1 nagios www-data 13544 2005-06-02 09:30 minimal.cfg
-rw-r--r--  1 nagios www-data  4250 2005-06-02 09:30 misccommands.cfg
-rw-r--r--  1 nagios www-data 21437 2005-08-24 14:11 nagios.cfg
-rw-r--r--  1 nagios www-data  2972 2005-08-23 10:21 resource.cfg
-rw-r--r--  1 nagios www-data  3151 2005-08-24 07:46 services.cfg
drwxr-xr-x  2 nagios www-data  4096 2005-08-23 10:24 stylesheets
-rw-r--r--  1 nagios www-data  1589 2005-06-02 09:30 timeperiods.cfg

here are my config files cgi.cfg. all 4 database entries in cgi.cfg and
resource.cfg
are filled out just like the example below ....

# Note: If you use the mysql or pgsql nagios build, read
# /usr/share/doc/nagios-common/README.Debian what todo to let nagios
# CGI scripts detect nagios state.

nagios_check_command=/etc/nagios/nagios_check_db

xcddb_host=localhost
#xcddb_port=
xcddb_database=nagios
xcddb_username=root
xcddb_password=XXXXX



# DB DOWNTIME DATA (Read-Only For CGIs)
# Note: These config directives are only used if you compiled
# in database support for downtime data!
# The user you specify here only needs SELECT privileges on the
# 'hostdowntime', and 'servicedowntime' tables in the database,
# as these values are only used by the CGIs.  The core program
# will read the directives you specify in a resource file.

xdddb_host=localhost
#xdddb_port=
xdddb_database=nagios
xdddb_username=root
xdddb_password=XXXXX



tsicsweb2:/etc/nagios# ls -l /var/run/nagios/nagios.cmd
prw-rw----  1 nagios nagios 0 2005-08-25 05:46 /var/run/nagios/nagios.cmd



tail -20 /var/log/nagios/nagios.log
[1124968593] Caught SIGTERM, shutting down...
[1124968795] Nagios 1.3 starting... (PID=31495)


Little webmin snipit to show the pids match

last_update 	program_start 	daemon_mode 	nagios_pid 	last_command_check
last_log_rotation 	execute_service_checks 	2005-08-25 06:23:56
2005-08-25 06:19:55 	0 	31495 	2005-08-25 06:23:56 	1969-12-31 18:00:00 	1
1 	1

Basically it looks like the cgi's can't get the process status but I've done
everything I know, plus all the
workarounds I've found on the net.

I followed this doc verbatim
http://wiki.tryphon.org/How_to_install_Nagios_under_Debian

System and package specs

Linux tsicsweb2 2.6.8-2-686-smp #1 SMP Thu May 19 17:27:55 JST 2005 i686
GNU/Linux <---- Fresh Sarge Net install image pulled from Debian
about a week ago.

nagios-common_2%3a1.3-cvs.20050402-2.sarge.1_all.deb
nagios-mysql_2%3a1.3-cvs.20050402-2.sarge.1_i386.deb
nagios-plugins_1.4-6_i386.deb
nagios-statd-client_3.09-7_all.deb

tsicsweb2:/var/cache/apt/archives# mysql -V
mysql  Ver 14.7 Distrib 4.1.11, for pc-linux-gnu (i386)

tsicsweb2:/var/cache/apt/archives# apache2 -v
Server version: Apache/2.0.54
Server built:   May 12 2005 05:30:44


tsicsweb2:/var/cache/apt/archives# php -v
PHP 4.3.10-15 (cli) (built: May  9 2005 08:54:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


If I've omitted anything please let me know.
Michael


















More information about the Pkg-nagios-devel mailing list