Re: [Nagios-users] suddenly, cgi stopped working...
hello, in cgi.cfg has the following line : nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/cache/nagios3/status.dat 5 '/usr/sbin/nagios3' i created a link between /var/cache/nagios3/status.dat and /var/lib/nagios3/status.dat but it still doesnt work... On Fri, Sep 16, 2011 at 3:06 PM, Jim Avery wrote: > On 16 September 2011 11:25, Metron 6 (six) wrote: >> 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 ? > > I don't know Centreon, but in a nagios core install I would expect the > .cgi should read the nagios.cfg file to determine the location of > status.dat. I would add the directive > status_file=/var/lib/nagios3/status.dat anyway and see if that helps > the .cgi to find the status file. > > (in a default Nagios core install) Your cgi.cfg file should point to > the location of nagios.cfg like so: > # MAIN CONFIGURATION FILE > # This tells the CGIs where to find your main configuration file. > # The CGIs will read the main and host config files for any other > # data they might need. > main_config_file=/usr/local/nagios/etc/nagios.cfg > > > I would raise this on the relevant Centreon forum as I would guess > you're more likely to find people there who understand the > peculiarities of Centreon's implementation of nagios. Some of the > newer front-ends don't use status.dat to get status information from > Nagios - I wouldn't know if Centreon is one of those. > > -- > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > ___ > Nagios-users mailing list > Nagios-users@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) metr...@gmail.com -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] suddenly, cgi stopped working...
On 16 September 2011 11:25, Metron 6 (six) wrote: > 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 ? I don't know Centreon, but in a nagios core install I would expect the .cgi should read the nagios.cfg file to determine the location of status.dat. I would add the directive status_file=/var/lib/nagios3/status.dat anyway and see if that helps the .cgi to find the status file. (in a default Nagios core install) Your cgi.cfg file should point to the location of nagios.cfg like so: # MAIN CONFIGURATION FILE # This tells the CGIs where to find your main configuration file. # The CGIs will read the main and host config files for any other # data they might need. main_config_file=/usr/local/nagios/etc/nagios.cfg I would raise this on the relevant Centreon forum as I would guess you're more likely to find people there who understand the peculiarities of Centreon's implementation of nagios. Some of the newer front-ends don't use status.dat to get status information from Nagios - I wouldn't know if Centreon is one of those. -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] suddenly, cgi stopped working...
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-data223007 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 : cont...@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=metr...@gmail.com admin_pager=metr...@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=1 use_aggressive_host_checking=0 On Thu, Sep 15, 2011 at 7:36 PM, Jim Avery wrote: > On 15 September 2011 13:42, Metron 6 (six) 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.
Re: [Nagios-users] suddenly, cgi stopped working...
On 15 September 2011 13:42, Metron 6 (six) 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@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
[Nagios-users] suddenly, cgi stopped working...
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.. -- regards, Metron 6 (six) metr...@gmail.com -- 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@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