Check_files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Check_files

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_files

Post 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
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

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_files

Post 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.
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

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_files

Post 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.
Former Nagios Employee
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: Check_files

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_files

Post by rkennedy »

Will do!

/close
Former Nagios Employee
Locked