Page 4 of 5

Re: Notifications on Openfire?

Posted: Thu May 02, 2013 10:15 pm
by scottwilkerson
To again remove the IP from the list can you set the JID to nagibot@localhost

Then try

Code: Select all

/usr/bin/nagibot.pl -vvv -c /usr/local/nagios/etc/nagibot.conf nagibot@localhost

Re: Notifications on Openfire?

Posted: Fri May 03, 2013 1:10 am
by Yaerox
Already did this some times. Same result.

Code: Select all

linux-wnrb:/home/USER# /opt/openfire/bin/openfire start
Starting openfire
linux-wnrb:/home/USER# /usr/bin/nagibot.pl -vvv -c /usr/local/nagios/etc/nagibot.conf nagibot@localhost
nagibot 0.8.3 starting ...
using config file from commandline
Trying to connect ...
Opening fifo for reading ...
connected to 127.0.0.1:5222

# nothing happens ...

linux-wnrb:/home/USER# tail /opt/openfire/logs/stderror.log 
Server halted
linux-wnrb:/home/USER# tail /opt/openfire/logs/stderr.out 
linux-wnrb:/home/USER# tail /opt/openfire/logs/stdoutt.log 
Openfire 3.8.1 [May 3, 2013 8:06:16 AM]
Admin console listening at:
  http://192.3.1.177:9090
  https://192.3.1.177:9091
linux-wnrb:/home/USER# /opt/openfire/bin/openfire status
The daemon is running.
linux-wnrb:/home/USER#
Already thought about Firewall issues but openSUSE Firewall is diabled.

Re: Notifications on Openfire?

Posted: Fri May 03, 2013 3:26 pm
by abrist
Can you connect to the openfire server with a JID from a standard client?

Re: Notifications on Openfire?

Posted: Mon May 06, 2013 1:09 am
by Yaerox
U mean e.g. Webspark? Yes this works fine without any problems ...

Re: Notifications on Openfire?

Posted: Mon May 06, 2013 3:27 pm
by abrist
Ok. Check your command definition one last time. make sure there are no end of line chars in the command line definition.

Re: Notifications on Openfire?

Posted: Fri May 10, 2013 1:29 am
by Yaerox
What do you mean with command definition? Do you mean e.g.:
/usr/bin/nagibot.pl -vvv -c /usr/local/nagios/etc/nagibot.conf nagibot@localhost
?
Or do you mean the command.cfg:
# 'notify-by-pipe' command definition(s)
define command {
command_name service-notify-by-pipe
command_line /usr/bin/printf "%b" "*$NOTIFICATIONTYPE$* $SERVICEDESC$ on $HOSTALIAS$ $SERVICESTATE$\n" >> /opt/nagios/var/rw/nagibot.fifo 2>&1
}

define command {
command_name host-notify-by-pipe
command_line /usr/bin/printf "%b" "*$NOTIFICATIONTYPE$* $HOSTNAME$ is $HOSTSTATE$\n" >> /opt/nagios/var/rw/nagibot.fifo 2>&1
}

Re: Notifications on Openfire?

Posted: Fri May 10, 2013 3:21 pm
by slansing
We're going to do a bit more digging on this, through from the sounds of it one of our techs was able to re-create this setup and is able to successfully use Openfire for notifications.

Re: Notifications on Openfire?

Posted: Mon May 13, 2013 1:16 am
by Yaerox
Wow, I really apperciate your help slansing.

I assume your tech used the same tutorials? I also thought about a problem with Openfire and Nagios on the same Server, but this shouldn't be the problem I think ...

Well the reason why I'm answering sometimes a couple days later is that I've only the chance to work on this on monday, wednesday (only every 2 weeks), thurstday and friday. Just want you to know this that it doesn't seem like I'm asking for help but not doing/trying anything on my own ;)

Regards.

Re: Notifications on Openfire?

Posted: Mon May 13, 2013 10:45 am
by abrist
I don't know if you answered this anywhere in this thread, but what version of openfire are you using?

Re: Notifications on Openfire?

Posted: Wed May 15, 2013 2:11 am
by Yaerox
Openfire 3.8.1
Java Version: 1.6.0_27 Sun Microsystems Inc. -- OpenJDK Server VM