Nagios XI 2014R1.1 No more SNMP Traps
Re: Nagios XI 2014R1.1 No more SNMP Traps
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
Re: Nagios XI 2014R1.1 No more SNMP Traps
Hi tmcdonald,
Below is the OS I'm running which seems to be the same distro + version as the other thread :/
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
It will only be deleted if it is the pipe that was created when it started.mlopez wrote:Hi Scott,
...
What I found scott is that when I stop nagios with "service nagios stop" nagios.cmd is not deleted
- Michael
"nagios nagcmd" is the correct permissions!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".
Re: Nagios XI 2014R1.1 No more SNMP Traps
Hi Scott,
I must a mistyped on my previous comment, every time I restart nagios it creates this cmd permissions
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
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:
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.
Code: Select all
chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmd
service nagios restartNagios-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.
Re: Nagios XI 2014R1.1 No more SNMP Traps
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.
You sir are a genius
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]#