Page 3 of 3

Re: Performance data missing after changing nagios MySQL pas

Posted: Mon Nov 23, 2015 2:10 pm
by tgriep
The following 2 lines are commented out in the nagios.cfg file.

Code: Select all

#service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
#host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
Edit the /usr/local/nagios/etc/nagios.cfg file and un-comment those 2 lines.
Then restart nagios and npcd by running the following.

Code: Select all

service nagios restart
service npcd restart
That should fix the issue for you.

Re: Performance data missing after changing nagios MySQL pas

Posted: Mon Nov 23, 2015 2:16 pm
by eloyd
I will have to try that later, but no config file changes were made to change these values. Any reason why they would have suddenly changed coincidentally with the changing of the nagiosxi SQL password?

Re: Performance data missing after changing nagios MySQL pas

Posted: Mon Nov 23, 2015 5:06 pm
by tgriep
Nope, changing the password has nothing to do with those settings.

Re: Performance data missing after changing nagios MySQL pas

Posted: Tue Nov 24, 2015 9:31 am
by eloyd
Wow. Such simple fix. :-) Turns out SOMEONE did modify nagios.cfg in an effort to...I don't know, they won't confess to having made any changes, but I have two copies in my revision control system that clearly show those comments being added.

Thanks for all your effort in this. Close.

Re: Performance data missing after changing nagios MySQL pas

Posted: Tue Nov 24, 2015 10:44 am
by rkennedy
Glad to see this is resolved! As always, feel free to open a new thread if you ever need assistance.