01-24-2012
Hey Verdepollo,
Yes, NRPE is being used, and below are few details on the Nagios master server, do let me know if you need additional information.
[root@proof etc]# uname -a
Linux proof 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@proof etc]# cat /etc/redhat-release
CentOS release 5.7 (Final)
[root@proof etc]# ls -ltr /usr/local/nagios/etc/
total 116
-rw-rw---- 1 nagios nagios 1340 Jan 13 18:51 resource.cfg
-rw-rw-r-- 1 nagios nagios 43774 Jan 13 18:51 nagios.cfg.01.16.2012
-rw-rw-r-- 1 nagios nagios 11408 Jan 13 18:51 cgi.cfg
-rw-r--r-- 1 root root 26 Jan 16 09:53 htpasswd.users
-rw-rw-r-- 1 nagios nagios 43830 Jan 16 17:37 nagios.cfg
drwxrwxr-x 2 nagios nagios 4096 Jan 17 09:04 objects
-rw-rw-r-- 1 nagios nagios 2813 Jan 18 14:15 services.cfg
[root@proof etc]# cat services.cfg
# Generic service definition template
define service{
name generic-service ;
active_checks_enabled 1 ;
passive_checks_enabled 1 ;
parallelize_check 1 ;
obsess_over_service 1 ;
check_freshness 0 ;
notifications_enabled 1 ;
event_handler_enabled 1 ;
flap_detection_enabled 1 ;
process_perf_data 1 ;
retain_status_information 1 ;
retain_nonstatus_information 1 ;
register 0 ; DONT REGISTER TEMPLATE!
}
# Service definition
define service{
use generic-service ; Name of service template
hostgroup_name admins
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups admins,
notification_interval 30
notification_period 24x7
notification_options w,u,c,r
check_command check_http
}
# Service definition
define service{
use generic-service ; Name of service template
hostgroup_name admins
service_description LocalDisk
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options w,u,c,r
check_command check_local_disk
}
# Service definition
define service{
use generic-service ; Name of service template
hostgroup_name admins
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options w,u,c,r
check_command check_http
}
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I configured nagios version 1.0b on solaris 9
and it working fine, but when hosts goes down or unreachable I do not get hosts notification. I get service notification when servive is critical, unrechable and recovered but not an hosts notification.
here is my contact.cfg
define contact{... (1 Reply)
Discussion started by: hassan2
1 Replies
2. UNIX for Advanced & Expert Users
I recall a UNIX command and remember actually using it where you could send finder alerts/messages to the Finder on the machine you were on or use ssh so as to send the alerts/messages to another machine on the network. You could also send Finder Alerts/Messages that had a reply field in the sense... (0 Replies)
Discussion started by: Peaves
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I had installed Nagios on RHEL5.0 for Server Monitoring and configured the email alerts.
Presently i am able to get the alerts of the c drive space,ftp,http services,
But when the host goes down I dont get any alert saying that the Host is down or Host is Up.
Request you to please help me... (4 Replies)
Discussion started by: Arun.Kakarla
4 Replies
4. Red Hat
I have 2 systems. (1) RHEL5 and (2) winXP pro
from xpPRO putty i ssh into rhel5 : user root
from xpPRO i ftp into rhel5 : user abc123
when i run #uptime it only shows 1 user
when i do #ps -u abc123 : it shows vsftpd deamon PID
is there a command that can be used to show all currently... (4 Replies)
Discussion started by: dplinux
4 Replies
5. Emergency UNIX and Linux Support
Hi!
I want to group alerts in Nagios and want to know if and how that can be done?
So something like 1 alert for multiple alerts and I am notified only once than multiple times.
I tried using nan and nans (two of the opensource solutions) and tried hooking them into Nagios but after... (0 Replies)
Discussion started by: jacki
0 Replies
6. Infrastructure Monitoring
Hii everyone.
I am here with a new query hoping linux gurus can help me.
we have server that was cloned from physical to virtual. Now the load on this server has tremendously reduced. But the threshold set are w.r.t physical server and we do not receive any alert for load as the increased... (1 Reply)
Discussion started by: zsycho
1 Replies
7. UNIX for Dummies Questions & Answers
In NAGIOS i have an host with lots of alerts , host detail- warnings -service , is there any way to acknowledge all of then at one time , or i have to click in all of then one by one? (3 Replies)
Discussion started by: prpkrk
3 Replies
8. UNIX for Advanced & Expert Users
Hi Everyone,
I need help from the nagios users out there. I have setup a new service using the check_by_ssh plugin and is executing the script on the remote server but I wonder what am I missing because is not picking up the returning values of my script. Basically the script on the remote host... (1 Reply)
Discussion started by: arizah
1 Replies
9. Shell Programming and Scripting
Hi
I have written a script to send email alerts when load of my linux server reaches max point
I keep getting false emails thought the load is normal , looks like same email is generated again and again - called from cron tab
checked if the tempfile is present , no it is not , cleaned... (22 Replies)
Discussion started by: anil529
22 Replies
10. Shell Programming and Scripting
Hi All
Below code is working as expected but creating too many child processes when the url is not up and every minute that process is sending false email alerts
any help with the logic not to generate child process and not to send duplicate alerts
app="https://url"
appresult=$(wget... (2 Replies)
Discussion started by: srilinux09
2 Replies
LEARN ABOUT CENTOS
nagios
nagios(8) Nagios nagios(8)
NAME
Nagios - network/systems status monitoring daemon
SYNOPSIS
nagios [-h] [-v] [-s] [-d] <main_config_file>
DESCRIPTION
nagios is a daemon program that monitors the status of various network accessible systems, devices, and more. For more information, please
consult the online documentation available at http://www.nagios.org, or on your nagios server's web page.
OPTIONS
main_config_file
The main configuration file. On openSUSE systems this defaults to /etc/nagios/nagios.cfg
-h A helpful usage message
-v Reads all data in the configuration files and performs a basic verification/sanity check. Always make sure you verify your config
data before (re)starting Nagios. You can also use the Nagios init script to verify your configuration - try: rcnagios check_verbose
-s Shows projected/recommended check scheduling information based on the current data in the configuration files.
-d Starts Nagios in daemon mode (instead of as a foreground process).
FILES
/etc/nagios
Default configuration directory for nagios
AUTHOR
Nagios is written and maintained by Ethan Galstad <nagios@nagios.org>. This manual page was written by sean finney <seanius@debian.org>
for the Debian GNU/Linux operating system (but it may be freely used, modified, and redistributed by others) and adapted by Lars Vogdt for
openSUSE.
sean finney, Lars Vogdt February 2006, May 2010 nagios(8)