Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-20-2013, 12:05 PM
|
#1
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
nagios - nrpe: is it possible to establish warning/critical levels?
Hi!
I'm playing around with nagios. I've seen that it can monitor running processes, users, and other stuff through NRPE.
Now, when I see the definition to check for the server itself (locally) I see this definition:
Code:
define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Current Load
check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0
}
But the definition I have for another host using nrpe is like this:
Code:
define service {
use generic-service
host_name memcache
service_description CPU Load
check_command check_nrpe_1arg!check_load
}
Nothing about the warning/critital levels. If I check the definition of check_nrpe or check_nrpe_1arg there's no standard way to provide the warning/critital levels (or is there?). What's the solves-all-problems, everybody-uses-it work around for this situation?
Thanks in advance.
|
|
|
02-20-2013, 02:09 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
there's no "work around" at all, you just break out whatever commands you need to from the !one!two!three style syntax to -w $ARG1$ -c $ARG2$ etc., like every other command. Don't forget that this is all just a tiny wrapper around running arbitary shell commands. Nagios is painful basic and dumb in this area.
And NRPE is AWFUL (as is Nagios in general) If you want to use Nagios, I'd *very* strongly suggest you ditch check_nrpe for check_by_ssh and remove a nasty service from your network,
|
|
1 members found this post helpful.
|
02-20-2013, 03:37 PM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
Good to know. I'll give zenoss a look as well. Any other platforms I should try?
|
|
|
02-20-2013, 04:24 PM
|
#4
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
zabbix rocks my world. 
|
|
|
02-20-2013, 05:17 PM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
Well, I'm giving zenoss a test drive and I've hit a couple of bumps in the road till now (not the least the fact that it has to be built from source).
Last one looks like this (trying to add a cisco router):
Code:
Traceback (most recent call last):
File "/usr/local/zenoss/Products/DataCollector/zendisc.py", line 818, in
d = ZenDisc()
File "/usr/local/zenoss/Products/DataCollector/zendisc.py", line 72, in __init__
self.openPrivilegedPort('--ping')
File "/usr/local/zenoss/Products/ZenUtils/ZenDaemon.py", line 87, in openPrivilegedPort
os.execlp(*cmd)
File "/usr/local/zenoss/lib/python2.6/os.py", line 327, in execlp
execvp(file, args)
File "/usr/local/zenoss/lib/python2.6/os.py", line 344, in execvp
_execvpe(file, args)
File "/usr/local/zenoss/lib/python2.6/os.py", line 368, in _execvpe
func(file, *argrest)
OSError: [Errno 13] Permission denied
Job completed at 2013-02-20 17:14:18. Result: failure.
Given that zabbix comes from packages, I'll give it a round of testing as well.
|
|
|
02-21-2013, 04:59 PM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
Zabbix looks cool. I gave zenoss a look and though it looks kick-assy, having to do the compilation by hand (in ubuntu 32 bits) doesn't look like the way to go (in their wikis they say support for other distros is comming soon, debian and ubuntu in march... that would be a major thing to watch).... I have a couple of issues with zenoss yesterday and zabbix today. I think I'll stick with zabbix to see if it fits our needs.
|
|
|
All times are GMT -5. The time now is 07:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|