[Nagiosplug-devel] Help with creating a plugin to check RADIUS
bobi at netshel.net
bobi at netshel.net
Thu Nov 23 06:26:15 CET 2006
Just about everything you need to know can be found in the following
document:
http://nagiosplug.sourceforge.net/developer-guidelines.html
In a nutshell:
Your relevant output is limited to one line, up to the first new-line (or
1024 characters, whichever comes first.)
Everything after the first line is discarded.
The key is to set the exit code of your shell script to one of the
following integers:
0 (OK)
1 (Warning)
2 (Critical)
3 (Unknown Error)
In shell script, just use the "exit" command, like:
exit 0 # Success
or
exit 2 # Critical error
That's about all there is to it.
Bob
> I'll have to preface this that I'm a beginner at both Nagios, and Creating
> plugins. We have a small deployment in our office, and I'm trying to get
> it tomonitor our RADIUS servers.
>
> We initially wanted to use the check_radius_adv plugin, but we found that
> it
> wasn't capable of performing a full EAP conversation. (If it is, please
> tell
> me so I don't reinvent the wheel here)
>
> Poking around, I found that wpa_supplicant includes a utility called
> EAPOL_TEST which DOES perform a full EAP conversation with the RADIUS
> server.
>
> Here's where i get stuck...
>
> What should I be returning Nagios? Right now I have it as a simple (5
> line)
> shell script. All it really does is dump all the program output of
> eapol_test
> into /dev/null and return a pass or fail. (eapol_test returns a 1 if
> good,
> or 0 if bad, so i just stuck it in an IF statement)
>
> There is a wealth of information that is in the program output. (Round
> trip
> times, exact error of why EAP failed) I just don't have the skill to
> utilize
> them.
>
> Thanks
>
> Mike
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________________
> Nagios Plugin Development Mailing List
> Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Devel
mailing list