Software :: Manually Executing Entry In Nagios Checkcommands.cfg

Mar 10, 2011

First I don't know Nagios. I've been left with a fairly large(350 servers, 750 services) Nagios system installed. I've scraped and googled till I'm blue in the face. The Nagios folks have been less than helpful in that they tell me I need to figure it out myself. I've tried for four days to *figure it out myself*.

I have an entry in the checkcommands.cfg file:

# 'check_dns_external' command definition
define command{
command_name check_dns_external
command_line $USER1$/check_dns -H $HOSTNAME$ -t 60 -s 4.2.2.1 -a $HOSTADDRESS$
}

First, I don't understand what this command means and does. Next, I don't understand how to manually execute this command. I do know that the command in automatic mode has stopped working as Nagios tries to execute and I get an error message on the Service Status Types: Nagios alert page. The alert doesn't come with any regularity as to time of day or availability of resources. Apparently, this Nagios command is executing randomly. It is waking me up several times a night and several times a day as we page out alerts via email.

I'm lost. Aside from bouncing the entire Nagios stack, which is not possible right away as this is a Production system, is there any way to manually execute the offending line described above? Again, I've asked the Nagios folks and they have declined to answer.

View 5 Replies


ADVERTISEMENT

CentOS 5 :: Nagios Running The Command Manually

Dec 15, 2010

I found it once on the web by means of googling it.How do you run a command, from nrpe.cfg, to make sure that it works?For instance, command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200

View 1 Replies View Related

Ubuntu Servers :: CronTab Not Executing Script Works Fine Manually?

May 9, 2011

I have written a simple backup script, and added it to CronTab, but it doesnt execute at all. Here is my script: [URL]...And my CronTab entry: 0 */2 * * * root /home/server/Scripts/backup.sh

View 6 Replies View Related

Ubuntu :: Manually Generate An Entry In The /etc/shadow File?

Oct 25, 2010

I'm trying to learn how to create a user account manually on the system, and I've edited the /etc/passwd and /etc/groups as well as creating a new home directory by copying /etc/skel but I'm stuck at how to generate an entry in the /etc/shadow file since it comprises of the hash and all?

View 4 Replies View Related

Fedora :: Generate Report Other Than Going Through All The Nagios Configuration Files And Putting It Together Manually?

Feb 23, 2010

I have an existing Nagios installation from before I started working here. It seems to be working well but my boss has just asked for a report of what servers and the associated processes/functions are being monitored. Is there any way to generate this report other than going through all the Nagios configuration files and putting it together manually?

View 3 Replies View Related

Fedora Installation :: Grub2 Bootloader - Manually Adding Entry?

May 29, 2010

I have a working Ubuntu install with the Grub2 bootloader. I need to manually add an entry to boot Fedora 13 off of sda. Sda1 is the boot partition, sda2 is LVM. None of the examples I've tried work. I do also have F13 grub installed on sda, but chainloading to it didn't do anything other than a blinking cursor.

View 5 Replies View Related

Ubuntu Servers :: XUbuntu Wireless / "iwconfig" Giving A Third Entry: Wlan0 - Cannot Manually Reboot?

Mar 20, 2011

I have recently converted my old desktop computer into a server (using the ubuntu server 10.10 install disk), installed xubuntu, and have installed the driver for my WPN111 usb antenna using ndiswrapper. I then installed wicd to connect to my home network (with a WPA2 passkey). Anyways, it works great... with one major annoyance � whenever I reboot (with "sudo reboot") the computer, the wireless configuration isn't detected at all.

Code:
$ iwconfig
lo no wireless extensions
eth0 no wireless extensions

The only time it works is when I turn my computer off and manually turn back it on... and then "iwconfig" gives me a third entry: wlan0. The wireless then (and only then) works like a charm. The problem is, I want to be able to access this server away from home, and of course in that situation I cannot manually reboot it.

View 1 Replies View Related

Server :: Error: Cannot Open Log File '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' For Reading?

Jul 9, 2011

Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' for reading!

View 2 Replies View Related

General :: How To See The Code Behind The Nagios Plugin: Nagios Checker

Aug 4, 2010

How to see the code behind the nagios plugin: Nagios Checker? I opened the folder which i have downloaded. After that where do i have to go to see the codes? Is it in App_Codes?

View 14 Replies View Related

General :: Nagios - Can I Configure Nagios To Do This

Jul 15, 2011

So we monitor all of our disk space, but only get pages for critical. What we would like to do is have one email sent to our team every month with all the "Warnings" for our disk. I have been searching and haven't found a way to do this. Any suggestions?

View 1 Replies View Related

Server :: Bad Entry In Directory Unaligned Directory Entry?

Apr 1, 2011

I have the following error on one of my servers. Is there a way to tell which directory is exactly having the problem? if there is, if i delete that directory, will that resolve the problem or no?kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #10158084: unaligned directory entry - offset=0, inode=605471640, rec_len=7606, name_len=177

View 4 Replies View Related

Ubuntu :: Crontab Job Not Executing

Sep 1, 2011

I am a xfce user. I have a list of wallpapers and I wanted to change them every 5 minutes Initially I was using a simple command in crontab entry to change it, Quote: */5 * * * * xfdesktop --reload it was working but it would crash xfdesktop process after few changes and the screen would be all grey. To solve this issues I wrote a simple script which would check if xfdesktop is alive and if yes it would call xfdesktop --reload else start xfdesktop I called this script idesktop & its path is ~/.bin/idesktop

[Code]....

View 8 Replies View Related

Programming :: GNU C - Timer Not Executing

Mar 3, 2011

Why is the timer not executing?

Code: #include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <pthread.h>
void func(union sigval sv)
[Code]....

View 1 Replies View Related

Software :: Executing NS 2.34 (NAM) On Ubuntu 9.10

Oct 26, 2010

I successfully installed and validate ns-allinone-2.34 network simulator on ubuntu-9.10. I then tried to run simple tcl code and ended up on the following error. I couldn't move ahead from there. What should I do to make 'nam(version 1.14)' work on my ubuntu 9.10?

ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"

Here is the code I tried to run (for reference):
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the NAM trace file
close $nf
#Execute NAM on the trace file
exec nam out.nam &
exit 0
} .....

By the way I googled and got some suggestions like: adding 'nam' directory to environment. I did this as follow but it didn't work. I added:
export PATH=$PATH:/home/elias/ns-allinone-2.34/nam-1.14
to /etc/profile (>sudo gedit /etc/profile)

View 1 Replies View Related

Fedora :: Allow Executing File As Program?

Apr 18, 2011

i have many text files in my directory and when i click on them to open them os treat it as a runnable file any says display or run or run in terminal ... i want to pick up recursively the tick of "Allow executing file as program" for all files.

View 2 Replies View Related

Ubuntu :: Add Repository - Error: Executing

Jan 14, 2010

Is [URL]... down? I try to add the repository:

sudo add-apt-repository ppaorg-edgers/ppa

and I get this error:

[code]...

View 5 Replies View Related

Ubuntu :: Executing EXE Files From A CDRom?

May 11, 2010

I cannot seem to find what I need to in either these forums, Ubuntu help, or various Man pages.Issue:When I insert a CD it automounts correctly, but I cannot Use the "Open with Wine" option (even after configuring wine to recognize the executable) due to a "trust" issue within Ubuntu. I have learned that this "trust" is simply the executable bit, but I obviously cannot change that bit on a read only medium. he software requires the CD at both install and run time, so I cannot use a separately mounted ISO.Somewhere there must be a setting where I can turn off the "require trust flag" which I assume must exist.

View 5 Replies View Related

Ubuntu :: No Terminal After Executing Byobu

May 20, 2010

I just closed my terminal after checkin out byobu . Now when i click terminal , nothing happens . how can i get back my terminal ???

View 1 Replies View Related

Ubuntu :: Rc.local Is Not Executing On Boot?

Jul 5, 2010

using ubuntu-10.04/gnome

i have my printer and localhost startup written in rc.local but it does not execute on boot/reboot

that is the report i could make (yet learning about how to use linux)

Code:
r@r-desktop:~$ ls /etc/rc.local -l
-rwxr-xr-x 1 root root 540 2010-07-05 14:26 /etc/rc.local
r@r-desktop:~$ cat /etc/rc.local
#!/bin/sh -e

[Code].....

View 4 Replies View Related

Ubuntu :: Executing Any Program After Download?

Sep 4, 2010

After downloading any program thats in ubuntu or uses wine to run before i can run it i've got to allow it to execute, is there a workaround for this? Im using 10.04 ubuntu desktop

View 1 Replies View Related

Ubuntu :: Startup Script Not Executing?

Oct 26, 2010

Code:
ryan@TehLaptop:~$ uname -a
Linux TehLaptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
ryan@TehLaptop:~$ lsb_release -a

[Code].....

I have it in my system -> preferences -> startup applications as the command "/etc/init.d/fixkeys" however it is not being executed at startup (I have to manually run the script every time I login). If I manually run it, it works perfectly. I have tried moving it to a directory in my home folder but that did not solve anything.

View 9 Replies View Related

Ubuntu :: Allow Executing File As Program?

Apr 22, 2011

On the `Install Properties` Menu , I am not allowed to check the: Allow executing file as program...

View 2 Replies View Related

Ubuntu :: 'Allow Executing File' But It Keeps Unchecking

Apr 30, 2011

I installed wine in the new Ubuntu 11, but when i right click and go open with wine it says that its not marked as executable! then i went right click and properties and under the permissions i clicked "Allow executing file" but it keeps unchecking!

View 9 Replies View Related

Ubuntu :: Executing A Script By Keypress?

Aug 6, 2011

Is there any way to map a shell script to run when you press a certain set of keys? For instance, I may want to execute the following by pressing CTRL+ALT+R (if that key combination is not already taken)

Code:

compiz --replace --loose-binding ccp

Or perhaps I want to open the System Monitor by pressing CTRL+ALT+DEL (a la Windows)

View 2 Replies View Related

Debian :: Executing Scripts From Cron ?

Oct 1, 2009

I am adding the following scripts to cron via crontab -e (as user)

Quote:

The first one is to record tv. I've added dev/null 2>&1 at the end. No too clear why but without it, it records only a few seconds.

The second script is (as you should already noticed) to turn off my computer at 6:25 am. It doesn't work (with or without dev/null 2>&1). I am surely forgetting something important. Could you please tell me what is it?

View 6 Replies View Related

General :: Executing File Of Some Other Directory From PWD

Jan 14, 2010

My present working is
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/demo/c++ #
Now I want to run "python scons/scons.py" located in
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/ #

I tried
Code:
../../python scons/scons.py
From the above stated PWD but it resulted in the following:
Code:
bash: ../../python: No such file or directory
What is the way to execute a file of some other directory from the PWD!

View 14 Replies View Related

General :: Error Executing The Script?

Jun 16, 2011

Running following script for checking root ssh login status.

Code:
Flag=`cat /etc/ssh/sshd_config | grep "^PermitRootLogin"`
if [ -z "$Flag" ]
then

[Code].....

View 1 Replies View Related

General :: Executing AT Commands On USB Modem?

Aug 13, 2010

I have a USB modem on a Debian install that I want to be able to use AT commands to diagnose, specifically for obtaining signal strength (RSSI). I know the command for this is AT+CSQ but I cannot seem to get the interface for issuing AT commands to work.

The modem is using /dev/ttyACM0 and when I try to use minicom, I type in AT commands and nothing is echoed to the screen (Yes, echo is turned on). Maybe I just don't know how to use minicom correctly.

View 9 Replies View Related

General :: Executing Awk Script Without File Name?

Jul 15, 2010

Code:

#!/usr/bin/awk -f
BEGIN{ FS=":"}
{
"groups "$1 | getline grps

[code]....

View 5 Replies View Related

General :: Executing Command Over A Network?

Aug 6, 2010

I have a some c source code files that i have to copy to linux machine from a windows machine over a network. This source code folder has to be copied into a particular directory structure in the linux system at the other end. After copying the file into the appropriate folder in the linux server i have to instruct the linux machine to make(using the make file that is there with the c files) this source code from the windows machine. Does anyone have any idea in regard to how this can be implemented?? i am trying to have a gui client that has the above mentioned options(copying and inserting the c files into the appropriate directory and then for making the files and getting the executable.)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved