Broke my nagios.cmd file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Broke my nagios.cmd file

Post 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.
Last edited by BanditBBS on Mon Dec 17, 2012 2:25 pm, edited 1 time in total.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Broke my nagios.cmd file

Post 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...
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Broke my nagios.cmd file

Post by BanditBBS »

My permissions are the same. :?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Broke my nagios.cmd file

Post 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 :)
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Broke my nagios.cmd file

Post 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!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Broke my nagios.cmd file

Post by BanditBBS »

reboot fixed it....no clue what happened.

Hate not knowing what was wrong!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Broke my nagios.cmd file

Post by CGraham »

Balancing "get my prod system up now" against "troubleshoot root cause to prevent re-occurance" is sordid business. Glad it's working.
Locked