Page 1 of 1

Check_files

Posted: Wed Oct 12, 2016 4:34 am
by bashar.abed
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

Re: Check_files

Posted: Wed Oct 12, 2016 10:26 am
by lmiltchev
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:

Code: Select all

ll /usr/local/nagiosxi/html/includes/utils-events.inc.php

Re: Check_files

Posted: Thu Oct 13, 2016 3:06 am
by bashar.abed
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

Re: Check_files

Posted: Thu Oct 13, 2016 10:14 am
by lmiltchev
kindly note this problem occurred just on one service not in all system
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.

Re: Check_files

Posted: Sun Oct 16, 2016 1:34 am
by bashar.abed
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

Re: Check_files

Posted: Mon Oct 17, 2016 9:12 am
by rkennedy
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.

Re: Check_files

Posted: Sun Oct 23, 2016 7:29 am
by bashar.abed
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

Re: Check_files

Posted: Mon Oct 24, 2016 11:42 am
by rkennedy
Will do!

/close