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
SMS notifications not sending.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SMS notifications not sending.
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
Admin -> Manage Mobile Carriers
Re: SMS notifications not sending.
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
/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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SMS notifications not sending.
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.
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.
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SMS notifications not sending.
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
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