Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there currently anyway to monitor CPU usage with Nagios3 that doesn't involve SNMP setup? I want to setup notifications if I'm going above a certain threshold, such as 55% of the CPU time is being used up by the system.

share|improve this question
    
Curious-- why not just use snmp? –  user13456 Feb 12 '10 at 22:32
add comment

2 Answers

up vote 4 down vote accepted

The only other way other than SNMP to get remote information off a system that isn't checking a network based service (ie- HTTP, SMTP, POP, etc) is to use NRPE which means installing the NRPE daemon on the client machine and configuring the checks you want to be able to run locally over NRPE. NRPE uses SSL to communicate between machines over a port, 5666 by default, and can run any Nagios plugin locally on the client and transmit the result back to Nagios as if it had been run on the Nagios server.

share|improve this answer
    
That's very useful, I'll have to check into that! –  Josh Feb 12 '10 at 15:54
    
We run the NRPE daemon on all of our servers. Pretty simple to build and install when you follow the instructions. –  steve.lippert Feb 12 '10 at 15:54
add comment

I have Nagios configured to check available disk space and free memory using HTTP monitoring and regexes instead of SNMP. I have a PHP script on the servers that prints the free disk space or free memory, and I use Nagios' HTTP monitoring to make sure the result matches [0-8][0-9]\% to make sure I'm under 90% usage.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.