Problem
The client receives a notification in the personal account web interface stating You have been charged for resource overage, even though the corresponding message template is disabled.
The following warnings in billmgr.log confirm that the template is disabled or empty:
notify WARNING For message template notice 'stat_expense' and module 'ntemail' not active found XSLT-template
notify WARNING For message template '67' and module 'ntinternal' XSLT-template is emptyCause
When an expense is created for a service with usage-based charges, the platform generates an internal notification for the client's personal account. This notification is created regardless of the status of the message templates. Message templates control only external notification channels (email, SMS, and messengers). They do not affect internal notifications.
Diagnostics
To confirm the cause:
- In the web interface, open the client's personal account and check whether the You have been charged for resource overage is displayed.
- Check the notification log:
- Connect to the server running the platform via SSH. For more information, see Workstation setup.
- Run the following command:
grep notify /usr/local/mgr5/var/billmgr.log | grep "CLIENT_ID"Comment:
CLIENT_ID— an actual client ID. The billmgr.log file contains entries for all clients, so filtering by client ID helps locate the relevant entries.
- Check for the following warnings:
For message template notice 'stat_expense' and module 'ntemail' not active found XSLT-template For message template '67' and module 'ntinternal' XSLT-template is empty
If the notification is displayed in the web interface and the log contains warnings indicating that the stat_expense template is inactive or empty, the issue is confirmed.
Keep the following in mind:
- log rotation. BILLmanager automatically rotates logs when they reach the configured size limit. For more information, see How to optimize platform logs.
- logging level. It determines the amount of detail recorded in the logs. For more information, see Logging in BILLmanager in the BILLmanager documentation.
Solution
To resolve the issue, change the global setting that controls statistics notifications:
- Go to Provider → Global settings → Statistics-based → the Send notification option.
- Select on credit.
- Click Ok.
After that, statistics notifications will be generated only when both of the following conditions are met:
- an expense has been created.
- the client's balance is negative.
En
Es