Multitech Component Questions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Multitech Component Questions

Post by BanditBBS »

Ok, I have two interesting questions regarding the Multitech Component. This is in prod running 2.8c

1.) I know sms are being sent when there is an actual alert for a real problem, but when selecting "Send Test Notifications" I am only getting the email now. I know it used to send SMS as well when hitting that button...didn't it? Going to the SMS tab and selecting the one check box and hitting update does send a test sms still. I may be completely dumb here and remembering wrong.

2.) While looking at my modem I saw a couple...let's say...colorful replies to sms messages. is there an easy way to search for phone numbers entered into the user's accounts so I can correct the typo/remove the #?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Multitech Component Questions

Post by tmcdonald »

Not sure about the first issue (somewhat sidetracked at the moment) but for the second you could run something like:

Code: Select all

SELECT contact_name,alias,pager FROM tbl_contact;
in the nagiosql db, then throw in a WHERE clause on the alias or whatever you want to search by. Bearing in mind of course that this will only search contacts, so if a user has no contact you'll miss out.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Multitech Component Questions

Post by BanditBBS »

Yeah, that isn't going to work for me. That table looks like the same data written to contacts.cfg file which doesn't have the cell phone numbers in it. They are only associated with the NagiosXI users, not the core contacts. They are added using the Multitech SMS component. I'm trying to figure out which database and table that is store in,m but not having much luck.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Multitech Component Questions

Post by tmcdonald »

Code: Select all

yum install -y most
psql nagiosxi nagiosxi
\o /tmp/psql.out
select * from xi_usermeta;
\q
most /tmp/psql.out
It's not pretty, but the data is there. One of the columns is a variable-length key/value disgusting mess which is not queryable via SQL. I was able to grep that output file for my own phone number and it worked.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Multitech Component Questions

Post by BanditBBS »

tmcdonald wrote:

Code: Select all

yum install -y most
psql nagiosxi nagiosxi
\o /tmp/psql.out
select * from xi_usermeta;
\q
most /tmp/psql.out
It's not pretty, but the data is there. One of the columns is a variable-length key/value disgusting mess which is not queryable via SQL. I was able to grep that output file for my own phone number and it worked.
So Trevor, what you are saying is I need to put in a feature request? 8-)

Go ahead and close this up, I'll put in a request and use this method for now(maybe).

edit: http://tracker.nagios.com/view.php?id=536
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Multitech Component Questions

Post by tmcdonald »

BanditBBS wrote:So Trevor, what you are saying is I need to put in a feature request?
That or brush up on your perl :D
Former Nagios employee
Locked