General :: How To Monitor Remote Host Using Nagios
Jan 14, 2011
Yesterday i install nagios, after that i can successfully monitor my local machine disk usage and its services, but now i want to monitor remote host, but have no idea how to do this , i also google alot but not getting resource full explanation.so please guys tell me how can i monitor the remote host using nagios..
i have some problem with nagios adding remots hosts in localhost.cfg (/etc/nagios/objects/localhost.cfg) file in that i am able to only one remote host if i add one more host in that file i got below error #/usr/sbin/nagios -v /etc/nagios/nagios.cfg
Nagios Core 3.2.3 Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 10-03-2010 License: GPL
I have installed nagios successfully also able to monitor windows hosts. but not able to monitor linux hosts. i have follow below procedure, installation part and evertything was ok.but still i am not able to see linux host under nagios. i followed below url for monitor linux hosts on nagios.URL...
Is this possible that a process running on a remote-host only inform nagios when some thing is wrong. Rather then nagios-monitoring-server checking through NRPE every so often. Reason is I want to add too many alerts in the application. And I don't want a whole list of ok messages.
I'm trying to setup my test nagios to check the disk space of another linux box. I've got it setup and checking. But to my surprise, it was checking the nagios server's local disk space instead of the remote linux.
Here is my services.cfg.
define service{ use basic-service name disk-space check_command check_local_disk!20%!10%! /
I installed Nagios following the Quick Install method from the Nagios.org web site but now I would like to add and monitor another host.I don�t find a way , I have for example replaced the ip number of the localhost(127.0.0.1 localhost.cfg) for another ip number and I am able to monitor another computer that way. But then I no longer MONITOR the localhost unless I replace the ip number in the localhost.cfg file. what I would like to do is to monitor both or more computers.
I am having individual Linux server and need to install nagios monitoring tool on the server. How to install on this linux server. I am using CentOS. Need to to monitor mysql and http services.
We are using Nagios Server for different sites say India,US,Germany. All of them are in their respective groups. Now how do i create web access to 3 of them, so that they can monitor only their server? Say, India shouls be able to see and monitor only India group, US guys should able to monitor only US servers. And they not be anle to access other group.
Since a week or 2 Nagios is constantly marking hosts (servers mainly but also a few Serial-over-IP converters) down for anything up to a few minutes. Typically, all services stay in OK status. Looking closer at a host in such state, it's status information is
CRITICAL - Packet Filtered (<IP address of host in question>)
in soft state. Sometimes services are in critical state with the host in OK status. Almost always the status information is "No route to host". Further checking shows no problems. Rarely this state lasts longer than one check interval. This started after a link was down, putting, correctly, all hosts and services on red for being unreachable. The link problems were solved within a few hours but Nagios only showed this after 2 reboots. Since then the problems has lessened in frequency gradually, from 5 to 10 of the 34 hosts being reported down at any given moment (the same for the 150-ish services monitored) to where I am now, 1 to 5 problem statuses (counting both hosts and services) and the occasional 'all green' screen. A week ago, when the problems were going a week already, Nagios updated from 3.2.0 to 3.2.1. This showed no apparent improvement.
Still, the Host Groups screen is not stable. A read or yellow status initially signified a problem to be looked at, right now it is likely a false alarm to will go away. Whenever the "packet filtered" or "no route to host" is followed up by a ping test, no problems, not even with the slightest delay or packt loss are found.
I need to delete all files inside remote directory using ssh P.S. The directory must not be deleted, so @Wes answer is not what I need. If it would be local dir, I would run "rm -rf dir/*"
I can use TeamViewer to get into this remote host. It has sshd running. I would like to ssh to it. But it gives the system's IP as 192.168.xx.yy. How do I ssh into it?
I want to start a shell scripts(which generate traffic to test my network) at remote linux hosts from single linux local host.. If i start script at remote host through ssh, all traffic are sending from my local host also. It will create burden on my local host. If i terminate SSH connection, it stopping the script at remote host. Also i need to do ssh to all my remote hosts.
How is it done?Right now its just getting written in a local text file(not /var/../.., not using syslog at all).and every day a new file is being created
I am using nagios to monitor a local host and a remote host in a vmware, where both the machines working in CentOS. Now i need to monitor MySQL in my local host so that i should know whether MySQL is up and running. I came across some plugins like
I'm in a situation, that I have no access to one of my remote server. And I CAN'T EVEN INSTALL ANY SOFTWARE in any linux boxes to determine the remote OS name and version.Can you please enlighten me on how could I find out the OS version of remote host without installing any software or without login to that server.
I believe that I need to disable the host check, I'm checking a public FTP service and ping is disabled on that FTP host. This is resulting in Nagios reporting the host as down, but the service shows as OK.
When I do a ntpq -p on my machine I could see the ntp servers configured and it's status:
But when I telnet to ntp server "10.1.35.2" it says A remote host refused an attempted connect operation:
I know * here represents that the machine is in sync with ntp server. My question if the machine is in sync with ntp server, how does it work?why ntp port 123 is connection refused?
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?
My question is about checking remote services under Nagios. I have installed nrpe and the standard plugins on my Nagios server (RHEL 5.4) and the systems I want to monitor. I have been able to create hostgroups. I am somewhat confused as to how to add a new service. I want to check to see if tomcat is running on the remote servers. I found a plugin check_procs. If I run the following command on one of the remotes it works.
Quote:
check_procs -u tomcat6 PROCS OK: 1 process with UID = 101 (tomcat6)[code].....
It doesn't work. I'm not sure how to format the service.I've found gobs of documentation on how to setup and install Nagios, done. I've not been so lucky on how to setup a new service.
I have a CentOS-5 Server with Nagios installed,through which I monitor three other servers.I want to monitor a Linux partition which is mounted under CentOS-5 server which has Nagios installed.
My system is Ubuntu 11Before I typed "telnet localhost" or "telnet localhost 23". I have make this work below:$sudo apt-get install xinetd$vim /etc/xinetd.conf
Q=What will this do? A=This will read from /root/Desktop/iplist (or anywhere you want to put the list) after it reads the ip it will ping the ip two times. If the remote host is up then it will write the ip to a log. If the ping fails it will display it on the screen, write the ip to syslog so that you can do remote logging, and last it will send the ip by email to a user or a group of users.
Code: #!/bin/bash #wrote by Zach Underwood feb-12-2011 #test and wrote on centos 5.5 with sendmail rm -f /root/Desktop/iplog #This will remove the good iplog exec 9</root/Desktop/iplist #put full path the file where ip list is. Make sure that the ips are listed one per line. while read -u9 ip do ping -c 2 $ip > /dev/null 2> /dev/null # ping and discard output if [ $? -eq 0 ]; then # check the exit code echo "$ip is up" >> /root/Desktop/iplog #write the ip of the hosts that are up else echo "$ip is down" # will show on the screen the ips that are not up logger -p auth.notice "$ip is down" # will write the down host to syslog echo "$ip is down" | mail -v -s alert user@anydomain.com > /dev/null 2> /dev/null #will send mail users about host down fi done
Is there a way to monitor a wall outlet with nagios.I want to check if we got some power out of a wall outlet.This is to check whether we are running on the electricity network or on our diesel power generator.The wall outlet is connected only to the electricity network, so if there is no more power coming out of the outlet that mean that we are running on the diesel power generator.