Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

nagios error: any help will be appreciated.

Posted on 2012-03-16
5
Medium Priority
?
410 Views
Last Modified: 2012-08-14
Hi

i am new to nagios; i had earlier installed nagios on unbuntu 10.4.3 and monitoring a windows server. but i accidentally deleted the commands.cfg file and i installed nagios again; but this time around it gives me an error.

[03-16-2012 13:17:24] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: W3SVC\nHost: My Windows Server\nAddress: 192.168.60.16\nState: UNKNOWN\n\nDate/Time: Fri Mar 16 13:17:24 CDT 2012\n\nAdditional Info:\n\nUsage:check_nt -H host -v variable [-p port] [-w warning] [-c critical][-l params] [-d SHOWALL] [-t timeout]\n" | /bin/mail -s "** PROBLEM Service Alert: My Windows Server/W3SVC is UNKNOWN **" nagios@localhost" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[03-16-2012 13:17:24] SERVICE NOTIFICATION: nagiosadmin;winserver;W3SVC;UNKNOWN;notify-service-by-email;Usage:check_nt -H host -v variable [-p port] [-w warning] [-c critical][-l params] [-d SHOWALL] [-t timeout]
0
Comment
Question by:sudhir87
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 11

Expert Comment

by:legolasthehansy
ID: 37730594
Looks like the uninstallation was not clean. I guess it is unwise to fix this as this would take a lot of your time.
DO an uninstall again - make sure you remove /usr/local/nagios folder completely
Install again.
0
 

Author Comment

by:sudhir87
ID: 37730824
i uninstalled i emptied the /usr/local/nagios folder and installed again it is giving me the same error. am i missing something. if i have to delete the nagios running completely how do i do it.
0
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 37740672
Did you check you have the binary
/bin/mail

installed? if not, locate it on your distro and install it.
0
 

Accepted Solution

by:
sudhir87 earned 0 total points
ID: 37748473
i removed all the installation files and then installed it; and on the windows client side i checked all the plugins then it started again...im really sad that i couldnt find out what exactly caused the break down but im glad it worked out.thanks for your help guys.
0
 

Author Closing Comment

by:sudhir87
ID: 37764956
the solution was good but did not give much information as to where the initial error happened...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question