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

Re: Notifications on Openfire?

Post by Yaerox »

scottwilkerson wrote:just to be sure, can you post the output of the following

Code: Select all

ls -l /usr/local/nagios/var/rw/nagibot.fifo
linux-wnrb:~ # ls -l /usr/local/nagios/var/rw/nagibot.fifo
prw-rw---- 1 nagios nagios 0 Apr 15 14:18 /usr/local/nagios/var/rw/nagibot.fifo

Regards
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications on Openfire?

Post by abrist »

Any chance you could post the newest output of a verbose startup of nagibot?
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 »

Sure, but nothing changed :/

linux-wnrb:/home/MYUSER # /usr/bin/nagibot.pl -vvv -c /usr/local/nagios/etc/nagibot.conf nagibot@XXX.X.X.XXX
nagibot 0.8.3 starting ...
using config file from commandline
Trying to connect ...
Opening fifo for reading ...
connected to XXX.X.X.XXX:5222
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications on Openfire?

Post by abrist »

So it connects (or at least reports that is does), but your server-side logs are bare?
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 »

For me it seems that nothing gets written into the logs :/

Code: Select all

linux-wnrb:/home/MY_USER# tail /opt/openfire/logs/stderror.log 
Server halted
linux-wnrb:/home/MY_USER# tail /opt/openfire/logs/stderr.out 
linux-wnrb:/home/MY_USER# tail /opt/openfire/logs/stdoutt.log 
Openfire 3.8.1 [Apr 26, 2013 8:06:12 AM]
Admin console listening at:
  http://XXX.X.X.XXX:9090
  https://XXX.X.X.XXX:9091
Missing database schema for asterisk-im. Attempting to install...
asterisk-im - Database update failed. Please manually upgrade your database.
linux-wnrb:/home/MY_USER# 
My Nagios log only shows me two known problems on services about FTP and HTTP ...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notifications on Openfire?

Post by scottwilkerson »

Again, not an expert, but this makes it look like the DB isn't installed

Code: Select all

Missing database schema for asterisk-im. Attempting to install...
asterisk-im - Database update failed. Please manually upgrade your database.
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 »

Ohh my god, never saw this message :/

Well I chose the simple installation without any external database ... maybe i should take a look on that again and finally try a reinstall ...

Regards
Yaerox
Posts: 23
Joined: Fri Apr 12, 2013 4:02 am

Re: Notifications on Openfire?

Post by Yaerox »

I took a look on it and I dont need the asterisk-im plugin. If i disable this PlugIn my Log says:

Code: Select all

Openfire 3.8.1 [Apr 29, 2013 8:33:06 AM]
Admin console listening at:
  http://XXX.X.X.XXX:9090
  https://XXX.X.X.XXX:9091
and Nagibot do the same as before. Don't think this important for the main problem ...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications on Openfire?

Post by abrist »

Just for clarification as we try to investigate your problem some more:
You are trying to get notifications to forward to an XMPP chatroom not a JID, is this correct?
In your verbose output, does XXX.X.X.XXX:5222 correspond to your openfire server or nagios server? Additionally, which does your connect string correspond to: nagibot@XXX.X.X.XXX ?
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 »

abrist wrote:You are trying to get notifications to forward to an XMPP chatroom not a JID, is this correct?
Yes it is.
abrist wrote:In your verbose output, does XXX.X.X.XXX:5222 correspond to your openfire server or nagios server? Additionally, which does your connect string correspond to: nagibot@XXX.X.X.XXX ?
I installed Nagios and Openfire on the same server.

Thanks for help.
Regards.
Locked