Sponsored Content
Operating Systems Linux Red Hat Nagios is sending critical false alerts about current users Post 302592649 by lovesaikrishna on Tuesday 24th of January 2012 11:49:26 AM
Old 01-24-2012
Here you go.

I've used the same config file for all servers and updated relevant hostname & IPAddress respectively, do let me know if you need additional information.

define host{
use linux-server ; Inherit default values from a template
host_name clientnagios; The name we're giving to this server
alias CentOS 5; A longer name for the server
address 10.10.2.19; IP address of the server
}

#define service{
# use generic-service
# host_name clientnagios
# service_description HTTP
# check_command check_http!check_http
#}
define service{
use generic-service
host_name clientnagios
service_description PING
check_command check_ping!100.0,20%!500.0,60%
initial_state u
max_check_attempts 2
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 15
notification_period 24x7
notifications_enabled 1
notification_options c,r
}

define service{
use generic-service
host_name clientnagios
service_description Root Partition
check_command check_local_disk!20%!10%!/
initial_state u
max_check_attempts 3
check_interval 10
retry_interval 2
check_period 24x7
notification_interval 30
first_notification_delay 15
notification_period 24x7
notifications_enabled 1
notification_options c,r
}


define service{
use generic-service ; Name of service template to use
host_name clientnagios
service_description Current Users
check_command check_local_users!3!5
initial_state u
max_check_attempts 3
check_interval 10
retry_interval 2
check_period 24x7
notification_interval 30
first_notification_delay 15
notification_period 24x7
notifications_enabled 1
notification_options c,r
}

define service{
use generic-service ; Name of service template to use
host_name clientnagios
service_description Total Processes
check_command check_local_procs!375!400!RSZDT
initial_state u
max_check_attempts 3
check_interval 10
retry_interval 2
check_period 24x7
notification_interval 30
first_notification_delay 15
notification_period 24x7
notifications_enabled 1
notification_options c,r
}

define service{
use generic-service ; Name of service template to use
host_name clientnagios
service_description Current Load
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
initial_state u
max_check_attempts 3
check_interval 10
retry_interval 2
check_period 24x7

notification_interval 30
first_notification_delay 15
notification_period 24x7
notifications_enabled 1
notification_options c,r
}

define service{
use generic-service ; Name of service template to use
host_name clientnagios
service_description Swap Usage
check_command check_local_swap!20!10
initial_state u
max_check_attempts 3
check_interval 10
retry_interval 2
check_period 24x7
notification_interval 30
first_notification_delay 15
notification_period 24x7
notifications_enabled 1
notification_options c,r
}
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

nagios not sending hosts notification

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

Sending Finder Messages/Alerts in UNIX

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

Nagios Alerts Issue

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

Current logged in users

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

Grouping of Nagios alerts

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

Setting Nagios warning and critical load threshold?

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

Nagios, clean all alerts

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

Check_by_ssh plugin (nagios 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

False alerts

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

Url check creating child process and generating false alerts

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
All times are GMT -4. The time now is 02:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy