Page 2 of 2

Re: Nagios XI 2014R1.1 No more SNMP Traps

Posted: Mon Jun 09, 2014 2:17 pm
by tmcdonald
What OS are you running? If this post from December is any indication there might be issues with systems other than CentOS/RHEL.

Re: Nagios XI 2014R1.1 No more SNMP Traps

Posted: Tue Jun 10, 2014 11:45 am
by mlopez
Hi tmcdonald,
Below is the OS I'm running which seems to be the same distro + version as the other thread :/

Code: Select all

[root@NagiosXI nagios]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@NagiosXI nagios]#

Re: Nagios XI 2014R1.1 No more SNMP Traps

Posted: Wed Jun 11, 2014 9:16 am
by scottwilkerson
mlopez wrote:Hi Scott,
...
What I found scott is that when I stop nagios with "service nagios stop" nagios.cmd is not deleted

- Michael
It will only be deleted if it is the pipe that was created when it started.
mlopez wrote:I'm at a loss now as everytime I reboot or apply a change I'm going to manually need to create the file as every time the file gets created it's the wrong permissions "nagios nagcmd".
"nagios nagcmd" is the correct permissions!

Re: Nagios XI 2014R1.1 No more SNMP Traps

Posted: Wed Jun 11, 2014 11:21 am
by mlopez
Hi Scott,
I must a mistyped on my previous comment, every time I restart nagios it creates this cmd permissions

Code: Select all

[root@NagiosXI etc]# ll /usr/local/nagios/var/rw/nagios.cmd
-rw-rw-r-- 1 root nagcmd 726 Jun  4 23:03 /usr/local/nagios/var/rw/nagios.cmd
[root@NagiosXI etc]#

Re: Nagios XI 2014R1.1 No more SNMP Traps

Posted: Wed Jun 11, 2014 9:44 pm
by sreinhardt
I had this same issue today with another customer. While I am not 100% sure why it is being created that way, the way we resolved it was:

Code: Select all

chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmd
service nagios restart
Upon restarting nagios, and through several apply configs this both recreated the file as a command pipe(which yours is not presently) and kept the proper permissions. The biggest issue right now is that nagios.cmd is not a command pipe, denoted by a p at the beginning of your permissions, having it owned as root:nagios should be just fine for all applications at this time.

Re: Nagios XI 2014R1.1 No more SNMP Traps

Posted: Fri Jun 13, 2014 3:45 am
by mlopez
Hi Spenser,
You sir are a genius ;), after "applying the configuration" 3 to 4 times it now writes the permissions properly without the need of my home made command :). Maybe it was something to do with the upgrade from 2012 to 2014 who knows.

You may close this Thread as issue has been resolved.

Code: Select all

[root@NagiosXI rw]# ll
total 0
prw-rw---- 1 nagios nagcmd 0 Jun 13 04:45 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jun 13 04:38 nagios.qh
[root@NagiosXI rw]#