help1
Enrique Reyes
ereyes at galois.dgae.unam.mx
Wed Apr 23 00:00:41 CEST 2003
Hi thanks but.
thanks James
1) in nagios.cgf I have
cfg_file=/home/nagios/etc/commands.cfg
and nagios is in /home/nagios
thanks Jim but
2) $ grep host-notify-by-epager *
commands.cfg:# 'host-notify-by-epager' command definition
commands.cfg: command_name host-notify-by-epager
contacts.cfg: host_notification_commands host-notify-by-email,host-notify-by-epager
Gracias Jimie pero
3) en mi archivo de nagios.cfg si tiene el nombre de commands.cgf en lugar
de misccommands.cfg
any other solution
thanks
> Hi I'm Enrique and I have a problem
> $../bin/nagios -v nagios.cfg
> Nagios 1.0
> Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
> Last Modified: 11-24-2002
> License: GPL
>
> Reading configuration data...
>
> Error: Command 'host-notify-by-epager' has already been defined
>
> Error: Could not register command (config file
> '/home/nagios/etc/commands.cfg', line 29)
>
>
> ***> 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.
>
> --
> and my file commands.cfg is
>
> # 'host-notify-by-epager' command definition
> define command{
> command_name host-notify-by-epager
> command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is
> $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /bin/mail -s
> "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
> }
>
> I need help
> thanks
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list