Solved

nagios error: any help will be appreciated.

Posted on 2012-03-16
5
382 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
  • 3
5 Comments
 
LVL 11

Expert Comment

by:legolasthehansy
Comment Utility
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
Comment Utility
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:Redimido
Comment Utility
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
Comment Utility
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
Comment Utility
the solution was good but did not give much information as to where the initial error happened...
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now