Page 1 of 1
SMS notifications not sending.
Posted: Tue Mar 27, 2012 5:47 pm
by epx998
Hi All,
I am trying to get NagiosXI sending out SMS notifications to mobile phones and they are not sending out. I have tried
[email protected] on the pager field and additional email address field. Is there anything I would need to change in the notification commands?
Gavin
Re: SMS notifications not sending.
Posted: Wed Mar 28, 2012 7:25 am
by scottwilkerson
I'm not sure what field you are using that is labeled Pager field. Our Mobile text, you enter the number and select the provider. If you need to add providers you can do so under
Admin -> Manage Mobile Carriers
Re: SMS notifications not sending.
Posted: Wed Mar 28, 2012 2:00 pm
by epx998
In the contact settings, there is a field called "Pager Number". Should a cell number such as,
[email protected] be entered there, or in the 'Addon address 1' field? Do I need to add $CONTACTADDRESSx$ to the notification line if I do use the additional address. If so, where would I add it? Seems I do need to add in the variable, but I am not exactly sure what the correct syntax would be, do I just add it to the end?
/usr/bin/printf "%b" "***** NagiosXI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
Cheers
Re: SMS notifications not sending.
Posted: Wed Mar 28, 2012 3:24 pm
by scottwilkerson
Is this an XI user or just a core contact?
What is set as the Host command?
What is set as the Service command?
If it is an XI user you shouldn't need to mess with this at all, the phone number can be set in the users Notification Methods of the XI interface.
Re: SMS notifications not sending.
Posted: Wed Mar 28, 2012 7:08 pm
by epx998
As I mentioned, its NagiosXI. I was able to work around the issue, but it exposes some serious flaws in the design of NagiosXI.
When you edit contacts, there are options for additional notification emails. However, the commands don't even read them. You have to edit the commands to include the variables for the other fields, but the ? button never even mentions that.
When you view the control panel as a user, you can enable/disable SMS notifications. You cannot do this as an admin, editing contacts or users. You have to masquerade as a user and add in SMS through their CP.
When in 'Contact Groups' and you add a contact to a contact group, it is not reflected in that users 'Contacts' info. You click on groups and it is empty. <-- This happens with hosts groups, service groups etc..
Another thing I noticed, when creating service templates, or any templates, you cannot search critera to get to a template faster. If you have 100 service templates, you have to click next over and over hoping you notice the template.
Ok, this is more a rant reply, just a bit disappointed with what I am seeing. Doesn't look like QA did its job here.
Re: SMS notifications not sending.
Posted: Thu Mar 29, 2012 9:10 am
by scottwilkerson
All of your point are well taken. As a matter of fact development had begun on revamping the UI in the CCM. It is beta, but you can actually download it as a component and run in along side of the current CCM.
There are still bugs and anomalies being worked out and improved, but I think the new one will address most if not all of your concerns.
http://support.nagios.com/forum/viewtop ... ccm#p23071