Performance data missing after changing nagios MySQL pasword

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Performance data missing after changing nagios MySQL pas

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Performance data missing after changing nagios MySQL pas

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Performance data missing after changing nagios MySQL pas

Post by tgriep »

Nope, changing the password has nothing to do with those settings.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Performance data missing after changing nagios MySQL pas

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Performance data missing after changing nagios MySQL pas

Post by rkennedy »

Glad to see this is resolved! As always, feel free to open a new thread if you ever need assistance.
Former Nagios Employee
Locked