LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2013, 12:05 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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.
 
Old 02-20-2013, 02:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
Old 02-20-2013, 03:37 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Good to know. I'll give zenoss a look as well. Any other platforms I should try?
 
Old 02-20-2013, 04:24 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
zabbix rocks my world.
 
Old 02-20-2013, 05:17 PM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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.
 
Old 02-21-2013, 04:59 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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.
 
  


Reply

Tags
levels, nagios, nrpe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios NRPE DISK CRITICAL - is not accessible: No such file or directory deibertine Linux - General 1 01-13-2013 10:38 PM
[SOLVED] Nagios/NRPE jrb328 Linux - Software 3 05-30-2012 09:57 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 09:43 AM
Nagios - warning and critical alerts to different email address sp149 Linux - Newbie 1 12-18-2009 01:52 PM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration