Re: Server Moving out from maintenance
Posted: Tue Nov 21, 2017 12:01 pm
@raamardhani7, Ok, memory looks fine. I'm attaching a plugin that runs through all defined checks in Nagios and figures out their execution time. That might be really helpful to figure out if there's a particular check/plugin that is not working correctly and is significantly slowing down/overloading the whole system.
The plugin is attached. Put it in the /usr/local/nagios/libexec/ folder. After that search your system for status.dat file location:
Copy the location path and replace it inside the plugin. Look for this line:
When it's done run
Now run the plugin
Please upload out.txt file here.
The plugin is attached. Put it in the /usr/local/nagios/libexec/ folder. After that search your system for status.dat file location:
Code: Select all
find / -name status.dat
Code: Select all
my $file="/var/log/nagios/status.dat";Code: Select all
chmod +x profile_nagios_executiontime.plCode: Select all
./profile_nagios_executiontime.pl > out.txt