[Nagiosplug-help] URGENT help required
kyle smith
kyles at apple.com
Thu Jul 31 15:55:32 CEST 2008
You can write your own plugin (in almost any language) to check for
those conditions and return the proper error code and text string.
It's easy!
#!/bin/ksh
< insert your code to check conditions and set the
performance_counter variable here >
if [[ $performance_counter -eq 2 ]]; then
print "System OK"
exit 0
fi
if [[ $performance_counter -eq 0 ]]; then
print "System critical"
exit 2
fi
good luck
kyle
On Jul 31, 2008, at 1:02 AM, Saiprasad Sanzgiri wrote:
> Dear Team,
>
> I have a specific requirement from my customer, wherein there is a
> service which states that if the performance counter value is 2
> then the service is running fine and if it reaches 0, then there is
> a failure of the service.
>
> As per Nagios, the Critical threshold should be always higher then
> the Warning threshold, hence in this case it is reverse.
>
> Can we have any plugin or any command which can monitor such a
> behaviour in Nagios.
>
> Please confirm on priority.
>
> Thanks & Regads,
> Saiprasad Sanzgiri
>
>
> Connect with friends all over the world. Get Yahoo! India Messenger.
> ----------------------------------------------------------------------
> ---
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080731/67dde683/attachment.html>
More information about the Help
mailing list