suddenly, cgi stopped working...

Metron 6 (six) metron6 at gmail.com
Fri Sep 16 12:25:49 CEST 2011


Hello Jim,

this directive is not in nagios.cfg. actually there is no such
directive in any conf file...
when i issue into /etc/nagios3 this command grep status_file *  i get no results

i did this
find / -name status.dat
/var/lib/nagios3/status.dat

and found that it has the right permissions
-rw-rw-r--  1 nagios www-data    223007 2011-09-16 13:20 status.dat

so, whats next ?


this is my nagios.conf file

###################################################################
#                                                                 #
#                       GENERATED BY CENTREON                     #
#                                                                 #
#               Developped by :                                   #
#                   - Julien Mathis                               #
#                   - Romain Le Merlus                            #
#                                                                 #
#                           www.centreon.com                      #
#                For information : contact at centreon.com           #
###################################################################
#                                                                 #
#         Last modification September 15, 2011, 5:39 pm           #
#         By Admin_Uber_Alles                                     #
#                                                                 #
###################################################################

cfg_file=/etc/nagios3/hostTemplates.cfg
cfg_file=/etc/nagios3/hosts.cfg
cfg_file=/etc/nagios3/serviceTemplates.cfg
cfg_file=/etc/nagios3/services.cfg
cfg_file=/etc/nagios3/misccommands.cfg
cfg_file=/etc/nagios3/checkcommands.cfg
cfg_file=/etc/nagios3/contactgroups.cfg
cfg_file=/etc/nagios3/contacts.cfg
cfg_file=/etc/nagios3/hostgroups.cfg
cfg_file=/etc/nagios3/servicegroups.cfg
cfg_file=/etc/nagios3/timeperiods.cfg
cfg_file=/etc/nagios3/escalations.cfg
cfg_file=/etc/nagios3/dependencies.cfg
cfg_file=/etc/nagios3/meta_commands.cfg
cfg_file=/etc/nagios3/meta_contact.cfg
cfg_file=/etc/nagios3/meta_contactgroup.cfg
cfg_file=/etc/nagios3/meta_dependencies.cfg
cfg_file=/etc/nagios3/meta_escalations.cfg
cfg_file=/etc/nagios3/meta_host.cfg
cfg_file=/etc/nagios3/meta_hostgroup.cfg
cfg_file=/etc/nagios3/meta_services.cfg
cfg_file=/etc/nagios3/meta_timeperiod.cfg
resource_file=/etc/nagios3/resource.cfg
log_file=/var/log/nagios3/nagios.log
object_cache_file=/var/cache/nagios3/objects.cache
temp_file=/var/cache/nagios3/nagios.tmp
p1_file=/usr/lib/nagios3/p1.pl
nagios_user=nagios
nagios_group=nagios
enable_notifications=1
execute_service_checks=1
accept_passive_service_checks=1
enable_event_handlers=1
log_rotation_method=d
log_archive_path=/var/log/nagios3/archives/
check_external_commands=1
command_check_interval=1s
command_file=/var/lib/nagios3/rw/nagios.cmd
lock_file=/var/run/nagios3/nagios3.pid
retain_state_information=1
state_retention_file=/var/lib/nagios3/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1
use_syslog=0
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=1
log_external_commands=1
sleep_time=1
service_inter_check_delay_method=s
service_interleave_factor=s
max_concurrent_checks=200
max_service_check_spread=5
check_result_reaper_frequency=5
interval_length=60
enable_flap_detection=0
low_service_flap_threshold=25.0
high_service_flap_threshold=50.0
low_host_flap_threshold=25.0
high_host_flap_threshold=50.0
soft_state_dependencies=0
service_check_timeout=60
host_check_timeout=10
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
ochp_timeout=5
perfdata_timeout=5
obsess_over_services=0
process_performance_data=1
service_perfdata_command=process-service-perfdata
service_perfdata_file_mode=2
check_for_orphaned_services=0
check_service_freshness=1
date_format=euro
illegal_object_name_chars=~!$%^&*"|'<>?,()=
illegal_macro_output_chars=`~$^&"|'<>
admin_email=metron6 at gmail.com
admin_pager=metron6 at gmail.com
broker_module=/usr/lib/ndoutils/ndomod-mysql-3x.o
config_file=/etc/nagios3/ndomod.cfg
event_broker_options=-1
debug_file=/var/log/nagios3/nagios-ext.log
debug_level=-1
debug_verbosity=2
max_debug_file_size=100000000
use_aggressive_host_checking=0


On Thu, Sep 15, 2011 at 7:36 PM, Jim Avery <jim at jimavery.me.uk> wrote:
> On 15 September 2011 13:42, Metron 6 (six) <metron6 at gmail.com> wrote:
>> hello all,
>>
>> I have nagios installed with centreon interface to add hosts, services, etc..
>> Suddenly Nagios stopped showing data, in web interface.
>>
>> i get the message:
>> Whoops!
>> Error: Could not read host and service status information!
>>
>> it was working this morning. Nagios is running, as far as i can see
>> from the log file.
>>
>> please, help..
>
> The host and service information which the cgi is trying to read is in
> the status.dat file.  Where that is depends on how you installed
> Nagios, but is specified in nagios.cfg, the "status_file=" directive.
> In a default install from tarballs it will be
> /usr/local/nagios/var/status.dat .  Check if it exists and what the
> ownership/permissions are.  It should be readable by your apache
> daemon.
>
> I would stop nagios:-
> /etc/init.d/nagios stop
>
> Then verify the config:-
>
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>
> Then check there are no nagios processes running (using ps), then
> start Nagios again:-
> /etc/init.d/nagios start
>
>
> It's always best to verify the config before restarting or reloading
> the Nagios daemon.
>
> I hope that gives you some pointers.
>
> Cheers,
>
> Jim  (Capacity Planner for my sins)
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops?   How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 

regards,
Metron 6 (six)

Metron6 at gmail.com

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list