08-29-2010
Folks,
I switched to "check_http" plugin (official nagios plugin) but that also has same problem.
Initially when I start nagios then the status on the Nagios Web interface is same as the one returned from commandline.
After some time the status becomes critical but is not as same as the commandline. Command line returns the correct status of OK instead of what the Nagios web interface shows as "CRITICAL"
Result from commandline(& browser) -
./check_http -H xyz.com -p 2222 -u /abc -t 3
OK
Result from Nagios Interface -
nodename nor servname provided, or not known
HTTP CRITICAL - Unable to open TCP socket
I am thinking that this has something to do with Nagios as the box is behaving just fine based on the commandline result(and verified on the URL through the browser).
Please help!
Thanks,
Jack.
10 More Discussions You Might Find Interesting
1. 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
2. Solaris
Hi Gurus,
I had downloaded the below script from the net and used it to get the Link and duplex settings in my Sun servers.
In all except one(Sol-5.10 on X86) i am getting output format like below:
root: /var/ADMIN/bin/speed_duplex.sh
Interface Speed Duplex
--------- ... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies
3. Infrastructure Monitoring
I've got it installed but when I logging to the interface to http://localhost/nagios I get the following:
Forbidden
You don't have permission to access /nagios/ on this server.
Apache/2.0.63 (Unix) DAV/2 Server at localhost Port 80
im running Solaris Version: SunOS dotstoas442 5.10... (0 Replies)
Discussion started by: frenchykd
0 Replies
4. Infrastructure Monitoring
Hi!
I have a perl script which returns data in the following format -
AppName : BillingApp
"status" = "OK";
AppName : PaymentApp
"status" = "WARN";
AppName : OrderApp
"status" = "ERROR";
AppName : OrderApp
"status" = "FATAL";
the output consists of... (4 Replies)
Discussion started by: jacki
4 Replies
5. Infrastructure Monitoring
Hi,
I have installed Nagios on Redhat Linux,
I have installed Nagios+Plugins+NRPE on Server A (Host Server) and Nagios Plugins + nrpe on remote linux server (red hat linux)
run the command on remote linux host, it returns nrpe version
usr/local/nagios/libexec/check_nrpe -H localhost
... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
6. Shell Programming and Scripting
hi all,i m using this script for disk space :
####################################
#!/bin/ksh
#
HOSTS='/usr/bin/cat /host_list'
DATE=$(date)
DISK=$(df -gt)
afile=/tmp/diskspace.log
>$afile
#
for i in $HOSTS
do
echo ip: $i passed
echo ip: $i passed >>$afile
... (1 Reply)
Discussion started by: viveksangwan
1 Replies
7. Infrastructure Monitoring
We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side.
I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies
8. Shell Programming and Scripting
I'm having a problem scripting Expect to work as a Nagios check. The script runs fine from the cli, but not when run as a Nagios check. I turn on the debug output, and it looks like it's not seeing the whole buffer's worth of info, like it's paged interactively somehow. I'm new to Expect, but this... (1 Reply)
Discussion started by: dhargens
1 Replies
9. Shell Programming and Scripting
Hi Experts, need some help.
I`m trying to write a shell script to get free, used and total memory on our linux servers.
It's working great, but i need follow some standards to make it a real nagios plugin.
It's pretty simple, you just type two parameters to the script, check_ram -w 80 -c 90... (4 Replies)
Discussion started by: berveglieri
4 Replies
10. Shell Programming and Scripting
When i execute the below shell script with 2 different Input files, for one of the data files (datafile1) my email message body in the outlook messes up and every thing comes up in one line. May i please know what i am doing wrong here or how to fix this? The only difference in data files is one is... (1 Reply)
Discussion started by: Ariean
1 Replies
LEARN ABOUT SUSE
nagiosstats
nagiosstats(8) nagios nagiosstats(8)
NAME
nagiosstats - report statistics information from the Nagios system
SYNOPSIS
nagiosstats [-hVL] [-c config] [-m] [-d]
DESCRIPTION
nagiosstats is a program designed to provide information on the running Nagios system. It can provide a brief summary of information, or
it can be used to export specific information about the Nagios system into an MRTG-compatible format. For more information please consult
the Nagios online documentation available at http://www.nagios.org or the documentation available with your Nagios server's web page.
OPTIONS
-c|--config=FILE
The main configuration file. On openSUSE systems this defaults to /etc/nagios/nagios.cfg
-m|--mrtg
Print output in MRTG-compatible format. For more details run nagiosstats with --help
-d|--data=VARS
Comma-seperated list of variables to output in MRTG format. For more details run nagiosstats with --help.
-h|--help
A helpful usage message
-V|--version
Print version information
-L|--license
Print license details
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 for openSUSE by Lars
Vogdt.
sean finney, Lars Vogdt February 2006, May 2010 nagiosstats(8)