Hello

 

I found In Nagios.cfg that etc/conf.d dir is a Nagios configuration dir.

I would like to use it for my custom notification commands.

I want to use NoMa for notification management and escalation. But it needs
to have altered notification commands:

 

define command{

        command_name    host-notify-by-noma

        command_line    /usr/local/nagios/noma/notifier/alert_via_noma.pl -c
h -s "$HOSTSTATE$" -H "$HOSTNAME$" -n "$NOTIFICATIONTYPE$" -i
"$HOSTADDRESS$" -o "$HOSTOUTPUT$" -t "$SHORTDATETIME$"

        }

 

define command{

        command_name    service-notify-by-noma

        command_line    /usr/local/nagios/noma/notifier/alert_via_noma.pl -c
s -s "$SERVICESTATE$" -H "$HOSTNAME$" -S "$SERVICEDESC$" -o
"$SERVICEOUTPUT$" -n "$NOTIFICATIONTYPE$" -a "$HOSTALIAS$" -i
"$HOSTADDRESS$" -t "$SHORTDATETIME$"

        }

 

But when I create my own config file in that dir and reload OV the file
disappears.

 

Is it possible to use etc/conf.d for custom commands at all?

If so - how?

 

 

Regards

 

Michał Zyzak

 

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to