[Nagios-users] Where to store plugins in a standard nagios3 installation

2010-06-22 Thread sandma...@libero.it
Hi,

I'm testing nagios 3 on ubuntu 10.04.

I've downloaded a plugin from nagios exchange, but where the file must be in 
order to be run?

Particularly, I've downloaded check_cisco.pl from nagios exchange, and I've 
put it in /usr/lib/nagios/plugins
I've also given a chmod 0755, and chown root:root.

The problem is taht it is not recognized, i.e. in a .cfg file I've used it as   


  check_command .pl check_cisco -h $HOSTADDRESS$ -c public -i BRI0

but when I do a

  /etc/init.d/nagios3 restart

I have the following error:

  Error: Host check command 'check_cisco.pl -h $HOSTADDRESS$ -c public -i 
BRI0/0/0:1' specified for host 'ISDNRouter' is not defined anywhere!

What have I done wrong

Thanks in advance

Francesco





--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Monitoring traffic

2010-06-29 Thread sandma...@libero.it
Hi,

I'd need to keep traffic on a UMTS router monitored, i.e. I'd need to set up 
something that counts bytes passed and gives an alarm when a particular 
thresold is reached.

The router gives no SNMP information about it.

Is there any other way to do that with nagios?

Thanks


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] R: Re: Monitoring traffic

2010-06-29 Thread sandma...@libero.it
>Messaggio originale
>Da: j...@jimavery.me.uk
>Data: 29/06/2010 14.51
>> The router gives no SNMP information about it.
>What options are available to you for querying the counter on the router?

It is possible to send a string from the router to a particular port of a 
remote server.

Is there any way to make nagios act as a tcp server so it receives 
notifications about it?

Thanks


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Acquiring data from a log

2010-09-20 Thread sandma...@libero.it
Hi,

I need to acquire data from a log, parse if and, if a particular condition is 
met, notify the problem, otherwise just have on nagios the condition. I.e. if 
number of record (parsed from log) exceeds 1000, trigger an email, otherwise 
just have on nagios web page "Processed 123 records"

I have written a script that extracts and parse the data, so I can do inside 
it

if [ $RESULT = 0 ]
then
echo "No records processed"
exit 0
elif [ $RESULT -gt $THRESOLD ]
then
echo "CRITICAL: $RESULT records processed"
exit 2 
else 
echo "NORMAL: $RESULT records processed"
exit 0
fi

where RESULT is the result of the computation and $THRESOLD is passed on 
command line.

I have the following questions:

1) How can I see whether the command is run?
2) How can I see which results are passed to nagios?
3) How can I pass both exit values and the string echoed?

Thanks for your help



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] R: Re: Acquiring data from a log

2010-09-20 Thread sandma...@libero.it
>Messaggio originale
>Da: be...@bennyvision.com
>Data: 20/09/2010 15.12

>Wow.  Check out Consul Labs' check_logfiles plugin.  Don't re-invent
>the wheel if you can avoid it.

Sure, but it's too complicate for me, and I'm not a perl guru.
Anyway, the script is ready and works when run from command line.

>> 3) How can I pass both exit values and the string echoed?
>echo "This is output that will show up in the Nagios web UI"
>exit 3

Why returning 3, i.e. STATE_UNKNOWN

Basically, what I need is to look on the host detail web page and have the 
number of the processed records. Then, if this value exceeds a limit, that 
could be passed via command line, the script exits with exit value 2 = 
STATE_CRITICAL in nagios. Otherwise it exits with 0 = STATE_OK.

How can I do this, provided that I have a working script that gives me those 
values?

Ciao

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Handling different states

2010-09-20 Thread sandma...@libero.it
Hi all,

I've written a plugin that looks for number of record processed. If they are 
below the thresold, it writes to stdout 'All OK' and exit with code 0. If thet 
are above it writes "Too many records" and exits with code 2, and this event 
triggers a mail notification with Down as problem, and "Too many records" as 
info.

All is working fine.

What I'd need is to handle a third situation: no records processed. Assuming I 
may trigger the condition in the same script:

1) How can I notify Nagios of this event? Using a different exit code?
2) How can I modify Nagios notification, so I don't have a problem Down, but 
something else, say "Resource hog"?

Thanks

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Trigger notification mail

2010-09-24 Thread sandma...@libero.it
Hi, 

I have written a plugin that counts the number of transaction on a system and 
sends a notification mail if this number exceeds a thresold.

I'd like to trigger an email that on a daily basis sends the number of 
transaction, whatever the number is, i.e. a scheduled event.

Is this possible?

I have thought I could use scheduled downtimes, but AFAIK there is no way to 
say "scheduled downtime is every day".

Therefore, how can I achieve this, i.e. how can I trigger a notification every 
day, regardless of the status?

Thanks

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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