Page 1 of 1
Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 1:47 pm
by BanditBBS
While messing with my snmp trap stuff, I seem to somehow have broken my nagios.cmd file. Traps are no longer being written to it and if doing something via the XI interface that doesn't seem to be writing to it either.
Re: Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 1:56 pm
by CGraham
Permissions? Here's what mine looks like:
Code: Select all
[root@ATL02PRDMGMT03 ~]# ll /usr/local/nagios/var/rw/
total 4
prw-rw---- 1 nagios nagcmd 0 Dec 17 13:54 nagios.cmd
I'm using the VM appliance though...
Re: Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 1:59 pm
by BanditBBS
My permissions are the same.

Re: Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 2:06 pm
by CGraham
Type "history" into the command line and post what you did?
Post any errors from "tail /usr/local/nagios/var/nagios.log"
Reboot

Re: Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 2:15 pm
by BanditBBS
CGraham wrote:Type "history" into the command line and post what you did?
Post any errors from "tail /usr/local/nagios/var/nagios.log"
Reboot

No errors in the log. The weird things is, when I issue a command within NagiosXI, it says "Command processed successfully" but it is not.
Also, I'd show my history, except all I'm doing is modifying snmptt.conf, restarting snmptt service and modifying a python script, that's it.
Restarting the box now, I'm at that point!
Re: Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 2:19 pm
by BanditBBS
reboot fixed it....no clue what happened.
Hate not knowing what was wrong!
Re: Broke my nagios.cmd file
Posted: Mon Dec 17, 2012 2:23 pm
by CGraham
Balancing "get my prod system up now" against "troubleshoot root cause to prevent re-occurance" is sordid business. Glad it's working.