LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2012, 05:49 AM   #16
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Original Poster
Rep: Reputation: 17
Question


Please find the below output.

[root@ind-test]# cat /usr/local/nagios/etc/nagios.cfg |grep -v "#" |grep "\n"
log_file=/usr/local/nagios/var/nagios.log
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
cfg_file=/usr/local/nagios/etc/objects/remotehostss.cfg
cfg_file=/usr/local/nagios/etc/objects/windows.cfg
object_cache_file=/usr/local/nagios/var/objects.cache
precached_object_file=/usr/local/nagios/var/objects.precache
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.dat
status_update_interval=10
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
external_command_buffer_slots=4096
lock_file=/usr/local/nagios/var/nagios.lock
temp_file=/usr/local/nagios/var/nagios.tmp
event_broker_options=-1
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
log_notifications=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
service_inter_check_delay_method=s
service_interleave_factor=s
host_inter_check_delay_method=s
max_concurrent_checks=0
check_result_reaper_frequency=10
check_result_path=/usr/local/nagios/var/spool/checkresults
cached_host_check_horizon=15
cached_service_check_horizon=15
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
soft_state_dependencies=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
event_handler_timeout=30
notification_timeout=30
retain_state_information=1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1
retained_host_attribute_mask=0
retained_service_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
interval_length=60
use_aggressive_host_checking=0
enable_notifications=1
enable_event_handlers=1
process_performance_data=0
translate_passive_host_checks=0
check_for_orphaned_services=1
check_for_orphaned_hosts=1
check_service_freshness=1
service_freshness_check_interval=60
check_host_freshness=0
host_freshness_check_interval=60
additional_freshness_latency=15
enable_flap_detection=1
p1_file=/usr/local/nagios/bin/p1.pl
enable_embedded_perl=1
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
use_regexp_matching=0
use_true_regexp_matching=0
admin_email=nagios@localhost
admin_pager=pagenagios@localhost
daemon_dumps_core=0
use_large_installation_tweaks=0
enable_environment_macros=1
debug_file=/usr/local/nagios/var/nagios.debug



it is showing below message on nagios dashboard.

Host* Service* Status* Last Check* Duration* Attempt* Status Information


lnx1 /dev/sda2 Free Space PENDING N/A 0d 2h 18m 57s+ 3-Jan Service check scheduled for Tue Jan 24 17:07:59 IST 2012*
CPU Load PENDING N/A 0d 2h 18m 57s+ 3-Jan Service check scheduled for Tue Jan 24 17:09:59 IST 2012*
Current Users PENDING N/A 0d 2h 18m 57s+ 3-Jan Service check scheduled for Tue Jan 24 17:10:59 IST 2012*
Swap Usage CRITICAL 1/24/2012 14:20 1d 0h 47m 25s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*
Total Processes PENDING N/A 0d 2h 18m 57s+ 3-Jan Service check scheduled for Tue Jan 24 17:12:59 IST 2012*
process CRITICAL 1/24/2012 17:12 1d 0h 44m 54s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*


lnx2 /dev/sda2 Free Space CRITICAL 1/24/2012 16:55 5d 5h 36m 47s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*
CPU Load CRITICAL 1/24/2012 17:06 7d 3h 11m 7s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*
Current Users CRITICAL 1/24/2012 17:11 7d 3h 28m 27s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*
Swap Usage CRITICAL 1/24/2012 17:12 5d 5h 34m 28s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*
Total Processes CRITICAL 1/24/2012 16:55 7d 3h 13m 7s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*
process CRITICAL 1/24/2012 16:55 5d 5h 32m 9s 3-Mar (Return code of 127 is out of bounds - plugin may be missing)*


it is not showing cpu or memory usage.
 
Old 01-24-2012, 10:23 PM   #17
vinilvijayan
LQ Newbie
 
Registered: Mar 2008
Location: Bangalore, India
Distribution: Fedora,Ubuntu,RHEL
Posts: 8

Rep: Reputation: 0
nagios.cfg file looks fine.

Could you once kill all the nagios processes and start again?

Get all nagios process and kill all the pids.
ps ax |grep nagios

Cheers,
vinil
 
Old 01-24-2012, 10:53 PM   #18
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Hi Manoj,

After NRPE installation and configuration have you made all these following changes?

Add Nagios Monitoring server to the “only_from” directive:

Quote:
# vi /etc/xinetd.d/nrpe

only_from = 127.0.0.1 <nagios_ip_address>
Add entry for nrpe daemon:

Quote:
# vi /etc/services

nrpe 5666/tcp # NRPE
Restart Xinetd and Set to start at boot:

Quote:
# chkconfig xinetd on

# service xinetd restart
 
1 members found this post helpful.
Old 01-24-2012, 11:37 PM   #19
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Original Poster
Rep: Reputation: 17
Question

All the changes are in place.

I have started nagios service also.

but issue is still persists.
 
Old 01-25-2012, 01:23 AM   #20
vinilvijayan
LQ Newbie
 
Registered: Mar 2008
Location: Bangalore, India
Distribution: Fedora,Ubuntu,RHEL
Posts: 8

Rep: Reputation: 0
It looks like you may have to reset the permissions again in the plugins directory. Somebody has already faced similar issue and done this. May be you can try that. The issue might have happened when you reinstalled.

http://www.linuxquestions.org/questi...ervice-352424/

Cheers,
vinil
 
Old 11-15-2012, 01:35 PM   #21
linuxcoa
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Question permissions

Hi Guys,

I would like to change the permissions on the directory /usr/local/nagios/libexec, so that nagios can access the plugins.
At this moment root has permission on most plugins.

Thank you in advance.
 
Old 11-15-2012, 05:10 PM   #22
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by linuxcoa View Post
Hi Guys,

I would like to change the permissions on the directory /usr/local/nagios/libexec, so that nagios can access the plugins.
At this moment root has permission on most plugins.

Thank you in advance.
Welcome to LQ.

This is an old, dead thread.

You should post your question as a new thread. That way, people will see it and answer you.

Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Email Issue Babs Linux - Newbie 3 07-25-2011 02:51 PM
Facing "Cannot find ssl headers" for SUSE machine while configuring NAGIOS asif123 Linux - Software 5 04-26-2011 07:28 AM
How to get rid of this most often facing issue of collect2: ld returned 1 exit status kvijaik Linux - Newbie 2 11-01-2009 02:54 AM
Issue during Nagios Installation? your_shadow03 Linux - Server 7 09-03-2009 07:11 AM
regarding nagios issue wellspringblossom Linux - Server 1 02-21-2007 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration