Notifications on Openfire?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notifications on Openfire?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Yaerox
Posts: 23
Joined: Fri Apr 12, 2013 4:02 am

Re: Notifications on Openfire?

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications on Openfire?

Post by abrist »

Can you connect to the openfire server with a JID from a standard client?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Yaerox
Posts: 23
Joined: Fri Apr 12, 2013 4:02 am

Re: Notifications on Openfire?

Post by Yaerox »

U mean e.g. Webspark? Yes this works fine without any problems ...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications on Openfire?

Post by abrist »

Ok. Check your command definition one last time. make sure there are no end of line chars in the command line definition.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Yaerox
Posts: 23
Joined: Fri Apr 12, 2013 4:02 am

Re: Notifications on Openfire?

Post 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
}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Notifications on Openfire?

Post 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.
Yaerox
Posts: 23
Joined: Fri Apr 12, 2013 4:02 am

Re: Notifications on Openfire?

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications on Openfire?

Post by abrist »

I don't know if you answered this anywhere in this thread, but what version of openfire are you using?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Yaerox
Posts: 23
Joined: Fri Apr 12, 2013 4:02 am

Re: Notifications on Openfire?

Post by Yaerox »

Openfire 3.8.1
Java Version: 1.6.0_27 Sun Microsystems Inc. -- OpenJDK Server VM
Locked