Hi,
i am new administrator at Nagios System,i added new logfiles on one of node and checked it ,it is ok but the SMS and email doesn't send from Nagios System
Check_files
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Check_files
What is the Nagios XI version that you are currently using? Are you using one of our "pre-build" VMs or you used our source installer? When did you download/install XI?
Go to Admin->Manage Email Settings, and show a screenshot of this page. Also, click on the username in the upper right corner, click on "Notification Preferences", then on "Notification Methods", and show screenshots of both pages (show both, the "Email", and "Mobile Text(SMS) tabs). Hide sensitive info.
Run the following command, and show the output:
Go to Admin->Manage Email Settings, and show a screenshot of this page. Also, click on the username in the upper right corner, click on "Notification Preferences", then on "Notification Methods", and show screenshots of both pages (show both, the "Email", and "Mobile Text(SMS) tabs). Hide sensitive info.
Run the following command, and show the output:
Code: Select all
ll /usr/local/nagiosxi/html/includes/utils-events.inc.phpBe sure to check out our Knowledgebase for helpful articles and solutions!
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Check_files
my version is 5.2.9 and installed in VM, it installed at along time
[root@nms ~]# ll -h /usr/local/nagiosxi/html/includes/utils-events.inc.php
-rwxr-x--- 1 nagios nagios 21K Aug 24 08:45 /usr/local/nagiosxi/html/includes/utils-events.inc.php
kindly note this problem occurred just on one service not in all system
[root@nms ~]# ll -h /usr/local/nagiosxi/html/includes/utils-events.inc.php
-rwxr-x--- 1 nagios nagios 21K Aug 24 08:45 /usr/local/nagiosxi/html/includes/utils-events.inc.php
kindly note this problem occurred just on one service not in all system
You do not have the required permissions to view the files attached to this post.
Re: Check_files
In this case, can you post the config files for the service, the templates this service is using, and for the monitoring contacts/contactgroups added to it? Hide sensitive info.kindly note this problem occurred just on one service not in all system
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Check_files
please see the below config file about contact/contactgroup
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
kindly note that after i created new service with same device it is work normally
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
kindly note that after i created new service with same device it is work normally
Re: Check_files
That looks like the notification command, could you post the service definition for the one that is NOT working? While you're at it, post the configuration for the working one too that you just created, as this will give us a comparison.
Former Nagios Employee
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Check_files
hi ,
i removed the services and add new one , i can't send you the previous service , it is running now ,
you can close this case thanks you
i removed the services and add new one , i can't send you the previous service , it is running now ,
you can close this case thanks you