Help

mike.simkins at sungard.com mike.simkins at sungard.com
Tue Nov 4 11:23:18 CET 2003


$host1$ is not a valid macro - this should either be $HOSTNAME$ or
$HOSTADDRESS$ or $HOSTALIAS$ - The macro is automatically replaced with
the correct value.
$sunsolnav at yahoo.com$ is also not valid - this should be $CONTACTEMAIL$
- You put your details in the contacts.cfg file.
 
Also check there is a space after printf (i.e /usr/bin/printf (space)
"%b")
 
it should look like this
 
 
# 'notify-by-email' command definition
define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf  "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$"
| /usr/
bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$ **" $CONTACTEMAIL$
        }

 

-----Original Message-----
From: sun solnav [mailto:sunsolnav at yahoo.com] 
Sent: Tuesday, November 04, 2003 10:04 AM
To: Simkins, Mike; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Help


Mike ,
 
Thanks a ton for replying me .The contents of the misccommands.cfg are 
 
# 'notify-by-email' command definition
define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
\nHost: $host1$\nAddress: $host1$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/
bin/mail -s "** $NOTIFICATIONTYPE$ alert - $host1$/$SERVICEDESC$ is
$SERVICESTATE$ **" $sunsolnav at yahoo.com$
        }
# 

Thanks ,
Nav
mike.simkins at sungard.com wrote:

What is/are  the contents of your misccommands.cfg
 

-----Original Message-----
From: sun solnav [mailto:sunsolnav at yahoo.com] 
Sent: Monday, November 03, 2003 12:09 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Help


Hello Nagios guru's ,
 
I'm new to this tool , i found this interesting and decided to install
this for my environment. I have installed it sucessfully and configured
the web interface. But now when i try to configure a unix box  using the
docs provided in the  http://www.nagios.org <http://www.nagios.org/>  
for disk usage i get the following error . 
 
# ./nagios restart
Running configuration check...
Nagios 1.1
Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
Last Modified: 06-02-2003
License: GPL
Reading configuration data...
Error: Could not add object property in file
'/usr/nagios/etc/misccommands.cfg' on line 5.
***> One or more problems was encountered while processing the config
files...
     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a
previous
     version of Nagios, you should be aware that some
variables/definitions
     may have been removed or modified in this version.  Make sure to
read
     the HTML documentation on the main and host config files, as well
as the
     'Whats New' section to find out what has changed.
failed - aborting restart.
# 
 
 
I'm not sure how to configure the file misccommands.cfg . Can someone
help me with this regard.
 
Installation details .
 
Installed location :/usr/nagios
 
Can someone help me in configuring  misccommands.cfg file.
 
Thanks and Regards,
Nav.



  _____  

Do you Yahoo!?
Exclusive Video Premiere - Britney
<http://launch.yahoo.com/video/?1093432&fs=1&redirectURL=http://launch.y
ahoo.com/promos/britneyspears/> Spears



  _____  

Do you Yahoo!?
Protect  <http://antispam.yahoo.com/whatsnewfree> your identity with
Yahoo! Mail AddressGuard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031104/31e31212/attachment.html>


More information about the Users mailing list