-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 chris serafin wrote: > I have a bunch of devices which alert me fine up/down, but I'm looking > to find how to get messages when they reboot. Solarwinds does this for > me now, but I'm trying to move off this solution, but my boss want > reboot messages as well as up/downs for the devices... > > Any ideas?
Are you talking Linux? If not, ignore the rest of this message. :) If so, what about some type of script to write a flag file when the host reboots. Then a script which checks to see if that flag file exists. If it exists, exit with an OK status and delete the flag file. I set something similar to this up yesterday with an AS400 backup. My boss was tired of getting a page off of a completed backup. He set things up to write to an NFS share with a simple touch flag file. I then check to see if that files exists. If the backup completed successfully the night before it sees the file, says ok, deletes the file and exits normally. If the file isn't there, then it exits with an error to which we get notified. #!/bin/bash FILE=/var/flags/AS400_DAILY if [ -f $FILE ]; then echo "OK: AS400 backup completed normally." rm -f $FILE exit 0 else echo "CRIT: AS400 backup error." exit 2 fi A simple script of some sort linked to /etc/init.d could write the flag file after the system boots and disks are mounted. Once that's there, then you can check if the file exists. It's not elegant, but would work. If anyone has a better idea, please chime in. Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTwcKHoeeepPau2ERArpDAJ4lVqyC5z2nWt2uBwD+aFiTBGOYQgCgtZ+f rubEvG3ToHPGsm34ubat0UE= =GUQs -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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