Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check cpu
175424
File | Description |
---|---|
check_cpu.pl | Main check script |
misc.pm | Module with supporting functionality |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
The plugin can handle trigging on either total used CPU time (default) **or** total idle CPU time. It calculates a //5 second average// for each values which means that Idle% + Used% isn't always 100%.
All values are correctly calculated depending on the number of ticks per second the kernel uses and the number of CPUs present in the machine (No consideration is taken to the fact that it might not be a multi-processor machine but a uni-processor with Hyper Threading).
All values are correctly calculated depending on the number of ticks per second the kernel uses and the number of CPUs present in the machine (No consideration is taken to the fact that it might not be a multi-processor machine but a uni-processor with Hyper Threading).
Reviews (1)
1: Can't download the file; had to copy from browser and past it in vi
2: not enough instruction how to set it up and what it needs to run
3: no instructions on how to run it and pass parameters to it.
4: Doesn't which perl version it needs
I tried to run it and I got following line
I do have perl installed
nagios@wlnagios:~> which perl
/usr/bin/perl
nagios@wlnagios:~>
nagios@wlnagios:~> ./check_cpu.pl
Can't locate Getopt/Compact.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at ./check_cpu.pl line 5.
BEGIN failed--compilation aborted at ./check_cpu.pl line 5.
2: not enough instruction how to set it up and what it needs to run
3: no instructions on how to run it and pass parameters to it.
4: Doesn't which perl version it needs
I tried to run it and I got following line
I do have perl installed
nagios@wlnagios:~> which perl
/usr/bin/perl
nagios@wlnagios:~>
nagios@wlnagios:~> ./check_cpu.pl
Can't locate Getopt/Compact.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at ./check_cpu.pl line 5.
BEGIN failed--compilation aborted at ./check_cpu.pl line 5.