[Nagios-users] Nagios Graph not displaying correct values

2011-12-13 Thread James Osbourn
I have a weird situation where the Nagios Graph values are not the actual 
values for a filesystem

Eg I have a filesystem and if I run a df I get

$ df -h .
FilesystemSize  Used Avail Use% Mounted on
filer01:/vol/data1443G  400G   44G  91% /mnt/filer01_data1

If I run the Nagios check_disk command I get the correct values

# ../libexec/check_disk -w 10% -c 5% -p /usr/groups/sources
DISK WARNING - free space: /usr/groups/sources 44073 MB (9% inode=48%);| 
/usr/groups/sources=409354MB;408084;430755;0;453427

But when you look at the graph the figures are all wrong



Has anyone else seen this?  I was going to look at the usage to try and 
forecast usage but it will now be very hard.  I have just installed Nagios 
Graph based on the default installation and using the default check_disk plugin.

Thanks

James


inline: Picture (Device Independent Bitmap) 1.jpg--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Graph not displaying correct values

2011-12-13 Thread Claudio Kuenzler
Some of the default Nagiosgraph map entries are strange and behave not as
expected.
I basically replaced all the existing entries by own ones.

If you like you can use the following one:

# Service Type: check_disk
# Nagiosgraph regex by Claudio Kuenzler
# Check: /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /
# Output: DISK OK - free space: / 235120 MB (66% inode=95%):
# Perfdata: /=119211MB;298635;335964;0;373294
/perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/
#/perfdata:(\W)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ # only / partition
and push @s, [diskusage,
['used', GAUGE, $2*1000**2 ],
['total', GAUGE, $6*1000**2 ] ];

Note that this is a very basic graph which shows the total and current
partition usage. Feel free to modify it :-)

On Tue, Dec 13, 2011 at 11:41 AM, James Osbourn james.osbo...@citrix.comwrote:

  I have a weird situation where the Nagios Graph values are not the
 actual values for a filesystem

 Eg I have a filesystem and if I run a df I get

 $ df -h .
 FilesystemSize  Used Avail Use% Mounted on
 filer01:/vol/data1443G  400G   44G  91% /mnt/filer01_data1

 If I run the Nagios check_disk command I get the correct values

 # ../libexec/check_disk -w 10% -c 5% -p /usr/groups/sources
 DISK WARNING - free space: /usr/groups/sources 44073 MB (9% inode=48%);|
 /usr/groups/sources=409354MB;408084;430755;0;453427

 But when you look at the graph the figures are all wrong


 Has anyone else seen this?  I was going to look at the usage to try and
 forecast usage but it will now be very hard.  I have just installed Nagios
 Graph based on the default installation and using the default check_disk
 plugin.

 Thanks

 James




 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] SELinux and RHEL6.2 preventing disk checks via NRPE

2011-12-13 Thread Trond Hasle Amundsen
Dennis Kuhlmeier kuhlme...@riege.com writes:

 Geez, there are a lot more contexts set than I thought. I should
 probably remove duplicate entries, right?

The labels in

  /etc/selinux/targeted/contexts/files/file_contexts

is there by default and these should not be touched. The file

  /etc/selinux/targeted/contexts/files/file_contexts.local

contains local additions or adjustments. If there are entries there that
you think ought to be removed, you should remove them with:

  semanage fcontext -d 'entry'

Don't edit the file directly :)

Cheers,
-- 
Trond H. Amundsen t.h.amund...@usit.uio.no
Center for Information Technology Services, University of Oslo

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Jonathan Aquilina
hey guys im having permissions issues and getting the following message

Cannot open/overwrite the configuration file (check the permissions)!

i did some googling and game up with 
http://www.nagiosql.org/forum/installation-issues/195-permissions.html

should i have some template config files somehwere? From what I am 
seeing i do not have any demo configs showing up anywhere

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Mike Guthrie
On 12/13/2011 10:11 AM, Jonathan Aquilina wrote:
 hey guys im having permissions issues and getting the following message

 Cannot open/overwrite the configuration file (check the permissions)!
Take a look at the permissions on the files in the nagios/etc 
directory.  Apache needs RWX permissions on those files in order to be 
able to manage them.


 i did some googling and game up with
 http://www.nagiosql.org/forum/installation-issues/195-permissions.html

 should i have some template config files somehwere? From what I am
 seeing i do not have any demo configs showing up anywhere

 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null


-- 


Mike Guthrie
Technical Team
___
Nagios Enterprises, LLC
Email:  mguth...@nagios.com
Web:www.nagios.com


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Jonathan Aquilina
On 13/12/2011 17:24, Mike Guthrie wrote:
 On 12/13/2011 10:11 AM, Jonathan Aquilina wrote:
 hey guys im having permissions issues and getting the following message

 Cannot open/overwrite the configuration file (check the permissions)!
 Take a look at the permissions on the files in the nagios/etc
 directory.  Apache needs RWX permissions on those files in order to be
 able to manage them.

 i did some googling and game up with
 http://www.nagiosql.org/forum/installation-issues/195-permissions.html

 should i have some template config files somehwere? From what I am
 seeing i do not have any demo configs showing up anywhere

 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

I set the permissions for everythign in that directory to 775 what 
should the user and group be right now they are set to nagios group and user


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How to monitor memory on cisco router

2011-12-13 Thread moses neah
Hi all,
Where can I find a plugin to monitor cisco routers memory. I got the one that 
monitors CPU, fan and temperature.
--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Mike Guthrie
On 12/13/2011 10:31 AM, Jonathan Aquilina wrote:
 On 13/12/2011 17:24, Mike Guthrie wrote:
 On 12/13/2011 10:11 AM, Jonathan Aquilina wrote:
 hey guys im having permissions issues and getting the following message

 Cannot open/overwrite the configuration file (check the permissions)!
 Take a look at the permissions on the files in the nagios/etc
 directory.  Apache needs RWX permissions on those files in order to be
 able to manage them.

 i did some googling and game up with
 http://www.nagiosql.org/forum/installation-issues/195-permissions.html

 should i have some template config files somehwere? From what I am
 seeing i do not have any demo configs showing up anywhere

 I set the permissions for everythign in that directory to 775 what
 should the user and group be right now they are set to nagios group and user
Some people might have this set differently, but on my system all of the 
nagiosql files are owned by apache.  The apache user is part of the 
nagios group, and the config files are owned by apache:nagios.



 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null


-- 


Mike Guthrie
Technical Team
___
Nagios Enterprises, LLC
Email:  mguth...@nagios.com
Web:www.nagios.com


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Jim Avery
On 13 December 2011 16:11, Jonathan Aquilina eagles051...@gmail.com wrote:
 hey guys im having permissions issues and getting the following message

 Cannot open/overwrite the configuration file (check the permissions)!

 i did some googling and game up with
 http://www.nagiosql.org/forum/installation-issues/195-permissions.html

 should i have some template config files somehwere? From what I am
 seeing i do not have any demo configs showing up anywhere

On my system, the user www-data (the apache web server user) is
added to the nagios group.  So, in the /etc/group file we have:-

nagios:x:1001:www-data

If www-data (or whichever user your Apache daemon runs as) isn't in
the 'nagios' group, you should be able to add it something like so ..

  usermod -G nagios www-data

hth,

Jim

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to monitor memory on cisco router

2011-12-13 Thread Jim Avery
On 13 December 2011 16:41, moses neah mssn...@yahoo.com wrote:
 Hi all,
 Where can I find a plugin to monitor cisco routers memory. I got the one
 that monitors CPU, fan and temperature.


I haven't tried it myself, but this one should do the trick:-

http://nagios.manubulon.com/snmp_mem.html

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to monitor memory on cisco router

2011-12-13 Thread Jonny Mosco
Nagios exchange.

http://exchange.nagios.org/

You can use check_snmp as well.



On Tue, Dec 13, 2011 at 11:41 AM, moses neah mssn...@yahoo.com wrote:

 Hi all,
 Where can I find a plugin to monitor cisco routers memory. I got the one
 that monitors CPU, fan and temperature.


 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Jonathan Aquilina
On 13/12/2011 17:40, Mike Guthrie wrote:
 On 12/13/2011 10:31 AM, Jonathan Aquilina wrote:
 On 13/12/2011 17:24, Mike Guthrie wrote:
 On 12/13/2011 10:11 AM, Jonathan Aquilina wrote:
 hey guys im having permissions issues and getting the following message

 Cannot open/overwrite the configuration file (check the permissions)!
 Take a look at the permissions on the files in the nagios/etc
 directory.  Apache needs RWX permissions on those files in order to be
 able to manage them.

 i did some googling and game up with
 http://www.nagiosql.org/forum/installation-issues/195-permissions.html

 should i have some template config files somehwere? From what I am
 seeing i do not have any demo configs showing up anywhere

 I set the permissions for everythign in that directory to 775 what
 should the user and group be right now they are set to nagios group and user
 Some people might have this set differently, but on my system all of the
 nagiosql files are owned by apache.  The apache user is part of the
 nagios group, and the config files are owned by apache:nagios.


 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

All is fine on nagios front end but the problem im having still with the 
above mentioned permission msg. What else coudl possibly be the issue?

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] permissions issues with nagiosql

2011-12-13 Thread Jonathan Aquilina
On 13/12/2011 17:46, Jim Avery wrote:
 On 13 December 2011 16:11, Jonathan Aquilinaeagles051...@gmail.com  wrote:
 hey guys im having permissions issues and getting the following message

 Cannot open/overwrite the configuration file (check the permissions)!

 i did some googling and game up with
 http://www.nagiosql.org/forum/installation-issues/195-permissions.html

 should i have some template config files somehwere? From what I am
 seeing i do not have any demo configs showing up anywhere
 On my system, the user www-data (the apache web server user) is
 added to the nagios group.  So, in the /etc/group file we have:-

 nagios:x:1001:www-data

 If www-data (or whichever user your Apache daemon runs as) isn't in
 the 'nagios' group, you should be able to add it something like so ..

usermod -G nagios www-data

 hth,

 Jim

 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null
Thanks Jim I already did that but still having issues with the error 
message above when working with nagiosql :(

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Custom perl plugin doesn't work

2011-12-13 Thread Zach La Celle
The error, when I attempt to run it from the monitoring machine, is:
NRPE: Command 'blah' not defined

The command IS defined in /etc/nagios/nrpe.cfg on the target machine.
The command is ALSO defined in /etc/nagios-plugins/config/blah.cfg on
the target machine.
I restarted nagios-nrpe-server after adding the command.

I'm calling it from my monitoring server with
/usr/lib/nagios/plugins/check_nrpe -H hostaddress -c blah

When I run the perl script myself, it works fine.

Any ideas?  All of my other checks for this host work.

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Custom perl plugin doesn't work

2011-12-13 Thread mail
On Tue, Dec 13, 2011 at 4:46 PM, Zach La Celle
lace...@roboticresearch.comwrote:

 The error, when I attempt to run it from the monitoring machine, is:
 NRPE: Command 'blah' not defined

 The command IS defined in /etc/nagios/nrpe.cfg on the target machine.
 The command is ALSO defined in /etc/nagios-plugins/config/blah.cfg on
 the target machine.


Is '/etc/nagios-plugins/config/blah.cfg' linked in your Nrpe commands
config?

Can you run the command via check_nrpe on the local (target) machine?

Only time I saw a command not getting picked up by nrpe was when I had
started nrpe twice!
and as such was only restarting the second one which had not bound to the
interface of course.

Ritchie
 --
-- http://23.me.uk/2 --
--Time flies like an arrow; fruit flies like a banana.  --

 I restarted nagios-nrpe-server after adding the command.

 I'm calling it from my monitoring server with
 /usr/lib/nagios/plugins/check_nrpe -H hostaddress -c blah

 When I run the perl script myself, it works fine.

 Any ideas?  All of my other checks for this host work.


 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Custom perl plugin doesn't work

2011-12-13 Thread Zach La Celle
I'm not sure exactly what you mean.  On the monitor machine, there's 
only the blah.cfg file in '/etc/nagios-plugins/config/blah.cfg'.  I 
didn't even think that this was necessary, since it's really just 
running check_nrpe_1arg (which is defined in 
/etc/nagios-plugins/config/check_nrpe.cfg) and passing in the name of 
the command to the remote host.


On the remote host, it has the blah command defined in 
/etc/nagios/nrpe.cfg, as such:

command[blah]=/usr/lib/nagios/plugins/blah.pl

So, it should call check_nrpe on the monitoring host, which uses the 
nrpe-server to attempt to run the command through the remote host.  
Since the command is listed in nrpe.cfg on the remote host, it should 
see it there, run the actual perl script listed there, and return the 
output.


On 12/13/2011 12:53 PM, m...@catsnest.co.uk wrote:




On Tue, Dec 13, 2011 at 4:46 PM, Zach La Celle 
lace...@roboticresearch.com mailto:lace...@roboticresearch.com wrote:


The error, when I attempt to run it from the monitoring machine, is:
NRPE: Command 'blah' not defined

The command IS defined in /etc/nagios/nrpe.cfg on the target machine.
The command is ALSO defined in /etc/nagios-plugins/config/blah.cfg on
the target machine.


Is '/etc/nagios-plugins/config/blah.cfg' linked in your Nrpe commands 
config?


Can you run the command via check_nrpe on the local (target) machine?

Only time I saw a command not getting picked up by nrpe was when I had 
started nrpe twice!
and as such was only restarting the second one which had not bound to 
the interface of course.


Ritchie
 --
-- http://23.me.uk/2 --
--Time flies like an arrow; fruit flies like a banana.  --

I restarted nagios-nrpe-server after adding the command.

I'm calling it from my monitoring server with
/usr/lib/nagios/plugins/check_nrpe -H hostaddress -c blah

When I run the perl script myself, it works fine.

Any ideas?  All of my other checks for this host work.


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and
improve service delivery. Take 5 minutes to use this Systems
Optimization
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
mailto:Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null




--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and
improve service delivery. Take 5 minutes to use this Systems Optimization
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/


___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


--
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Cluster with Load Balancing and High Availability

2011-12-13 Thread Aravind M D

Quoting Andreas Ericsson a...@op5.se:

On 08/26/2011 11:05 AM, Aravind M D wrote:

   Hi
  
   I need to configure two physical servers as active-active cluster and
   configure Loadbalancing with High availabiltiy for Nagios.
  
   Can somebody help me how to achieve this.
  
   I have checked some of loadbalancing modules like mod_gearmen,
merlin and
   DNX. If any one knows about the difference between these
modules please let
   me know.
  
  
   If you want loadbalancing with takeover capabilities, Merlin is your only
   choice. The other two rely on a single Nagios instance to do
scheduling and
   notifications. If that instance crashes, mod_gearman and DNX
can't help you
   get any info at all.
  
   It might be possible to couple them so that mod_gearman and Merlin work
   together, but you'd be entering unknown territory with that mix
and I would
   be quite surprised if it worked completely without problems the
first time
   you try it.
  
   

I like to use merlin for laodbalancing and high availability Nagios setup.
I have checked the Merlin webpage i can see last release was on 2010-06-18
after that no new releases. But when i checked the git repository i can
see latest version is v1.1.12 whether i can use this version for
producation environment if so how can i get this version.

Thanks in advance

- Aravind
--
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits? 
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] How to monitor memory on cisco router

2011-12-13 Thread Claudio Kuenzler
I've made good experience with check_cisco.pl by Ran Leibman:

https://github.com/ranl/IT/blob/master/Nagios/check-cisco.pl

You have to be aware though, that by default the memory check works
backwards - meaning you must define at how many percent of memory _LEFT_
you want the warning.
But it's easy to rewrite the warning/critical section in the plugin to set
the threshold to the actual usage (e.g. warning at 80%, critical at 90%),
that's what I did for my purposes.

On Tue, Dec 13, 2011 at 5:52 PM, Jonny Mosco jonny.mo...@gmail.com wrote:

 Nagios exchange.

 http://exchange.nagios.org/

 You can use check_snmp as well.



 On Tue, Dec 13, 2011 at 11:41 AM, moses neah mssn...@yahoo.com wrote:

 Hi all,
 Where can I find a plugin to monitor cisco routers memory. I got the one
 that monitors CPU, fan and temperature.


 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null




 --
 Systems Optimization Self Assessment
 Improve efficiency and utilization of IT resources. Drive out cost and
 improve service delivery. Take 5 minutes to use this Systems Optimization
 Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

--
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits? 
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null