Nagios XI 2014R1.1 No more SNMP Traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
mlopez
Posts: 62
Joined: Fri Oct 19, 2012 11:35 am

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

Post 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]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mlopez
Posts: 62
Joined: Fri Oct 19, 2012 11:35 am

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

Post 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]#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
mlopez
Posts: 62
Joined: Fri Oct 19, 2012 11:35 am

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

Post 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]#
Locked